Index: channels/configwin.py
==================================================================
--- channels/configwin.py
+++ channels/configwin.py
@@ -28,11 +28,10 @@
# Display win_config, pre-fill text fields from global conf. object
def open(self, widget):
if self.first_open:
self.add_plugins()
- self.combobox_theme()
self.first_open = 0
self.win_config.resize(565, 625)
self.load_config(conf.__dict__, "config_")
self.load_config(conf.plugins, "config_plugins_")
[callback() for callback in self.hooks["config_load"]]
@@ -104,28 +103,10 @@
return gtk.STOCK_MEDIA_PLAY
else:
return gtk.STOCK_CANCEL
- # list of Gtk themes in dropdown
- def combobox_theme(self):
- # find themes
- themedirs = (conf.share+"/themes", conf.dir+"/themes", "/usr/share/themes")
- themes = ["no theme"]
- [[themes.append(e) for e in os.listdir(dir)] for dir in themedirs if os.path.exists(dir)]
- __print__(dbg.STAT, themes)
- # add dropdown
- self.widgets["theme"] = ComboBoxText(themes)
- self.theme_cb_placeholder.pack_start(self.theme)
- self.theme_cb_placeholder.pack_end(uikit.label(""))
-
-
- # retrieve currently selected value
- def apply_theme(self):
- conf.theme = self.theme.get_active_text()
- uikit.load_theme(conf.theme)
-
# iterate over channel and feature plugins
def add_plugins(self):
ls = {}
for name in module_list():
@@ -187,9 +168,8 @@
# save config
def save(self, widget):
self.save_config(conf.__dict__, "config_")
self.save_config(conf.plugins, "config_plugins_")
[callback() for callback in self.hooks["config_save"]]
- self.apply_theme()
conf.save(nice=1)
self.hide()
Index: config.py
==================================================================
--- config.py
+++ config.py
@@ -138,11 +138,10 @@
self.show_favicons = 1
self.load_favicon = 1
self.heuristic_bookmark_update = 0
self.retain_deleted = 0
self.auto_save_appstate = 1
- self.theme = "" #"MountainDew"
self.reuse_m3u = 1
self.google_homepage = 0
self.windows = platform.system()=="Windows"
self.pyquery = 1
self.debug = 0
Index: gtk3.xml
==================================================================
--- gtk3.xml
+++ gtk3.xml
@@ -353,42 +353,10 @@
True
3
-
-
- True
- True
- 5
- 4
-
-
-
-
-
- False
- False
- 5
-
-
-
True
True
5
- 6
+ 4
+
+
+
+
+
+