Feat: UI / UX

This commit is contained in:
2026-02-16 01:22:40 +01:00
parent b23dd85d0f
commit af6732db1c
37 changed files with 1045 additions and 64 deletions

View File

@@ -45,18 +45,26 @@ pub struct DisplaySettings {
pub show_completion: bool,
#[serde(default = "default_font")]
pub font: String,
#[serde(default = "default_zoom")]
pub zoom_factor: f32,
#[serde(default)]
pub color_scheme: ColorScheme,
#[serde(default)]
pub layout: MainLayout,
#[serde(default)]
pub hue_rotation: f32,
#[serde(default)]
pub onboarding_dismissed: Vec<String>,
}
fn default_font() -> String {
"8x13".to_string()
}
fn default_zoom() -> f32 {
1.5
}
#[derive(Debug, Serialize, Deserialize)]
pub struct LinkSettings {
pub enabled: bool,
@@ -88,9 +96,11 @@ impl Default for DisplaySettings {
show_preview: true,
show_completion: true,
font: default_font(),
zoom_factor: default_zoom(),
color_scheme: ColorScheme::default(),
layout: MainLayout::default(),
hue_rotation: 0.0,
onboarding_dismissed: Vec::new(),
}
}
}