Skip to content
Snippets Groups Projects
Commit 6d9db698 authored by Kien Le's avatar Kien Le
Browse files

Merge branch 'bug-#216-combobox_style_does_not_apply_fusion_style' into 'develop'

Fix some styling not applying in Linux

Closes #216

See merge request !264
parents 26110817 d08e8a8d
No related branches found
No related tags found
1 merge request!264Fix some styling not applying in Linux
Pipeline #3751 passed with stage
in 4 minutes and 45 seconds
......@@ -63,6 +63,11 @@ def set_widget_color(widget, changed=False, read_only=False):
# red text
palette.setColor(QtGui.QPalette.ColorRole.Text,
QtGui.QColor(255, 0, 0))
# The selected text in a QComboBox on Linux has ButtonText as its color
# role (probably because the QComboBox on Linux looks like one button,
# while the one on Mac looks like a TextEdit combined with a button).
palette.setColor(QtGui.QPalette.ColorRole.ButtonText,
QtGui.QColor(255, 0, 0))
else:
try:
if widget.isReadOnly():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment