From 9db4e7e9d2628a113db39ca233acf97f09f2a4e7 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Sat, 31 Oct 2026 17:36:54 -0647 Subject: [PATCH 1/3] omamobile-shell 0.2.58: home icons follow a wide cell A home-screen icon is capped at 64 px. In a cell wider than 128 px (scale 2, or the 3-column grid) it now takes the cell's 62 %, limited by the cell's height; narrower cells, the 7 Pro's and the 9a's default grids among them, keep the old size exactly. --- .../omamobile-shell/plugins/omamobile.home/AppTile.qml | 8 +++++++- packages/omamobile-shell/test/all | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml b/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml index 3fc190f88..22194d381 100644 --- a/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml +++ b/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml @@ -36,7 +36,13 @@ Item { anchors.bottom: parent.verticalCenter anchors.bottomMargin: -Math.round(width * 0.18) // Phone-sized, like a home-screen icon on iOS: most of the cell's width. - width: Math.min(64, Math.max(40, Math.min(tile.width, tile.height) * 0.62)) + // Up to 128 px of cell width (the 7 Pro's and the 9a's default grids, + // about 120 px) it is exactly as before, capped at 64. A wider cell + // (scale 2, or the 3-column grid) follows the cell with no cap; there the + // height limit keeps the icon's top in the cell and room for its name. + width: tile.width > 128 + ? Math.max(40, Math.min(tile.width * 0.62, tile.height * 0.6)) + : Math.min(64, Math.max(40, Math.min(tile.width, tile.height) * 0.62)) height: width fillMode: Image.PreserveAspectFit asynchronous: true diff --git a/packages/omamobile-shell/test/all b/packages/omamobile-shell/test/all index b7c7c0376..78b35009a 100755 --- a/packages/omamobile-shell/test/all +++ b/packages/omamobile-shell/test/all @@ -616,6 +616,10 @@ grep -c '!LauncherModel.opensShellSurface(entry))' plugins/omamobile.launcher/La grep -c '!HomeModel.opensShellSurface(entry))' plugins/omamobile.home/Home.qml >/dev/null || fail "no launch toast for an entry that opens a shell surface (drawer and home)" grep -c 'Quickshell.execDetached(HomeModel.appLaunchArgv(entry.id))' plugins/omamobile.home/Home.qml >/dev/null || fail "home-screen apps launch through omamobile-launch" grep -c 'tile.home.launch(tile.entry.app)' plugins/omamobile.home/AppTile.qml >/dev/null || fail "app tiles launch through the home screen" +# Home icons: unchanged (capped at 64) up to a 128 px cell, the cell's 62 % +# beyond it (scale 2, the 3-column grid) +grep -c 'Math.min(64, Math.max(40, Math.min(tile.width, tile.height) \* 0.62))' plugins/omamobile.home/AppTile.qml >/dev/null || fail "narrow cells keep the 64 px icon" +grep -c 'width: tile.width > 128' plugins/omamobile.home/AppTile.qml >/dev/null || fail "wide cells lift the icon cap" grep -c 'Quickshell.execDetached(HomeModel.commandLaunchArgv(argv))' plugins/omamobile.home/WidgetHost.qml >/dev/null || fail "widgets' host.launch goes through omamobile-launch" grep -c 'Quickshell.execDetached(HomeModel.urlLaunchArgv(text))' plugins/omamobile.home/WidgetHost.qml >/dev/null || fail "widgets' host.openUrl goes through omamobile-launch" grep -c 'HomeModel.commandLaunchArgv(\["sh", "-c", tap\])' plugins/omamobile.home/CommandWidget.qml >/dev/null || fail "the text widget's tap goes through omamobile-launch" From 01b3929eed58083c0bf5596a27018e8bcbc63e60 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Sun, 1 Nov 2026 09:39:41 -0647 Subject: [PATCH 2/3] omamobile-shell 0.2.66: the next free version after main's 0.2.64 --- packages/omamobile-shell/version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/omamobile-shell/version b/packages/omamobile-shell/version index 00c8f41d5..69d48bba4 100644 --- a/packages/omamobile-shell/version +++ b/packages/omamobile-shell/version @@ -1 +1 @@ -0.2.65 +0.2.66 From 944f6a3bf7002d7264267a7f6501842368ca387c Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Sun, 1 Nov 2026 13:29:22 -0647 Subject: [PATCH 3/3] omamobile-shell: a wide cell's icon takes the larger of the capped and the cell-following size On its side the 7 Pro's cells are wider than 128 px but about 82 px high, so the cell-following size alone dropped its icon from 51 to 49 px. Taking the larger of the two means the change only ever grows an icon. A test line keeps the Math.max form. --- packages/omamobile-shell/plugins/omamobile.home/AppTile.qml | 5 ++++- packages/omamobile-shell/test/all | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml b/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml index 22194d381..4c5e9ab9d 100644 --- a/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml +++ b/packages/omamobile-shell/plugins/omamobile.home/AppTile.qml @@ -40,8 +40,11 @@ Item { // about 120 px) it is exactly as before, capped at 64. A wider cell // (scale 2, or the 3-column grid) follows the cell with no cap; there the // height limit keeps the icon's top in the cell and room for its name. + // It takes the larger of the two, so a wide but short cell (the 7 Pro + // on its side) keeps its old size: this only ever grows an icon. width: tile.width > 128 - ? Math.max(40, Math.min(tile.width * 0.62, tile.height * 0.6)) + ? Math.max(Math.min(64, Math.max(40, Math.min(tile.width, tile.height) * 0.62)), + Math.min(tile.width * 0.62, tile.height * 0.6)) : Math.min(64, Math.max(40, Math.min(tile.width, tile.height) * 0.62)) height: width fillMode: Image.PreserveAspectFit diff --git a/packages/omamobile-shell/test/all b/packages/omamobile-shell/test/all index 78b35009a..c170091d3 100755 --- a/packages/omamobile-shell/test/all +++ b/packages/omamobile-shell/test/all @@ -620,6 +620,7 @@ grep -c 'tile.home.launch(tile.entry.app)' plugins/omamobile.home/AppTile.qml >/ # beyond it (scale 2, the 3-column grid) grep -c 'Math.min(64, Math.max(40, Math.min(tile.width, tile.height) \* 0.62))' plugins/omamobile.home/AppTile.qml >/dev/null || fail "narrow cells keep the 64 px icon" grep -c 'width: tile.width > 128' plugins/omamobile.home/AppTile.qml >/dev/null || fail "wide cells lift the icon cap" +grep -c '? Math.max(Math.min(64, Math.max(40, Math.min(tile.width, tile.height) \* 0.62)),' plugins/omamobile.home/AppTile.qml >/dev/null || fail "a wide cell never shrinks the icon below the capped size (the 7 Pro on its side)" grep -c 'Quickshell.execDetached(HomeModel.commandLaunchArgv(argv))' plugins/omamobile.home/WidgetHost.qml >/dev/null || fail "widgets' host.launch goes through omamobile-launch" grep -c 'Quickshell.execDetached(HomeModel.urlLaunchArgv(text))' plugins/omamobile.home/WidgetHost.qml >/dev/null || fail "widgets' host.openUrl goes through omamobile-launch" grep -c 'HomeModel.commandLaunchArgv(\["sh", "-c", tap\])' plugins/omamobile.home/CommandWidget.qml >/dev/null || fail "the text widget's tap goes through omamobile-launch"