- 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user