feat: toggle window always on top

This commit is contained in:
2026-01-21 13:05:15 -08:00
parent 3fc89a4366
commit 2aa05acb66
5 changed files with 47 additions and 1 deletions
+6
View File
@@ -55,6 +55,9 @@ pub struct HikariConfig {
#[serde(default = "default_notification_volume")]
pub notification_volume: f32,
#[serde(default)]
pub always_on_top: bool,
}
impl Default for HikariConfig {
@@ -70,6 +73,7 @@ impl Default for HikariConfig {
greeting_custom_prompt: None,
notifications_enabled: true,
notification_volume: 0.7,
always_on_top: false,
}
}
}
@@ -109,6 +113,7 @@ mod tests {
assert_eq!(config.theme, Theme::Dark);
assert!(config.greeting_enabled);
assert!(config.greeting_custom_prompt.is_none());
assert!(!config.always_on_top);
}
#[test]
@@ -124,6 +129,7 @@ mod tests {
greeting_custom_prompt: Some("Hello!".to_string()),
notifications_enabled: true,
notification_volume: 0.7,
always_on_top: true,
};
let json = serde_json::to_string(&config).unwrap();