Use the icon color property to color the icons in the tray window header.
authorCamila <hello@camila.codes>
Thu, 10 Dec 2020 16:43:45 +0000 (17:43 +0100)
committerCamila <hello@camila.codes>
Thu, 10 Dec 2020 16:43:45 +0000 (17:43 +0100)
The icon color is set with APPLICATION_WIZARD_HEADER_TITLE_COLOR in the
theme.

Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/HeaderButton.qml
src/gui/tray/Window.qml

index a1a9fc69aa7e9e24d7d8a03433b2d1e0edec908a..a299532073647846d845dac84ed3483d4d0aca2c 100644 (file)
@@ -18,7 +18,7 @@ Button {
 
     icon.width: Style.headerButtonIconSize
     icon.height: Style.headerButtonIconSize
-    icon.color: "transparent"
+    icon.color: Style.ncTextColor
 
     Layout.alignment: Qt.AlignRight
     Layout.preferredWidth:  Style.trayWindowHeaderHeight
index ac9de333f75f482f249ddca0142eb5a28c5597a3..f46bc610013138e133988f100784be1834529f6f 100644 (file)
@@ -388,13 +388,19 @@ Window {
                             }\r
                         }\r
 \r
-                        Image {\r
-                            Layout.alignment: Qt.AlignRight\r
-                            verticalAlignment: Qt.AlignCenter\r
-                            Layout.margins: Style.accountDropDownCaretMargin\r
-                            source: "qrc:///client/theme/white/caret-down.svg"\r
-                            sourceSize.width: Style.accountDropDownCaretSize\r
-                            sourceSize.height: Style.accountDropDownCaretSize\r
+                        ColorOverlay {\r
+                            cached: true\r
+                            color: Style.ncTextColor\r
+                            width: source.width\r
+                            height: source.height\r
+                            source: Image {\r
+                                Layout.alignment: Qt.AlignRight\r
+                                verticalAlignment: Qt.AlignCenter\r
+                                Layout.margins: Style.accountDropDownCaretMargin\r
+                                source: "qrc:///client/theme/white/caret-down.svg"\r
+                                sourceSize.width: Style.accountDropDownCaretSize\r
+                                sourceSize.height: Style.accountDropDownCaretSize\r
+                            }\r
                         }\r
                     }\r
                 }\r