mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 09:04:21 +01:00
force oled with --mobile flag
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -13,8 +13,7 @@ pub fn setup_egui_context(
|
||||
zoom_factor: f32,
|
||||
) {
|
||||
let is_mobile = options.contains(NotedeckOptions::Mobile) || crate::ui::is_compiled_as_mobile();
|
||||
|
||||
let is_oled = crate::ui::is_oled();
|
||||
let is_oled = crate::ui::is_oled(is_mobile);
|
||||
|
||||
ctx.options_mut(|o| {
|
||||
tracing::info!("Loaded theme {:?} from disk", theme);
|
||||
|
||||
@@ -16,8 +16,8 @@ pub fn is_narrow(ctx: &egui::Context) -> bool {
|
||||
screen_size.x < NARROW_SCREEN_WIDTH
|
||||
}
|
||||
|
||||
pub fn is_oled() -> bool {
|
||||
is_compiled_as_mobile()
|
||||
pub fn is_oled(is_mobile_override: bool) -> bool {
|
||||
is_mobile_override || is_compiled_as_mobile()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user