[vlc-devel] [PATCH 28/33] qml: fix foreground color handling in IconToolButton
Prince Gupta
guptaprince8832 at gmail.com
Wed Feb 3 10:56:44 UTC 2021
use focusbackground.foregroundColor property for foreground color since it's animated based on the background color
---
modules/gui/qt/widgets/qml/IconToolButton.qml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/IconToolButton.qml b/modules/gui/qt/widgets/qml/IconToolButton.qml
index 08cfc76ca3..dfb1c179a5 100644
--- a/modules/gui/qt/widgets/qml/IconToolButton.qml
+++ b/modules/gui/qt/widgets/qml/IconToolButton.qml
@@ -29,7 +29,7 @@ ToolButton {
padding: 0
property string iconText: ""
- property color color: focusBackground.foregroundColor
+ property alias color: focusBackground.defaultForeground
property color colorDisabled: VLCStyle.colors.textInactive
property color colorOverlay: "transparent"
property string textOverlay: ""
@@ -55,7 +55,7 @@ ToolButton {
Label {
id: text
text: control.iconText
- color: control.enabled ? control.color : control.colorDisabled
+ color: control.enabled ? focusBackground.foregroundColor : control.colorDisabled
anchors.centerIn: parent
@@ -86,7 +86,7 @@ ToolButton {
Label {
text: VLCIcons.active_indicator
- color: control.enabled ? control.color : control.colorDisabled
+ color: control.enabled ? focusBackground.foregroundColor : control.colorDisabled
visible: !control.paintOnly && control.checked
anchors.centerIn: parent
--
2.25.1
More information about the vlc-devel
mailing list