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,10 +32,14 @@ Control {
id: colorOverlay id: colorOverlay
anchors.fill: parent anchors.fill: parent
source: parent source: parent
color: root.hovered ? getAppearanceValueForTheme( color: getAppearanceValueForTheme(appearance.themeName, "buttonColor")
Binding on color {
when: root.hovered
value: root.hovered ? getAppearanceValueForTheme(
appearance.themeName, appearance.themeName,
"buttonHoverColor") : getAppearanceValueForTheme( "buttonHoverColor") : getAppearanceValueForTheme(
appearance.themeName, "buttonColor") appearance.themeName, "buttonColor")
}
} }
} }

View file

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