Skip to content

Commit

Permalink
fix(main): force GTK theme
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard-28 committed Mar 29, 2023
1 parent 0f3a742 commit 8d0ff16
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ fn main() {
.style_manager()
.set_color_scheme(adw::ColorScheme::PreferDark);

// HACK: The app doesn't start up with the "correct" theme, this "hack" "fixes"
// it.
if config::PROFILE != "Devel" {
if let Err(error) =
gio::Settings::new("org.gnome.desktop.interface").set_string("gtk-theme", "Yaru-purple")
{
tracing::error!("Error FORCING GTK theme: {error}");
}
}

let app = RelmApp::with_app(app);
app.run::<AppModel>(());
}

0 comments on commit 8d0ff16

Please sign in to comment.