Fix collapsed context-view selector buttons text when using a dark background.
This commit is contained in:
@@ -10,6 +10,11 @@
|
||||
7. Remove collapsing of interface.
|
||||
8. Move position slider inbetween controls.
|
||||
|
||||
1.3.1
|
||||
-----
|
||||
1. Fix collapsed context-view selector buttons text when using a dark
|
||||
background.
|
||||
|
||||
1.3.0.1
|
||||
-------
|
||||
1. Fix duplicate translations - causes KDE builds to fail.
|
||||
|
||||
@@ -132,12 +132,12 @@ public:
|
||||
alignment |= Qt::TextHideMnemonic;
|
||||
}
|
||||
#ifdef SIMPLE_VSB
|
||||
painter.drawItemText(rect(), alignment, opt.palette, true, opt.text, QPalette::Text);
|
||||
painter.drawItemText(rect(), alignment, opt.palette, true, opt.text, QPalette::WindowText);
|
||||
#else
|
||||
if (isOn) {
|
||||
opt.state|=QStyle::State_Selected;
|
||||
}
|
||||
painter.drawItemText(rect(), alignment, opt.palette, true, opt.text, isOn ? QPalette::HighlightedText : QPalette::Text);
|
||||
painter.drawItemText(rect(), alignment, opt.palette, true, opt.text, isOn ? QPalette::HighlightedText : QPalette::WindowText);
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user