Skip to content

Commit

Permalink
fix css themes
Browse files Browse the repository at this point in the history
  • Loading branch information
yanchenko-igor committed Mar 27, 2013
1 parent ff7cb2b commit 4f8a80f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snakefire/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)))

Expand Down
2 changes: 1 addition & 1 deletion snakefire/mainframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4f8a80f

Please sign in to comment.