From f5679cc66efa454be5b15964fa4e030fc9b0aefd Mon Sep 17 00:00:00 2001 From: namedkitten Date: Fri, 24 Apr 2020 17:22:09 +0100 Subject: [PATCH] Add binding. --- src/qml/UIComponents/SmoothButton.qml | 6 +++++- src/qml/UIComponents/VideoProgress.qml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/qml/UIComponents/SmoothButton.qml b/src/qml/UIComponents/SmoothButton.qml index 54757d9..9cd0a81 100644 --- a/src/qml/UIComponents/SmoothButton.qml +++ b/src/qml/UIComponents/SmoothButton.qml @@ -32,10 +32,14 @@ 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") + } } } diff --git a/src/qml/UIComponents/VideoProgress.qml b/src/qml/UIComponents/VideoProgress.qml index aa8b405..632384f 100644 --- a/src/qml/UIComponents/VideoProgress.qml +++ b/src/qml/UIComponents/VideoProgress.qml @@ -121,7 +121,7 @@ Slider { ProgressBar { id: cachedLength - background: Item {} + background: null contentItem: Item { Rectangle { width: cachedLength.visualPosition * parent.width