Add binding.
This commit is contained in:
parent
f702ab5330
commit
f5679cc66e
|
@ -32,12 +32,16 @@ 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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue