Add binding.
This commit is contained in:
parent
f702ab5330
commit
f5679cc66e
|
@ -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 {
|
||||
|
|
|
@ -121,7 +121,7 @@ Slider {
|
|||
|
||||
ProgressBar {
|
||||
id: cachedLength
|
||||
background: Item {}
|
||||
background: null
|
||||
contentItem: Item {
|
||||
Rectangle {
|
||||
width: cachedLength.visualPosition * parent.width
|
||||
|
|
Loading…
Reference in a new issue