mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-04 21:39:56 +00:00
feat(ForceScrollBar): supports hovered color
This commit is contained in:
parent
d5515f1035
commit
a7423b4b99
3 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue