split is_mobile to is_narrow and is_oled
is_mobile doesn't really make sense for android tablets. We were overloading this variable to mean "is_narrow". What we really want is is_oled for mobile devices and is_narrow for if its phone-like. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -27,7 +27,7 @@ pub fn dark_mode(mobile: bool) -> Visuals {
|
||||
}
|
||||
|
||||
pub fn user_requested_visuals_change(
|
||||
mobile: bool,
|
||||
oled: bool,
|
||||
cur_darkmode: bool,
|
||||
ui: &mut Ui,
|
||||
) -> Option<Visuals> {
|
||||
@@ -44,7 +44,7 @@ pub fn user_requested_visuals_change(
|
||||
.on_hover_text("Switch to dark mode")
|
||||
.clicked()
|
||||
{
|
||||
return Some(dark_mode(mobile));
|
||||
return Some(dark_mode(oled));
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user