Commit 37f43577 authored by Jan Blackquill's avatar Jan Blackquill 🌈
Browse files

kstyle: consider activeSubControls when deciding arrow colour

This fixes hover colours in qqc2-desktop-style, which
has no widget for us to poke at, so we have to use
activeSubControls instead, which we do have, regardless
of whether or not there's a widget.

BUG: 434884
parent f487d927
......@@ -7018,6 +7018,17 @@ namespace Breeze
}
} else if (option->state & State_MouseOver) {
const bool activeIsSub = option->activeSubControls & SC_ScrollBarSubLine;
const bool activeIsAdd = option->activeSubControls & SC_ScrollBarAddLine;
const bool drawingSub = control == SC_ScrollBarSubLine;
const bool drawingAdd = control == SC_ScrollBarAddLine;
if ((activeIsSub && drawingSub) || (activeIsAdd && drawingAdd)) {
const auto highlight = _helper->hoverColor( palette );
color = highlight;
}
}
if( StyleConfigData::animationsEnabled() ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment