- added an initial implementation of a dark theme using the qdarktheme (performance is not great and there are some artifacts); the theme is activated once the gray icons are checked in the Preferences

This commit is contained in:
Marius Stanciu
2022-01-11 23:21:18 +02:00
committed by Marius
parent 1ccf4b38c6
commit 2165ebe419
5 changed files with 18 additions and 5 deletions

View File

@@ -922,7 +922,11 @@ class FCColorEntry(QtWidgets.QFrame):
# selected_color = color_dialog.getColor(initial=current_color,
# options=QtWidgets.QColorDialog.ColorDialogOption.ShowAlphaChannel)
current_color.setAlpha(int(self._extract_alpha(value), 16))
try:
current_color.setAlpha(int(self._extract_alpha(value), 16))
except Exception:
current_color.setAlpha(255)
color_dialog.setCurrentColor(current_color)
if color_dialog.exec() == QtWidgets.QDialog.DialogCode.Accepted: