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:
Claude committed 2026-11-02 05:39:56 +00:00
1 parent bc37c623c8
commit 68c82a97f4
3 files changed
+18 -5

No files matched your search

+2
View File
@@ -251,6 +251,8 @@ int main(int argc, char *argv[]) {
eq(js("drawer.shown.map(i => apps[i].label).join(',')"), "Gmail,Maps", "the search filters the list");
{
// the clear button empties the search and shows every app again
settle(100);
snap("search");
auto *clear = win->findChild<QQuickItem *>("searchClear");
check(clear && clear->isVisible(), "the search shows a clear button");
if (clear) tap(clear->mapToScene(QPointF(clear->width() / 2, clear->height() / 2)));