Skip to content

Commit 3fbd2e9

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
fix: Search adjustments are the same color as other text icons
as title PMS-BUG-314401
1 parent fcd2774 commit 3fbd2e9

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

qml/windowed/BottomBar.qml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import QtQuick.Layouts 1.15
77
import QtQuick.Controls 2.15
88
import org.deepin.dtk 1.0
99
import org.deepin.ds 1.0
10+
import org.deepin.dtk.style 1.0 as DStyle
1011

1112
import org.deepin.launchpad 1.0
1213
import org.deepin.launchpad.models 1.0
@@ -51,17 +52,11 @@ Control {
5152
contentItem: SearchEdit {
5253
id: searchEdit
5354
padding: 1
54-
property Palette iconPalette: Palette {
55-
normal {
56-
crystal: Qt.rgba(0, 0, 0, 1)
57-
}
58-
normalDark {
59-
crystal: Qt.rgba(1, 1, 1, 1)
60-
}
61-
}
6255
placeholder: qsTr("Search")
63-
placeholderTextColor: palette.brightText
64-
palette.windowText: ColorSelector.iconPalette
56+
property Palette textColor: DStyle.Style.button.text
57+
placeholderTextColor: ColorSelector.textColor
58+
palette.windowText: ColorSelector.textColor
59+
ColorSelector.pressed: false
6560

6661
onTextChanged: {
6762
console.log(text)

0 commit comments

Comments
 (0)