Commit a7423b4b authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ForceScrollBar): supports hovered color

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