Permalink
Browse files

fix css themes

  • Loading branch information...
yanchenko-igor committed Mar 27, 2013
1 parent ff7cb2b commit 4f8a80f1a99ce5ff428c4843c3c2a66bc9d11e0c
Showing with 2 additions and 2 deletions.
  1. +1 −1 snakefire/dialogs.py
  2. +1 −1 snakefire/mainframe.py
@@ -289,7 +289,7 @@ def _save(self):
self._mainFrame.setSettings("display", displaySettings)

def _themeSelected(self):
self._themePreview.settings().setUserStyleSheetUrl(QtCore.QUrl.fromLocalFile(":/themes/{theme}.css".format(
self._themePreview.settings().setUserStyleSheetUrl(QtCore.QUrl("qrc:/themes/{theme}.css".format(
theme = self._themeField.itemData(self._themeField.currentIndex()).toString()
)))

@@ -1186,7 +1186,7 @@ def __init__(self, snakefire, parent=None):
self.updateTheme()

def updateTheme(self, theme = None, size=None):
self.settings().setUserStyleSheetUrl(QtCore.QUrl.fromLocalFile(":/themes/{theme}.css".format(
self.settings().setUserStyleSheetUrl(QtCore.QUrl("qrc:/themes/{theme}.css".format(
theme = theme if theme else self.snakefire.getSetting("display", "theme")
)))
self.setTextSizeMultiplier(round(float(size if size else self.snakefire.getSetting("display", "size")) / 100, 1))

0 comments on commit 4f8a80f

Please sign in to comment.