feat: configurable primary_font

This commit is contained in:
galister
2024-04-14 18:16:26 +09:00
parent 7184a9f21f
commit 42aef89822
3 changed files with 16 additions and 6 deletions

View File

@@ -138,6 +138,10 @@ fn def_toast_topics() -> IdMap<ToastTopic, DisplayMethod> {
IdMap::new()
}
fn def_font() -> Arc<str> {
"LiberationSans:style=Bold".into()
}
#[derive(Deserialize, Serialize)]
pub struct GeneralConfig {
#[serde(default = "def_watch_pos")]
@@ -223,6 +227,9 @@ pub struct GeneralConfig {
#[serde(default = "def_false")]
pub focus_follows_mouse_mode: bool,
#[serde(default = "def_font")]
pub primary_font: Arc<str>,
}
impl GeneralConfig {