refactor(cosmic-theme): remove Theme::apply_exports_static

Recently-added method is redundant with `apply_exports`, and the dark
mode preference is already defined in the theme being applied.
This commit is contained in:
Michael Aaron Murphy 2026-02-18 14:23:09 +01:00
parent be98b7dd6f
commit 7c49a736ec
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -41,19 +41,6 @@ impl Theme {
Ok(())
}
#[inline]
/// To avoid rewriting too much code, I replaced calls to `Theme::apply_gtk` with this.
/// Note that vscode isn't touched by this function.
pub fn apply_exports_static(is_dark: bool) -> Result<(), OutputError> {
let gtk_res = Theme::apply_gtk(is_dark);
let qt_res = Theme::apply_qt(is_dark);
let qt56ct_res = Theme::apply_qt56ct(is_dark);
gtk_res?;
qt_res?;
qt56ct_res?;
Ok(())
}
#[inline]
pub fn write_exports(&self) -> Result<(), OutputError> {
let gtk_res = self.write_gtk4();