From 4894683924dbfa9b4b6b2e943e7552bbb3afd6e4 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 30 Dec 2017 18:12:53 +0200 Subject: [PATCH] hammond-gtk: Set the default theme to the dark variant for now. --- hammond-gtk/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hammond-gtk/src/main.rs b/hammond-gtk/src/main.rs index e58a0b3..622cd10 100644 --- a/hammond-gtk/src/main.rs +++ b/hammond-gtk/src/main.rs @@ -72,5 +72,11 @@ fn main() { 600, ); + // This set's the app to dark mode. + // It wiil be in the user's preference later but for now + // I will abuse my power and force it on everyone till then :P. + let settings = gtk::Settings::get_default().unwrap(); + settings.set_property_gtk_application_prefer_dark_theme(true); + App::new().run(); }