mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 03:26:10 +08:00
application: Set PreferDark color scheme
Run the app in dark mode by default, unless the user explicitely wants light mode.
This commit is contained in:
@@ -69,6 +69,10 @@ mod imp {
|
||||
fn startup(&self) {
|
||||
self.parent_startup();
|
||||
|
||||
self.obj()
|
||||
.style_manager()
|
||||
.set_color_scheme(adw::ColorScheme::PreferDark);
|
||||
|
||||
// Load CSS from the STYLE variable.
|
||||
let provider = gtk::CssProvider::new();
|
||||
provider.load_from_data(STYLE);
|
||||
|
||||
Reference in New Issue
Block a user