From 85ca9d44002c714f9452fd4c6482121ad56e0e6b Mon Sep 17 00:00:00 2001 From: wujiangyu Date: Fri, 23 May 2025 14:40:58 +0800 Subject: [PATCH] fix: Search adjustments are the same color as other text icons as title PMS-BUG-314401 --- qml/windowed/BottomBar.qml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/qml/windowed/BottomBar.qml b/qml/windowed/BottomBar.qml index 2017f6e9..77cf0f07 100644 --- a/qml/windowed/BottomBar.qml +++ b/qml/windowed/BottomBar.qml @@ -7,6 +7,7 @@ import QtQuick.Layouts 1.15 import QtQuick.Controls 2.15 import org.deepin.dtk 1.0 import org.deepin.ds 1.0 +import org.deepin.dtk.style 1.0 as DStyle import org.deepin.launchpad 1.0 import org.deepin.launchpad.models 1.0 @@ -51,17 +52,11 @@ Control { contentItem: SearchEdit { id: searchEdit padding: 1 - property Palette iconPalette: Palette { - normal { - crystal: Qt.rgba(0, 0, 0, 1) - } - normalDark { - crystal: Qt.rgba(1, 1, 1, 1) - } - } placeholder: qsTr("Search") - placeholderTextColor: palette.brightText - palette.windowText: ColorSelector.iconPalette + property Palette textColor: DStyle.Style.button.text + placeholderTextColor: ColorSelector.textColor + palette.windowText: ColorSelector.textColor + ColorSelector.pressed: false onTextChanged: { console.log(text)