feat: All apps closer to the tvOS grid, narrower Control Center (M2) #32

Merged
namillis merged 5 commits from feat/tvos-grid into main 2026-11-24 15:41:01 +00:00
Owner

Follows the merged #31 (Liquid Glass look), which has the earlier screenshots to compare with. This PR brings All apps closer to Apple TV's app grid and narrows Control Center to the layout Gabriel (the repo owner) picked from two mockups, called M2: names only, with one status word on the network and Bluetooth tiles. It is 5 commits on e317bdd, the last commit of #31, so its base is the same tree main has now. The mockups stay off the repo because they include Apple's renders.

Head: 1cfe46d · Test APK: GlassLauncher-tvos-grid-fix2-97880e3-debug.apk (debug build of 97880e3, the last code commit; "fix2" is the second fix round). 1cfe46d adds only docs, and its debug APK came out byte-identical: sha256 1539e6364c776cfbfd5062ccd371f3eb8fbedbfe3a1779bb05882ef01901eb92 for both.

Terms used below:

  • Contrast is the WCAG 2 contrast ratio of white text against the brightest 5% of background pixels in its text box. 4.5:1 is the WCAG minimum for normal text.
  • Plate: the glass bar behind the favorites row at the top of All apps.
  • Rim: the thin light edge drawn around glass, a few pixels wide.
  • Scrim: a soft, see-through dark patch drawn behind text to make it readable. Halo: the old black glow around each letter, which the scrim replaces.
  • Pre-blurred glass: Glass Launcher's own glass, drawn from a small blurred copy of the wallpaper. Every release build uses it on every Android version. The other path is the Use system wallpaper setting, where Android draws the wallpaper and the launcher can't see its pixels.

What changed

  • All apps scroll (cb49770). Moving down keeps the selected row's top between y 180 and 750 px on a 1080p screen, as tvOS does. Going back up to row 1 scrolls all the way to the top (see "Where it differs").
  • All apps plate and background (cb49770, 745011b). The plate is a little brighter than the background behind it and has its own rim, which keeps the picture's color under it. The sides got their own rim fit, so all four sides are within 7 brightness levels (0-255) of tvOS on the test pictures. The background is a softer, more colorful blur of the wallpaper, fitted to tvOS.
  • All apps names (cb49770). Inter Medium, 23 px under the tile, centered, with no halo. A scrim is drawn behind a name only where the picture is too bright for white text. Its darkness aims at 4.8:1 on the blurred background; the measured result on screen is lower (see "How it was checked") but stays above 4.5:1. Over dark pictures nothing is drawn.
  • Names on see-through banners (745011b, 97880e3). Some app banners are mostly transparent and draw their own white name (the "Clear" test apps in the screenshots). The launcher checks each banner image once: if at least 10% of it is see-through and it has light text, its text gets the same scrim. Opaque banners and banners with dark text get nothing. The Custom icon background setting is not changed by this. The scrim is redrawn while the grid scrolls, so it is the same whichever way you reach a row.
  • No dim when All apps opens from Control Center (745011b). Before, All apps opened from Control Center's All apps button kept the Control Center's dim baked into its background. Now it looks the same as All apps opened from home.
  • Control Center M2 (b78b33e). The card is 624 px wide (was 816), with tiles 88 px tall (was 96) and rows 66 px (was 74). The second lines are gone, except one status word on the network tile (Connected / Not connected) and on Bluetooth (On / Off / Audio connected). The details stay on each settings page, and TalkBack reads each tile as "name, details" (for example "Wallpaper, slideshow every 30 seconds"). With no network, the network glyph turns red; its name stays white.
  • Docs (1cfe46d). CHANGELOG.md and README.md describe the above.
  • Where in the code. All in glasslauncher/: TvGlass.java (plate rims, backdrop, scrims, see-through banner detection), LauncherActivity.java (All apps grid, scroll, Control Center tiles), HomeGlass.java (scroll band), SettingsSheet.java (Control Center sizes and the red glyph), strings.xml, the debug and release HomeDebug.java, and the new TvGridTest.java. In debug builds, HomeDebug fakes a network loss or Bluetooth audio when a file files/force_cc_offline, force_cc_bt_off or force_cc_bt_audio exists in the app's data folder; the release copy always returns false.

