Add apply_exports_static for convenience
This commit is contained in:
parent
3712406972
commit
7cd9f93395
1 changed files with 11 additions and 0 deletions
|
|
@ -35,6 +35,17 @@ 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);
|
||||
gtk_res?;
|
||||
qt_res?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn write_exports(&self) -> Result<(), OutputError> {
|
||||
let gtk_res = self.write_gtk4();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue