Added "white" icons for dark themes.

This commit is contained in:
2026-01-05 18:59:42 +01:00
parent 4a3d5faa7e
commit 8ef597f29a
44 changed files with 5314 additions and 183 deletions

View File

@@ -128,7 +128,8 @@ DB_TEST_FIELDS = [
ICON_THEMES_PREFIX = [
":/color",
":/black"
":/black",
":/white",
]
FOLDED_CHAR = "."

View File

@@ -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]

View File

@@ -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))

View File

@@ -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">

View File

@@ -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():

View File

@@ -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():

View File

@@ -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>

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB