1
0
Fork 0

Add binding.

This commit is contained in:
namedkitten 2020-04-24 17:22:09 +01:00
parent f702ab5330
commit f5679cc66e
2 changed files with 6 additions and 2 deletions

View file

@ -32,12 +32,16 @@ Control {
id: colorOverlay
anchors.fill: parent
source: parent
color: root.hovered ? getAppearanceValueForTheme(
color: getAppearanceValueForTheme(appearance.themeName, "buttonColor")
Binding on color {
when: root.hovered
value: root.hovered ? getAppearanceValueForTheme(
appearance.themeName,
"buttonHoverColor") : getAppearanceValueForTheme(
appearance.themeName, "buttonColor")
}
}
}
MouseArea {

View file

@ -121,7 +121,7 @@ Slider {
ProgressBar {
id: cachedLength
background: Item {}
background: null
contentItem: Item {
Rectangle {
width: cachedLength.visualPosition * parent.width