Fix UnifiedSearch text field placeholder text color for light and dark theme.
authoralex-z <blackslayer4@gmail.com>
Mon, 5 Jun 2023 16:14:20 +0000 (18:14 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 8 Jun 2023 08:01:49 +0000 (10:01 +0200)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/gui/tray/UnifiedSearchInputContainer.qml

index eebdad8f7ae720c688346210cb2650032dc88676..c6493176d6f51b154cf0ba3a15872febf2efd2c5 100644 (file)
@@ -27,6 +27,8 @@ TextField {
 
     readonly property color textFieldIconsColor: palette.dark
 
+    readonly property color placeholderColor: palette.dark
+
     readonly property int textFieldIconsOffset: Style.trayHorizontalMargin
 
     readonly property double textFieldIconsScaleFactor: 0.6
@@ -39,6 +41,7 @@ TextField {
     rightPadding: trayWindowUnifiedSearchTextFieldClearTextButton.width + trayWindowUnifiedSearchTextFieldClearTextButton.anchors.rightMargin + textFieldHorizontalPaddingOffset
 
     placeholderText: qsTr("Search files, messages, events …")
+    placeholderTextColor: placeholderColor
 
     selectByMouse: true