Mixed bag of things

This commit is contained in:
2026-01-28 17:39:41 +01:00
parent 5952807240
commit 2be15d11f4
11 changed files with 229 additions and 5 deletions

View File

@@ -29,8 +29,12 @@ pub struct DisplaySettings {
pub show_spectrum: bool,
#[serde(default = "default_true")]
pub show_completion: bool,
#[serde(default = "default_flash_brightness")]
pub flash_brightness: f32,
}
fn default_flash_brightness() -> f32 { 1.0 }
#[derive(Debug, Serialize, Deserialize)]
pub struct LinkSettings {
pub enabled: bool,
@@ -60,6 +64,7 @@ impl Default for DisplaySettings {
show_scope: true,
show_spectrum: true,
show_completion: true,
flash_brightness: 1.0,
}
}
}