Skip to content

Commit

Permalink
fix: Modify the SearchEdit style in window mode and add a hover effect.
Browse files Browse the repository at this point in the history
 Modify the SearchEdit style in window mode and add a hover effect.

Log:
Influence:
Issue: linuxdeepin/developer-center#7774
Issue: linuxdeepin/developer-center#7775
  • Loading branch information
robertkill committed Apr 10, 2024
1 parent 0c7dea2 commit 98c69a0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions qml/windowed/BottomBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,37 @@ Control {
id: searchEdit

Layout.preferredWidth: 360
anchors.centerIn: parent
Layout.alignment: Qt.AlignHCenter
Layout.preferredHeight: 30
placeholder: qsTr("Search")
onTextChanged: {
console.log(text)
SearchFilterProxyModel.setFilterRegularExpression(text.trim())
SearchFilterProxyModel.invalidate()
}
ColorSelector.family: Palette.CrystalColor

property Palette edittingPalette: Palette {
normal {
common: Qt.rgba(0, 0, 0, 0.1)
crystal: Qt.rgba(0, 0, 0, 0.1)
}
normalDark {
common: Qt.rgba(1, 1, 1, 0.1)
crystal: Qt.rgba(1, 1, 1, 0.1)
}
}

property Palette nomalPalette: Palette {
normal {
common: ("transparent")
crystal: ("transparent")
}
normalDark {
common: ("transparent")
crystal: ("transparent")
}
hovered {
crystal: Qt.rgba(0, 0, 0, 0.05)
}
hoveredDark {
crystal: Qt.rgba(1, 1, 1, 0.05)
}
}

Expand Down

0 comments on commit 98c69a0

Please sign in to comment.