Qt: draw the search clear button, fade home out under the drawer
The phone's font has no ✕, so the clear button showed as a missing-glyph box; it is now two drawn strokes. The home screen showed through the drawer's backdrop; it now fades out as the drawer slides over it, leaving only the wallpaper behind the app list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
3 files changed
+18
-5
No files matched your search
+13
-5
@@ -65,11 +65,19 @@ Rectangle {
|
||||
width: visible ? 44 : 0
|
||||
visible: input.displayText.length > 0
|
||||
z: 1
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: "✕"
|
||||
color: Qt.rgba(1, 1, 1, .7)
|
||||
font.pixelSize: 14
|
||||
// Drawn, not a glyph: phone fonts may have no ✕.
|
||||
Repeater {
|
||||
model: [45, -45]
|
||||
Rectangle {
|
||||
required property var modelData
|
||||
anchors.centerIn: parent
|
||||
width: 14
|
||||
height: 2
|
||||
radius: 1
|
||||
rotation: modelData
|
||||
antialiasing: true
|
||||
color: Qt.rgba(1, 1, 1, .7)
|
||||
}
|
||||
}
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in new issue
Block a user