diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py
index 0f6849064..d490584b8 100644
--- a/ankiqt/__init__.py
+++ b/ankiqt/__init__.py
@@ -93,6 +93,9 @@ def run():
qtTranslator.load("qt_" + short, translationPath):
app.installTranslator(qtTranslator)
+ if conf['alternativeTheme']:
+ app.setStyle("plastique")
+
# load main window
ui.importAll()
ui.dialogs.registerDialogs()
diff --git a/ankiqt/config.py b/ankiqt/config.py
index e1bb001ce..88fb62e40 100644
--- a/ankiqt/config.py
+++ b/ankiqt/config.py
@@ -70,6 +70,7 @@ class Config(dict):
'splitQA': True,
'sortIndex': 0,
'addZeroSpace': True,
+ 'alternativeTheme': False,
}
for (k,v) in fields.items():
if not self.has_key(k):
diff --git a/ankiqt/ui/preferences.py b/ankiqt/ui/preferences.py
index 8024e5eb1..9678d095c 100644
--- a/ankiqt/ui/preferences.py
+++ b/ankiqt/ui/preferences.py
@@ -176,6 +176,7 @@ class Preferences(QDialog):
self.dialog.showDivider.setChecked(self.config['qaDivider'])
self.dialog.splitQA.setChecked(self.config['splitQA'])
self.dialog.addZeroSpace.setChecked(self.config['addZeroSpace'])
+ self.dialog.alternativeTheme.setChecked(self.config['alternativeTheme'])
self.dialog.toolbarIconSize.setText(str(self.config['iconSize']))
def updateAdvanced(self):
@@ -194,6 +195,7 @@ class Preferences(QDialog):
self.config['qaDivider'] = self.dialog.showDivider.isChecked()
self.config['splitQA'] = self.dialog.splitQA.isChecked()
self.config['addZeroSpace'] = self.dialog.addZeroSpace.isChecked()
+ self.config['alternativeTheme'] = self.dialog.alternativeTheme.isChecked()
i = 32
try:
i = int(self.dialog.toolbarIconSize.text())
diff --git a/designer/preferences.ui b/designer/preferences.ui
index 91a02510a..1cebb52cf 100644
--- a/designer/preferences.ui
+++ b/designer/preferences.ui
@@ -77,7 +77,7 @@
Qt::TabFocus
- <h1>Display</h1>
+ <h1>Main Window</h1>
false
@@ -408,14 +408,7 @@
-
-
-
-
-
- <h1>Advanced settings</h1>
-
-
-
- -
+
-
Simple toolbar
@@ -423,6 +416,13 @@
-
+
+
+ <h1>Advanced settings</h1>
+
+
+
+ -
Show timer
@@ -430,54 +430,61 @@
-
-
-
- Show toolbar on startup
-
-
-
- -
-
-
- Tall buttons (for touchscreen)
-
-
-
- -
-
-
- Show tray icon
-
-
-
- -
-
-
- Scroll down to the answer when showing answer
-
-
-
- -
-
-
- Show last card's interval
-
-
-
- -
Show last card's question/answer
+ -
+
+
+ Show last card's interval
+
+
+
+ -
+
+
+ Show toolbar on startup
+
+
+
+ -
+
+
+ Tall buttons (for touchscreen)
+
+
+
-
+
+
+ Show tray icon
+
+
+
+ -
+
+
+ Scroll down to the answer when showing answer
+
+
+
+ -
Add hidden char to text (fixes Thai on OSX)
+ -
+
+
+ Alternative theme
+
+
+
-
@@ -521,6 +528,7 @@
+ alternativeTheme
@@ -539,10 +547,14 @@
tabWidget
interfaceLang
+ label_2
interfaceFamily
interfaceSize
interfaceColour
backgroundColour
+ showDivider
+ splitQA
+ suppressEstimates
saveWhenClosing
saveAfterEvery
saveAfterEveryNum
@@ -560,6 +572,8 @@
tallButtons
showTray
scrollToAnswer
+ addZeroSpace
+ alternativeTheme
toolbarIconSize
buttonBox