From 8675a31d2a99ed72d9a635b4d5854aa98654ef05 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sat, 31 Dec 2016 13:42:27 +0100 Subject: [PATCH] [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 --- src/declarativeimports/plasmastyle/ScrollViewStyle.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/declarativeimports/plasmastyle/ScrollViewStyle.qml b/src/declarativeimports/plasmastyle/ScrollViewStyle.qml index 8c1b681ac..accea15bf 100644 --- a/src/declarativeimports/plasmastyle/ScrollViewStyle.qml +++ b/src/declarativeimports/plasmastyle/ScrollViewStyle.qml @@ -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 {