theme: refactor dark theme logic to use is_oled
This actually has no behavioral change, but is more logically correct if we ever end up updating these functions Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -90,9 +90,9 @@ pub fn light_mode() -> Visuals {
|
||||
notedeck::theme::create_themed_visuals(light_color_theme(), Visuals::light())
|
||||
}
|
||||
|
||||
pub fn dark_mode(mobile: bool) -> Visuals {
|
||||
pub fn dark_mode(is_oled: bool) -> Visuals {
|
||||
notedeck::theme::create_themed_visuals(
|
||||
if mobile {
|
||||
if is_oled {
|
||||
mobile_dark_color_theme()
|
||||
} else {
|
||||
desktop_dark_color_theme()
|
||||
|
||||
Reference in New Issue
Block a user