mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Handle system colour
This commit is contained in:
parent
750bdc7f5c
commit
ccfbd0c44a
1 changed files with 5 additions and 2 deletions
|
|
@ -37,8 +37,11 @@ public enum Theme: String, CaseIterable {
|
|||
return Color(red: 255 / 255.0, green: 210 / 255.0, blue: 52 / 255.0)
|
||||
case .dark, .apollo:
|
||||
return Color(red: 134 / 255.0, green: 109 / 255.0, blue: 21 / 255.0)
|
||||
default:
|
||||
return bgColor
|
||||
case .system:
|
||||
if Color.isDarkMode {
|
||||
return Color(red: 134 / 255.0, green: 109 / 255.0, blue: 21 / 255.0)
|
||||
}
|
||||
return Color(red: 255 / 255.0, green: 210 / 255.0, blue: 52 / 255.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue