Commit a7423b4b authored by Ronan's avatar Ronan
Browse files

feat(ForceScrollBar): supports hovered color

parent d5515f10
...@@ -9,10 +9,14 @@ ScrollBar { ...@@ -9,10 +9,14 @@ ScrollBar {
background: ForceScrollBarStyle.background background: ForceScrollBarStyle.background
contentItem: Rectangle { contentItem: Rectangle {
color: pressed color: pressed
? ForceScrollBarStyle.pressedColor ? ForceScrollBarStyle.color.pressed
: ForceScrollBarStyle.color : (hovered
? ForceScrollBarStyle.color.hovered
: ForceScrollBarStyle.color.normal
)
implicitHeight: ForceScrollBarStyle.contentItem.implicitHeight implicitHeight: ForceScrollBarStyle.contentItem.implicitHeight
implicitWidth: ForceScrollBarStyle.contentItem.implicitWidth implicitWidth: ForceScrollBarStyle.contentItem.implicitWidth
radius: ForceScrollBarStyle.contentItem.radius radius: ForceScrollBarStyle.contentItem.radius
} }
hoverEnabled: true
} }
...@@ -21,6 +21,7 @@ QtObject { ...@@ -21,6 +21,7 @@ QtObject {
property QtObject description: QtObject { property QtObject description: QtObject {
property int fontSize: 12 property int fontSize: 12
property int verticalMargin: 25 property int verticalMargin: 25
property string color: Constants.colors.l property string color: Constants.colors.l
} }
} }
...@@ -4,9 +4,6 @@ import QtQuick 2.7 ...@@ -4,9 +4,6 @@ import QtQuick 2.7
import Linphone 1.0 import Linphone 1.0
QtObject { QtObject {
property string color: Constants.colors.c
property string pressedColor: Constants.colors.b
property Rectangle background: Rectangle { property Rectangle background: Rectangle {
color: Constants.colors.a color: Constants.colors.a
} }
...@@ -16,4 +13,10 @@ QtObject { ...@@ -16,4 +13,10 @@ QtObject {
implicitWidth: 8 implicitWidth: 8
radius: 10 radius: 10
} }
property QtObject color: QtObject {
property string hovered: Constants.colors.h
property string normal: Constants.colors.c
property string pressed: Constants.colors.b
}
} }
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