No new permissions. The manifest is unchanged. minSdk stays 26 (Android 8).

Screenshots

Our own Glass Launcher on the emulator (Android TV 14, API 34, 1080p), from 97880e3. All apps at row 1 is the first screen after opening it, with Orange Banner selected. The "Clear One / Three / Two" apps are see-through test banners.

All apps, winter All apps, Yosemite
all apps winter all apps yosemite
All apps, Matterhorn Control Center M2, winter, Ethernet selected
all apps matterhorn control center
Control Center M2, no network (red glyph), Bluetooth selected Control Center M2, Bluetooth audio connected
offline bt audio

The no-network and Bluetooth-audio states were forced with the debug switch, because the emulator can't drop its Ethernet or connect a headset.

How it was checked

  • Unit tests: 276 pass, 0 failed, 0 skipped (8 new, in TvGridTest: the scroll band, the backdrop and plate color math, the rims over gray, where the name scrim is drawn, and see-through banner detection).
  • Lint: 0 errors, 8 warnings, the same 8 as at e317bdd.
  • Release build: not built for this PR. Only the debug APK was built and tested.
  • Emulator (Android TV 14 at 1080p, forced to the pre-blurred glass that release builds draw on every version):
    • Scroll: the top of the selected row, in px, with tvOS's value after it. Row 1: 360 (360). Row 2: 620 (620). Row 3: 750 (750). Row 4: 750 (752). Back up to row 3: 490 (492). Row 2: 230 (232). Row 1: top of the screen (tvOS 180). Rows 1 and 2 fit without scrolling, so they sit at their natural place.
    • Lowest contrast: All apps names 4.73:1 (winter); see-through banner names 4.62:1; the Control Center names and status words 6.12:1. A pure white picture gives 5.10:1 on every All apps name.
    • All apps opened from Control Center is pixel-identical to All apps opened from home.
    • Home, and every Control Center state, are pixel-identical to the previous commit wherever this PR doesn't mean to change them (clock area masked).
    • Also tried: 5 icons per row (on cb49770), a short 2-row grid, the system wallpaper setting, and the Custom icon background setting.
  • Gabriel's TV (hometv, Android 11): the APK was only installed. Nothing was measured or walked through on it.

Where it differs from tvOS

  • Going back up to row 1 shows the whole plate. tvOS stops row 1 at y 180 with the plate cut off. Glass Launcher's plate can't be selected, so row 1 is the only place to see it whole.
  • A scrim behind All apps names, only over bright pictures. tvOS draws none and drops to 2.1:1 on winter.
  • A scrim behind see-through banner names. tvOS puts such banners on a solid black tile.
  • The no-network glyph in Control Center is red (0xFF6B6B). tvOS and the M2 mockup draw it white.
  • Inter Medium instead of Apple's SF Pro, which can't be bundled. The glow under the selected app stays, as in #31.
  • The plate's lift and side rims appear only on the pre-blurred glass. With Use system wallpaper on, the plate keeps a gray rim and names keep the old halo.

Not covered yet

  • Gabriel's TV beyond the install.
  • 5 icons per row and the short grid after the last two commits (745011b, 97880e3).
  • Fling or touch scrolling. It goes through the same code that moves cells for key presses, but it wasn't run.
  • A real network loss and real Bluetooth audio (both forced on the emulator).
  • A real device on Android 12 or newer, and Android 8.x. No such device was at hand; the emulator stands in for the glass, which is the same on every version.
  • "Audio connected" fills its space exactly; a longer translation would not fit. The app has English strings only today.

Trying it

adb install -r GlassLauncher-tvos-grid-fix2-97880e3-debug.apk, then open All apps over a bright and a dark wallpaper, scroll down and back up, and open Settings to see Control Center.

