[Plasma ScrollViewStyle] Show scroll bar background only on hover

This makes it consistent with the Breeze widget style.
The other themes (Air and Oxygen) didn't even have a scroll bar background.

Differential Revision: https://phabricator.kde.org/D3828
This commit is contained in:
Kai Uwe Broulik 2016-12-31 13:42:27 +01:00
parent 6aedda94b2
commit 8675a31d2a

View File

@ -143,6 +143,13 @@ QtQuickControlStyle.ScrollViewStyle {
prefix: styleData.horizontal ? "background-horizontal" : "background-vertical"
implicitWidth: widthHint
colorGroup: PlasmaCore.ColorScope.colorGroup
opacity: styleData.hovered ? 1 : 0
Behavior on opacity {
NumberAnimation {
duration: units.longDuration
easing.type: Easing.InOutQuad
}
}
}
handle: PlasmaCore.FrameSvgItem {