[kupfer] darkstyle: Add plugin to use dark style in Kupfer



commit 322df54d633e9caa520faa649d32ea6f36700c39
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Mar 19 14:27:29 2011 +0100

    darkstyle: Add plugin to use dark style in Kupfer
    
    Add a plugin that lets the user have a dark color scheme in Kupfer
    without having it as a global gtk theme.

 kupfer/plugin/darkstyle.py |   25 +++++++++++++++++++++++++
 po/POTFILES.in             |    1 +
 2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/darkstyle.py b/kupfer/plugin/darkstyle.py
new file mode 100644
index 0000000..7c4a888
--- /dev/null
+++ b/kupfer/plugin/darkstyle.py
@@ -0,0 +1,25 @@
+__kupfer_name__ = _("Darkstyle")
+__kupfer_sources__ = ()
+__description__ = _("Use a dark color theme in Kupfer")
+__version__ = ""
+__author__ = ""
+
+import gtk
+
+def initialize_plugin(name):
+	settings = gtk.settings_get_default()
+	settings.set_property("gtk-color-scheme", DARK_COLORS)
+
+def finalize_plugin(name):
+	settings = gtk.settings_get_default()
+	settings.set_property("gtk-color-scheme", "")
+
+## Based upon darklooks but with Gray, not blue text
+DARK_COLORS = ("fg_color:#E6E6E6\n"
+               "bg_color:#555753\n"
+               "base_color:#2E3436\n"
+               "text_color:#D3D7CF\n"
+               "selected_bg_color:#3F403D\n"
+               "selected_fg_color:#CCCCCC\n"
+               "tooltip_bg_color:#EDDE5C\n"
+               "tooltip_fg_color:#000000")
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7247b47..08e9228 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -71,6 +71,7 @@ kupfer/plugin/asciiunicodeiconset.py
 kupfer/plugin/audacious.py
 kupfer/plugin/chromium.py
 kupfer/plugin/clawsmail.py
+kupfer/plugin/darkstyle.py
 kupfer/plugin/defaultmail.py
 kupfer/plugin/devhelp.py
 kupfer/plugin/empathy.py



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]