From cd769d496905c1f01db5cb3db4291bfa5dceace8 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 27 Nov 2025 12:35:28 +0800 Subject: [PATCH] change default font to regular it's readable enough without having to go to bold --- apps-baosec/vault2/src/main.rs | 2 +- apps-baosec/vault2/src/ux.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps-baosec/vault2/src/main.rs b/apps-baosec/vault2/src/main.rs index 450ac7291..b3719d73f 100644 --- a/apps-baosec/vault2/src/main.rs +++ b/apps-baosec/vault2/src/main.rs @@ -434,7 +434,7 @@ fn main() -> ! { vault_ui.redraw(); } _ => { - log::debug!("unhandled key {}", k); + log::trace!("unhandled key {}", k); } } } diff --git a/apps-baosec/vault2/src/ux.rs b/apps-baosec/vault2/src/ux.rs index 053e2b6ba..6d22dd099 100644 --- a/apps-baosec/vault2/src/ux.rs +++ b/apps-baosec/vault2/src/ux.rs @@ -12,7 +12,7 @@ use xous::CID; use crate::storage::{ContentKind, Manager}; use crate::*; -pub const DEFAULT_FONT: GlyphStyle = GlyphStyle::Bold; +pub const DEFAULT_FONT: GlyphStyle = GlyphStyle::Regular; pub const FONT_LIST: [&'static str; 6] = ["regular", "tall", "mono", "bold", "large", "small"]; pub fn name_to_style(name: &str) -> Option { match name { @@ -67,7 +67,7 @@ impl TotpLayout { pub fn list_box() -> Rectangle { Rectangle::new(Point::new(0, 50), Point::new(127, 127)) } - pub fn list_font() -> GlyphStyle { GlyphStyle::Bold } + pub fn list_font() -> GlyphStyle { GlyphStyle::Regular } } pub struct VaultUi { @@ -191,15 +191,15 @@ impl VaultUi { name_bytes, String::from_utf8(name_bytes.to_vec()) ); - name_to_style(&String::from_utf8(name_bytes).unwrap_or("bold".to_string())) - .unwrap_or(GlyphStyle::Bold) + name_to_style(&String::from_utf8(name_bytes).unwrap_or("regular".to_string())) + .unwrap_or(GlyphStyle::Regular) } - Err(_) => GlyphStyle::Bold, + Err(_) => GlyphStyle::Regular, } } _ => { log::warn!("PDDB access error reading default glyph size"); - GlyphStyle::Bold + GlyphStyle::Regular } }; self.totp_list.style(style);