diff --git a/qt6/src/qml/FlowStyle.qml b/qt6/src/qml/FlowStyle.qml index acbcac69..14012681 100644 --- a/qt6/src/qml/FlowStyle.qml +++ b/qt6/src/qml/FlowStyle.qml @@ -449,8 +449,8 @@ QtObject { } property D.Palette placeholderText: D.Palette { - normal: Qt.rgba(0, 0, 0, 0.7) - normalDark: Qt.rgba(1, 1, 1, 0.7) + normal: Qt.rgba(0, 0, 0, 0.4) + normalDark: Qt.rgba(1, 1, 1, 0.4) } } @@ -459,6 +459,11 @@ QtObject { property int iconLeftMargin: 10 property int iconRightMargin: 7 property int animationDuration: 200 + + property D.Palette placeholderText: D.Palette { + normal: Qt.rgba(0, 0, 0, 0.7) + normalDark: Qt.rgba(1, 1, 1, 0.7) + } } property QtObject ipEdit: QtObject { diff --git a/qt6/src/qml/SearchEdit.qml b/qt6/src/qml/SearchEdit.qml index cca234f0..40d75551 100644 --- a/qt6/src/qml/SearchEdit.qml +++ b/qt6/src/qml/SearchEdit.qml @@ -9,6 +9,7 @@ import org.deepin.dtk.style 1.0 as DS LineEdit { id: control + placeholderTextPalette: DS.Style.searchEdit.placeholderText property alias placeholder: centerIndicatorLabel.text property bool editting: control.activeFocus || control.contextMenuVisible || (text.length !== 0) leftPadding: (editting) ? searchIcon.width + DS.Style.searchEdit.iconLeftMargin