notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit f6c44bba8aaaabc19bea164313c87b4bb9c17dca
parent 3451206f1afde0d75a1510d07732a6bcfebacb9f
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  4 Aug 2025 12:06:58 -0700

force oled with --mobile flag

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck/src/setup.rs | 3+--
Mcrates/notedeck/src/ui.rs | 4++--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/crates/notedeck/src/setup.rs b/crates/notedeck/src/setup.rs @@ -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); diff --git a/crates/notedeck/src/ui.rs b/crates/notedeck/src/ui.rs @@ -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]