Added "white" icons for dark themes.
@@ -128,7 +128,8 @@ DB_TEST_FIELDS = [
|
||||
|
||||
ICON_THEMES_PREFIX = [
|
||||
":/color",
|
||||
":/black"
|
||||
":/black",
|
||||
":/white",
|
||||
]
|
||||
|
||||
FOLDED_CHAR = "."
|
||||
@@ -5,4 +5,8 @@ import interpreter.utils.settings as prefs
|
||||
def icon_prefix():
|
||||
if not hasattr(prefs, "settings"):
|
||||
prefs.init()
|
||||
return cst.ICON_THEMES_PREFIX[1] if prefs.settings.icons_theme != 0 else cst.ICON_THEMES_PREFIX[0]
|
||||
|
||||
if isinstance(prefs.settings.icons_theme, int) and 0 <= prefs.settings.icons_theme < len(cst.ICON_THEMES_PREFIX):
|
||||
return cst.ICON_THEMES_PREFIX[prefs.settings.icons_theme]
|
||||
else:
|
||||
return cst.ICON_THEMES_PREFIX[0]
|
||||
@@ -131,6 +131,7 @@ class Ui_preferenceWindow(object):
|
||||
self.choiceIconsTheme = QComboBox(self.scrollAreaWidgetContents)
|
||||
self.choiceIconsTheme.addItem("")
|
||||
self.choiceIconsTheme.addItem("")
|
||||
self.choiceIconsTheme.addItem("")
|
||||
self.choiceIconsTheme.setObjectName(u"choiceIconsTheme")
|
||||
|
||||
self.formLayout.setWidget(5, QFormLayout.ItemRole.FieldRole, self.choiceIconsTheme)
|
||||
@@ -371,6 +372,7 @@ class Ui_preferenceWindow(object):
|
||||
self.checkDblClick.setText("")
|
||||
self.choiceIconsTheme.setItemText(0, QCoreApplication.translate("preferenceWindow", u"Colored icons", None))
|
||||
self.choiceIconsTheme.setItemText(1, QCoreApplication.translate("preferenceWindow", u"Black icons", None))
|
||||
self.choiceIconsTheme.setItemText(2, QCoreApplication.translate("preferenceWindow", u"White icons", None))
|
||||
|
||||
self.label_10.setText(QCoreApplication.translate("preferenceWindow", u"Icons theme", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabInterfaceParams), QCoreApplication.translate("preferenceWindow", u"Interface parameters", None))
|
||||
|
||||
@@ -199,6 +199,11 @@
|
||||
<string>Black icons</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>White icons</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
|
||||
@@ -1826,7 +1826,7 @@ qt_resource_struct = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x01\x9bi\x96\x0e\x1c\
|
||||
\x00\x00\x01\x9b\x8f'M\xbb\
|
||||
"
|
||||
|
||||
def qInitResources():
|
||||
|
||||
@@ -1832,7 +1832,7 @@ qt_resource_struct = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x01\x9bi\x96\x0e\x1c\
|
||||
\x00\x00\x01\x9b\x8f'M\xbb\
|
||||
"
|
||||
|
||||
def qInitResources():
|
||||
|
||||
@@ -45,6 +45,52 @@
|
||||
<file alias="verif.png">black/verif.png</file>
|
||||
<file alias="view-refresh.png">black/view-refresh.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/white">
|
||||
<file alias="testium_logo.png">testium_logo.png</file>
|
||||
<file alias="red.png">red.png</file>
|
||||
<file alias="gray.png">gray.png</file>
|
||||
<file alias="green.png">green.png</file>
|
||||
<file alias="fail.png">fail.png</file>
|
||||
<file alias="break.png">break.png</file>
|
||||
<file alias="success_orange.png">success_orange.png</file>
|
||||
<file alias="success.png">success.png</file>
|
||||
<file alias="checkList.png">white/checkList.png</file>
|
||||
<file alias="cycle.png">white/cycle.png</file>
|
||||
<file alias="document-open.png">white/document-open.png</file>
|
||||
<file alias="document-save.png">white/document-save.png</file>
|
||||
<file alias="document.png">white/document.png</file>
|
||||
<file alias="edit-clear.png">white/edit-clear.png</file>
|
||||
<file alias="folder-open.png">white/folder-open.png</file>
|
||||
<file alias="folder.png">white/folder.png</file>
|
||||
<file alias="gears.png">white/gears.png</file>
|
||||
<file alias="git.png">white/git.png</file>
|
||||
<file alias="settings.png">white/settings.png</file>
|
||||
<file alias="go-bottom.png">white/go-bottom.png</file>
|
||||
<file alias="group.png">white/group.png</file>
|
||||
<file alias="help.png">white/help.png</file>
|
||||
<file alias="image.png">white/image.png</file>
|
||||
<file alias="info.png">white/info.png</file>
|
||||
<file alias="json.png">white/json.png</file>
|
||||
<file alias="label.png">white/label.png</file>
|
||||
<file alias="let.png">white/let.png</file>
|
||||
<file alias="start.png">white/start.png</file>
|
||||
<file alias="stop.png">white/stop.png</file>
|
||||
<file alias="about.png">white/about.png</file>
|
||||
<file alias="note.png">white/note.png</file>
|
||||
<file alias="pause.png">white/pause.png</file>
|
||||
<file alias="pause2.png">white/pause2.png</file>
|
||||
<file alias="plot.png">white/plot.png</file>
|
||||
<file alias="question.png">white/question.png</file>
|
||||
<file alias="report.png">white/report.png</file>
|
||||
<file alias="results.png">white/results.png</file>
|
||||
<file alias="sleep.png">white/sleep.png</file>
|
||||
<file alias="exit.png">white/exit.png</file>
|
||||
<file alias="terminal.png">white/terminal.png</file>
|
||||
<file alias="python.png">white/python.png</file>
|
||||
<file alias="lua.png">white/lua.png</file>
|
||||
<file alias="verif.png">white/verif.png</file>
|
||||
<file alias="view-refresh.png">white/view-refresh.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/color">
|
||||
<file alias="testium_logo.png">testium_logo.png</file>
|
||||
<file alias="red.png">red.png</file>
|
||||
|
||||
BIN
src/testium/main_win/resources/white/about.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/testium/main_win/resources/white/checkList.png
Normal file
|
After Width: | Height: | Size: 985 B |
BIN
src/testium/main_win/resources/white/cycle.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/testium/main_win/resources/white/document-open.png
Normal file
|
After Width: | Height: | Size: 839 B |
BIN
src/testium/main_win/resources/white/document-save.png
Normal file
|
After Width: | Height: | Size: 878 B |
BIN
src/testium/main_win/resources/white/document.png
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
src/testium/main_win/resources/white/edit-clear.png
Normal file
|
After Width: | Height: | Size: 986 B |
BIN
src/testium/main_win/resources/white/exit.png
Normal file
|
After Width: | Height: | Size: 964 B |
BIN
src/testium/main_win/resources/white/folder-open.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/testium/main_win/resources/white/folder.png
Normal file
|
After Width: | Height: | Size: 783 B |
BIN
src/testium/main_win/resources/white/gears.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/testium/main_win/resources/white/git.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/testium/main_win/resources/white/go-bottom.png
Normal file
|
After Width: | Height: | Size: 996 B |
BIN
src/testium/main_win/resources/white/group.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/testium/main_win/resources/white/help.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/testium/main_win/resources/white/image.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/testium/main_win/resources/white/info.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/testium/main_win/resources/white/json.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/testium/main_win/resources/white/label.png
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
src/testium/main_win/resources/white/let.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/testium/main_win/resources/white/lua.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/testium/main_win/resources/white/note.png
Normal file
|
After Width: | Height: | Size: 909 B |
BIN
src/testium/main_win/resources/white/pause.png
Normal file
|
After Width: | Height: | Size: 642 B |
BIN
src/testium/main_win/resources/white/pause2.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
src/testium/main_win/resources/white/plot.png
Normal file
|
After Width: | Height: | Size: 959 B |
BIN
src/testium/main_win/resources/white/python.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/testium/main_win/resources/white/question.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/testium/main_win/resources/white/report.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/testium/main_win/resources/white/results.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/testium/main_win/resources/white/settings.png
Normal file
|
After Width: | Height: | Size: 922 B |
BIN
src/testium/main_win/resources/white/sleep.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/testium/main_win/resources/white/start.png
Normal file
|
After Width: | Height: | Size: 646 B |
BIN
src/testium/main_win/resources/white/stop.png
Normal file
|
After Width: | Height: | Size: 621 B |
BIN
src/testium/main_win/resources/white/terminal.png
Normal file
|
After Width: | Height: | Size: 908 B |
BIN
src/testium/main_win/resources/white/verif.png
Normal file
|
After Width: | Height: | Size: 631 B |
BIN
src/testium/main_win/resources/white/view-refresh.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |