[gnome-nibbles/wip/vala] Enforce dark theme
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/wip/vala] Enforce dark theme
- Date: Wed, 16 Sep 2015 09:32:43 +0000 (UTC)
commit f25bdec9f502ba6863618073a88f878265cf16bf
Author: Iulian Radu <iulian radu67 gmail com>
Date: Thu Aug 20 20:01:28 2015 +0300
Enforce dark theme
src/gnome-nibbles.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index a24b55c..69719ac 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -121,6 +121,8 @@ public class Nibbles : Gtk.Application
{
base.startup ();
+ Gtk.Settings.get_default ().set ("gtk-application-prefer-dark-theme", true);
+
var css_provider = new Gtk.CssProvider ();
css_provider.load_from_resource ("/org/gnome/nibbles/ui/nibbles.css");
Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), css_provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]