electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 17997f4d8edec801fd3abda55719d791dbc23dfd
parent b379a14cd2db3b007ab3045ff31de33a645ced1d
Author: Maran <maran.hidskes@gmail.com>
Date:   Thu, 13 Mar 2014 10:55:27 +0100

Implements theme loading without overwriting path

Diffstat:
Mgui/qt/lite_window.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gui/qt/lite_window.py b/gui/qt/lite_window.py @@ -27,7 +27,7 @@ import webbrowser import history_widget import receiving_widget from electrum import util -import csv +import csv import datetime from electrum.version import ELECTRUM_VERSION as electrum_version @@ -660,7 +660,7 @@ class MiniActuator: self.theme_name = self.g.config.get('litegui_theme','Cleanlook') self.themes = load_theme_paths() # see issue 509 - # self.load_theme() + self.load_theme() def load_theme(self): """Load theme retrieved from wallet file.""" @@ -669,8 +669,8 @@ class MiniActuator: except KeyError: util.print_error("Theme not found!", self.theme_name) return - QDir.setCurrent(os.path.join(theme_prefix, theme_path)) - with open(rsrc("style.css")) as style_file: + full_theme_path = ("%s/%s/style.css" % (theme_prefix, theme_path)) + with open(rsrc(full_theme_path)) as style_file: qApp.setStyleSheet(style_file.read()) def theme_names(self):