Follows the merged [#31](https://git.namillis.me/namillis/GlassLauncherTV/pulls/31) (Liquid Glass look), which has the earlier screenshots to compare with. This PR brings All apps closer to Apple TV's app grid and narrows Control Center to the layout Gabriel (the repo owner) picked from two mockups, called M2: names only, with one status word on the network and Bluetooth tiles. It is 5 commits on e317bdd, the last commit of #31, so its base is the same tree main has now. The mockups stay off the repo because they include Apple's renders. Head: `1cfe46d` · Test APK: `GlassLauncher-tvos-grid-fix2-97880e3-debug.apk` (debug build of 97880e3, the last code commit; "fix2" is the second fix round). 1cfe46d adds only docs, and its debug APK came out byte-identical: sha256 `1539e6364c776cfbfd5062ccd371f3eb8fbedbfe3a1779bb05882ef01901eb92` for both. Terms used below: - **Contrast** is the WCAG 2 contrast ratio of white text against the brightest 5% of background pixels in its text box. 4.5:1 is the WCAG minimum for normal text. - **Plate**: the glass bar behind the favorites row at the top of All apps. - **Rim**: the thin light edge drawn around glass, a few pixels wide. - **Scrim**: a soft, see-through dark patch drawn behind text to make it readable. **Halo**: the old black glow around each letter, which the scrim replaces. - **Pre-blurred glass**: Glass Launcher's own glass, drawn from a small blurred copy of the wallpaper. Every release build uses it on every Android version. The other path is the **Use system wallpaper** setting, where Android draws the wallpaper and the launcher can't see its pixels. ## What changed - **All apps scroll (cb49770).** Moving down keeps the selected row's top between y 180 and 750 px on a 1080p screen, as tvOS does. Going back up to row 1 scrolls all the way to the top (see "Where it differs"). - **All apps plate and background (cb49770, 745011b).** The plate is a little brighter than the background behind it and has its own rim, which keeps the picture's color under it. The sides got their own rim fit, so all four sides are within 7 brightness levels (0-255) of tvOS on the test pictures. The background is a softer, more colorful blur of the wallpaper, fitted to tvOS. - **All apps names (cb49770).** Inter Medium, 23 px under the tile, centered, with no halo. A scrim is drawn behind a name only where the picture is too bright for white text. Its darkness aims at 4.8:1 on the blurred background; the measured result on screen is lower (see "How it was checked") but stays above 4.5:1. Over dark pictures nothing is drawn. - **Names on see-through banners (745011b, 97880e3).** Some app banners are mostly transparent and draw their own white name (the "Clear" test apps in the screenshots). The launcher checks each banner image once: if at least 10% of it is see-through and it has light text, its text gets the same scrim. Opaque banners and banners with dark text get nothing. The Custom icon background setting is not changed by this. The scrim is redrawn while the grid scrolls, so it is the same whichever way you reach a row. - **No dim when All apps opens from Control Center (745011b).** Before, All apps opened from Control Center's All apps button kept the Control Center's dim baked into its background. Now it looks the same as All apps opened from home. - **Control Center M2 (b78b33e).** The card is 624 px wide (was 816), with tiles 88 px tall (was 96) and rows 66 px (was 74). The second lines are gone, except one status word on the network tile (Connected / Not connected) and on Bluetooth (On / Off / Audio connected). The details stay on each settings page, and TalkBack reads each tile as "name, details" (for example "Wallpaper, slideshow every 30 seconds"). With no network, the network glyph turns red; its name stays white. - **Docs (1cfe46d).** `CHANGELOG.md` and `README.md` describe the above. - **Where in the code.** All in `glasslauncher/`: `TvGlass.java` (plate rims, backdrop, scrims, see-through banner detection), `LauncherActivity.java` (All apps grid, scroll, Control Center tiles), `HomeGlass.java` (scroll band), `SettingsSheet.java` (Control Center sizes and the red glyph), `strings.xml`, the debug and release `HomeDebug.java`, and the new `TvGridTest.java`. In debug builds, `HomeDebug` fakes a network loss or Bluetooth audio when a file `files/force_cc_offline`, `force_cc_bt_off` or `force_cc_bt_audio` exists in the app's data folder; the release copy always returns false. No new permissions. The manifest is unchanged. minSdk stays 26 (Android 8). ## Screenshots Our own Glass Launcher on the emulator (Android TV 14, API 34, 1080p), from 97880e3. All apps at row 1 is the first screen after opening it, with Orange Banner selected. The "Clear One / Three / Two" apps are see-through test banners. | | | |---|---| | All apps, winter | All apps, Yosemite | | ![all apps winter](https://git.namillis.me/attachments/f8acfb33-f083-41a5-9550-6f777e030c36) | ![all apps yosemite](https://git.namillis.me/attachments/6605353a-1ea4-48d4-9bff-2436d433b698) | | All apps, Matterhorn | Control Center M2, winter, Ethernet selected | | ![all apps matterhorn](https://git.namillis.me/attachments/a9f406d9-0daf-4a09-bf89-ed05d46203c4) | ![control center](https://git.namillis.me/attachments/45dfa39d-22bf-4a71-a5a9-f534b5567c38) | | Control Center M2, no network (red glyph), Bluetooth selected | Control Center M2, Bluetooth audio connected | | ![offline](https://git.namillis.me/attachments/3104a8a3-3061-4d08-8273-85f0a4270ad7) | ![bt audio](https://git.namillis.me/attachments/578cd9f9-8313-4db8-8c57-b39d27643093) | The no-network and Bluetooth-audio states were forced with the debug switch, because the emulator can't drop its Ethernet or connect a headset. ## How it was checked - **Unit tests:** 276 pass, 0 failed, 0 skipped (8 new, in `TvGridTest`: the scroll band, the backdrop and plate color math, the rims over gray, where the name scrim is drawn, and see-through banner detection). - **Lint:** 0 errors, 8 warnings, the same 8 as at e317bdd. - **Release build:** not built for this PR. Only the debug APK was built and tested. - **Emulator (Android TV 14 at 1080p, forced to the pre-blurred glass that release builds draw on every version):** - Scroll: the top of the selected row, in px, with tvOS's value after it. Row 1: 360 (360). Row 2: 620 (620). Row 3: 750 (750). Row 4: 750 (752). Back up to row 3: 490 (492). Row 2: 230 (232). Row 1: top of the screen (tvOS 180). Rows 1 and 2 fit without scrolling, so they sit at their natural place. - Lowest contrast: All apps names 4.73:1 (winter); see-through banner names 4.62:1; the Control Center names and status words 6.12:1. A pure white picture gives 5.10:1 on every All apps name. - All apps opened from Control Center is pixel-identical to All apps opened from home. - Home, and every Control Center state, are pixel-identical to the previous commit wherever this PR doesn't mean to change them (clock area masked). - Also tried: 5 icons per row (on cb49770), a short 2-row grid, the system wallpaper setting, and the Custom icon background setting. - **Gabriel's TV (hometv, Android 11):** the APK was only installed. Nothing was measured or walked through on it. ## Where it differs from tvOS - **Going back up to row 1 shows the whole plate.** tvOS stops row 1 at y 180 with the plate cut off. Glass Launcher's plate can't be selected, so row 1 is the only place to see it whole. - **A scrim behind All apps names, only over bright pictures.** tvOS draws none and drops to 2.1:1 on winter. - **A scrim behind see-through banner names.** tvOS puts such banners on a solid black tile. - **The no-network glyph in Control Center is red** (0xFF6B6B). tvOS and the M2 mockup draw it white. - **Inter Medium instead of Apple's SF Pro**, which can't be bundled. The glow under the selected app stays, as in #31. - The plate's lift and side rims appear only on the pre-blurred glass. With Use system wallpaper on, the plate keeps a gray rim and names keep the old halo. ## Not covered yet - Gabriel's TV beyond the install. - 5 icons per row and the short grid after the last two commits (745011b, 97880e3). - Fling or touch scrolling. It goes through the same code that moves cells for key presses, but it wasn't run. - A real network loss and real Bluetooth audio (both forced on the emulator). - A real device on Android 12 or newer, and Android 8.x. No such device was at hand; the emulator stands in for the glass, which is the same on every version. - "Audio connected" fills its space exactly; a longer translation would not fit. The app has English strings only today. ## Trying it `adb install -r GlassLauncher-tvos-grid-fix2-97880e3-debug.apk`, then open All apps over a bright and a dark wallpaper, scroll down and back up, and open Settings to see Control Center.
- Scroll keeps the focused row top between y 180 and 750 (tvOS); row 1
  always scrolls to 0 so the favorites plate shows whole (departure).
- Grid-only plate: interior = backdrop x 1.08 + 15, RIM_GRID_PLATE mixes
  toward white per ring and keeps the fill's color, corner 68 px. The
  home plate keeps RIM_PLATE and 61 px.
- Backdrop (API 26-30): box r3 x 7 on the 1/12 copy (sigma about 55),
  gain 0.67, saturation x2, +87; the text-safe cap is gone.
- Focused label: Inter Medium, text top 23 px under the tile, no halo;
  a soft black scrim only as dark as 4.8:1 needs (halo kept where there
  is no backdrop bitmap: system wallpaper, live blur path).
- Card 624 wide (right edge 1868, top 125), half tiles 304 x 88 r 43,
  rows 624 x 66; the round buttons move up under the shorter card.
- Second lines gone from Inputs, Hidden apps, Wallpaper and the three
  rows; each is still on its own page. Network keeps Connected / Not
  connected, Bluetooth keeps On / Off / Audio connected.
- Off discs 0x14FFFFFF (was 0x2E). No network: slashed Wi-Fi glyph in
  the Uninstall red 0xFF6B6B (0xD63333 on the selected tile).
- TalkBack: every tile and row says its state in place of the removed
  line ("Inputs, Apple TV, Apple TV, 5 more").
- Debug only: files/force_cc_<offline|bt_off|bt_audio> for captures.
- Plate sides get their own rim (RIM_GRID_PLATE_SIDES: a constant plus
  a share of the headroom, equal adds) so over winter and yosemite every
  side is within 7 L of tvOS; over gray they now read 170 150 128.
- See-through banners (app art with alpha, or a custom logo with Custom
  icon background off) get the label's soft black scrim behind their
  light ink, only as dark as white needs for 4.8:1. No tile is added.
- The All apps backdrop copy no longer catches the Control Center's
  fading 0.70x dim: the fade is ended before the copy when nothing
  modal is open.
offsetTopAndBottom moves a cell without redrawing it, so a banner scrim
kept the darkness it had where the cell was last drawn, mid-scroll, and
row 1 reached on the way back up (r1u) came out lighter than on the way
down (fix-check). Cells with a banner scrim are now invalidated whenever
repositionAttached moves them.
Author
Owner

Intent. These 5 commits follow the merged #31. They make All apps scroll and look like Apple TV's app grid (scroll band, lifted favorites plate with its own rim, tvOS-fitted background, Medium names), keep every name readable over bright pictures with the least darkening that reaches 4.5:1, including names drawn by see-through banners, and narrow Control Center to the M2 layout Gabriel picked: names only, one status word for network and Bluetooth.

Not goals:

  • a pixel-exact copy of tvOS: the four departures are listed in the description;
  • changes to the home screen, the settings pages or the clock bubble (the home screen was checked pixel-identical to #31 apart from the time);
  • live blur on Android 12+;
  • new settings or features;
  • a release.
**Intent.** These 5 commits follow the merged #31. They make All apps scroll and look like Apple TV's app grid (scroll band, lifted favorites plate with its own rim, tvOS-fitted background, Medium names), keep every name readable over bright pictures with the least darkening that reaches 4.5:1, including names drawn by see-through banners, and narrow Control Center to the M2 layout Gabriel picked: names only, one status word for network and Bluetooth. **Not goals:** - a pixel-exact copy of tvOS: the four departures are listed in the description; - changes to the home screen, the settings pages or the clock bubble (the home screen was checked pixel-identical to #31 apart from the time); - live blur on Android 12+; - new settings or features; - a release.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
namillis/GlassLauncherTV!32
No description provided.