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:
parent
be98b7dd6f
commit
7c49a736ec
1 changed files with 0 additions and 13 deletions
|
|
@ -41,19 +41,6 @@ impl Theme {
|
||||||
Ok(())
|
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]
|
#[inline]
|
||||||
pub fn write_exports(&self) -> Result<(), OutputError> {
|
pub fn write_exports(&self) -> Result<(), OutputError> {
|
||||||
let gtk_res = self.write_gtk4();
|
let gtk_res = self.write_gtk4();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue