mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14: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,
|
zoom_factor: f32,
|
||||||
) {
|
) {
|
||||||
let is_mobile = options.contains(NotedeckOptions::Mobile) || crate::ui::is_compiled_as_mobile();
|
let is_mobile = options.contains(NotedeckOptions::Mobile) || crate::ui::is_compiled_as_mobile();
|
||||||
|
let is_oled = crate::ui::is_oled(is_mobile);
|
||||||
let is_oled = crate::ui::is_oled();
|
|
||||||
|
|
||||||
ctx.options_mut(|o| {
|
ctx.options_mut(|o| {
|
||||||
tracing::info!("Loaded theme {:?} from disk", theme);
|
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
|
screen_size.x < NARROW_SCREEN_WIDTH
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_oled() -> bool {
|
pub fn is_oled(is_mobile_override: bool) -> bool {
|
||||||
is_compiled_as_mobile()
|
is_mobile_override || is_compiled_as_mobile()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user