Don't hardcode the color of text in the header
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 21 Oct 2020 11:40:42 +0000 (13:40 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 21 Oct 2020 11:40:42 +0000 (13:40 +0200)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/tray/Window.qml
theme/Style/Style.qml

index e19bd37bad6df57a41ae43e4841155b986804635..4299b7707799384f6ce0bb705af2bb7d0696beaf 100644 (file)
@@ -378,7 +378,7 @@ Window {
                                 width: Style.currentAccountLabelWidth\r
                                 text: UserModel.currentUser.name\r
                                 elide: Text.ElideRight\r
-                                color: "white"\r
+                                color: Style.ncTextColor\r
                                 font.pixelSize: Style.topLinePixelSize\r
                                 font.bold: true\r
                             }\r
@@ -387,7 +387,7 @@ Window {
                                 width: Style.currentAccountLabelWidth\r
                                 text: UserModel.currentUser.server\r
                                 elide: Text.ElideRight\r
-                                color: "white"\r
+                                color: Style.ncTextColor\r
                                 font.pixelSize: Style.subLinePixelSize\r
                             }\r
                         }\r
index b13a2b57e63041b97a75d9ff756309d9c1e4aedd..039a77cb9f29240e23b0e44664cb51c6acf4182d 100644 (file)
@@ -6,6 +6,7 @@ import QtQuick 2.5
 QtObject {\r
     // Colors\r
     property color ncBlue:      "#0082c9"\r
+    property color ncTextColor: "white"\r
     property color lightHover:  "#f7f7f7"\r
     property color menuBorder:  "#bdbdbd"\r
 \r