UI: Fix vis. item widget appearance on linux
On linux, the highlighted text color should always be considered "active"
This commit is contained in:
parent
5d75d88ccd
commit
65ccb2178e
1 changed files with 4 additions and 0 deletions
|
|
@ -220,8 +220,12 @@ void VisibilityItemDelegate::paint(QPainter *painter,
|
|||
bool active = option.state.testFlag(QStyle::State_Active);
|
||||
|
||||
QPalette palette = list->palette();
|
||||
#if defined(_WIN32) || defined(__APPLE__)
|
||||
QPalette::ColorGroup group = active ?
|
||||
QPalette::Active : QPalette::Inactive;
|
||||
#else
|
||||
QPalette::ColorGroup group = QPalette::Active;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
QPalette::ColorRole highlightRole = QPalette::WindowText;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue