chore(appearance): rely on cosmic-settings-daemon to configure GTK font preferences (#2217)
This is now redundant now that the cosmic-settings-daemon manages this
This commit is contained in:
parent
7421ff0ab4
commit
ee5b432e26
1 changed files with 0 additions and 11 deletions
|
|
@ -134,9 +134,6 @@ impl Model {
|
||||||
stretch: cosmic::iced::font::Stretch::Normal,
|
stretch: cosmic::iced::font::Stretch::Normal,
|
||||||
};
|
};
|
||||||
update_config(INTERFACE_FONT, self.interface_font.clone());
|
update_config(INTERFACE_FONT, self.interface_font.clone());
|
||||||
tokio::spawn(async move {
|
|
||||||
set_gnome_font_name(font.as_ref()).await;
|
|
||||||
});
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
|
|
@ -221,11 +218,3 @@ fn update_config(variant: &str, font: FontConfig) {
|
||||||
_ = config.set(variant, font);
|
_ = config.set(variant, font);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the preferred icon theme for GNOME/GTK applications.
|
|
||||||
pub async fn set_gnome_font_name(font_name: &str) {
|
|
||||||
let _res = tokio::process::Command::new("gsettings")
|
|
||||||
.args(["set", "org.gnome.desktop.interface", "font-name", font_name])
|
|
||||||
.status()
|
|
||||||
.await;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue