feat: Liquid glass look closer to tvOS #31

Merged
namillis merged 6 commits from feat/liquid-glass into main 2026-11-24 15:29:08 +00:00
Owner

Glass Launcher's look, rebuilt to match tvOS 27's Liquid Glass. The glass was measured against the tvOS Simulator over Gabriel's wallpapers. The layouts follow the pictures Gabriel approved on 2026-11-23, except where listed under "Where it differs". Those pictures stay off the repo because they include Apple's renders.

Color numbers below are 0-255 per channel, in R G B order. "Gray 152" means R = G = 152 (blue a few levels higher).

Head: e317bdd · Test APK: GlassLauncher-liquid-glass-e317bdd-debug.apk (debug build, emulator-checked)

What changed

  • Glass. Every glass surface (app row, clock bubble, Control Center, long-press menu, All apps, messages) blurs the wallpaper and tints it the way tvOS does, with a separate fit for red, green and blue. Where a picture is too bright, the fill darkens only as much as its text needs. Each edge is one thin line, brightest along the top, and it takes the picture's color: over a night sky it turns blue. The app row's top edge is brighter, closer to Apple's.
  • Focus. The selected app grows by 1.224x with a thin top-lit sheen and a soft glow in its own color. The glow replaces the old focus shadow on the home row and in All apps, as Gabriel chose on picture 3b item 6. When the first app on the home row is selected, the row's glass grows 11 px to the left; when the last app is selected, 11 px to the right. That is what the tvOS dock does.
  • Settings. Control Center is separate glass tiles, rows and round buttons over the dimmed home. Every settings page opens as a full-screen dark list with gray values. Bluetooth (its Control Center tile) is one list that searches while open on Android 12+, with Search again and Open Settings. The round-button names get the same haze over bright pictures (Gabriel's call). No new permissions: the manifest is unchanged. A settings info line that wraps (such as "No hidden apps. Long-press an app...") now shows its second line instead of clipping it.
  • Clock bubble. The top right holds a small glass bubble with the time (no AM/PM) and one settings gear. The Wi-Fi and Bluetooth buttons are gone. An amber network glyph appears when the TV is offline. The big clock also drops AM/PM and shows the full date in white. Over bright pictures a soft dark haze keeps it readable (4.5:1 or more); over dark ones nothing changes.
  • All apps. Tiles are 250 x 150 px at tvOS's spacing, in rows that start at the top, with the favorites on a glass bar.
  • Messages. Launcher messages appear as a glass bubble under the clock instead of Android's toast: a white title, a gray detail line, and a green dot (red when something failed). Long ones wrap to more lines.
  • Font. Inter 4.1 throughout (SIL Open Font License, see Inter-LICENSE.txt and NOTICE.md).
  • Where in the code. All app changes are in glasslauncher/: TvGlass.java and TvGlassRim.java (glass), SettingsSheet.java and BluetoothPages.java (settings), LauncherActivity.java (home, focus and messages), plus tests. README.md and CHANGELOG.md describe the new look.

Upgrade note: a 1.0.9 user on the big clock is moved to the clock bubble once. In 1.0.9 the big clock was the default, and the saved setting is the same whether someone picked it or left the default, so the launcher can't tell them apart. Appearance > Clock turns it back on.

Size: the Inter fonts add about 1.6 MB to the APK. minSdk stays 26.

Screenshots

Emulator (Android 14 TV). The All apps shot is from e317bdd; home, Control Center, big clock and message shots are from 7c330ee; the others are from 355f5ff, which looks the same on those screens. Matterhorn and winter wallpapers.

Home, first app selected (Matterhorn) Home, gear selected (winter)
home gear
Control Center (Matterhorn) Control Center (winter)
cc cc winter
Appearance page Bluetooth list after a search
appearance bluetooth
Big clock over winter All apps, YouTube selected (winter)
big clock all apps
Message, green dot Failure message, red dot, long name (winter)
message error

How it was checked

  • Unit tests: 268 pass. They include contrast tests: every text drawn on glass keeps 4.7:1 or more over any wallpaper, pure white included. (Settings page titles sit on the flat dark page, not on glass; see below.)
  • Lint: 0 errors, 8 warnings, none of them new to this PR.
  • Emulator (Android 14 TV, 1080p): this draws exactly the glass Gabriel's Android 11 TV draws, because every Android version now uses the same pre-blurred glass (see "Where it differs").
    • Every layout box is within 4 px of the approved pictures, checked with uiautomator bounds. The app row is (50,784)-(1869,1013).
    • How much brighter the app row's top line is than the glass just under it, in R G B: Matterhorn +22 +47 +118 against tvOS's +12 +52 +109; Yosemite (a third test wallpaper) +53 +71 +77 against tvOS's +51 +71 +82. Closer to tvOS is better.
    • Text on glass measures 4.79:1 or more on the screenshots.
    • Focus moves from key to key as expected in home, All apps and settings.
    • A slideshow change recolors the app row, clock bubble and Control Center to the new picture.
    • When a message appears, the screen-reader event fires (it was logged on the emulator). TalkBack isn't installed on the TV image, so no speech was heard.
  • Gabriel's TV (Android 11): an earlier build of this glass ran on it. Its edges and fills matched the emulator within 4 levels (0-255) on the app row, and its lowest text contrast was 4.79:1.

Where it differs from tvOS or the approved pictures

  • Settings values are gray 152, where tvOS and the script that drew the approved picture use 142. 142 gives 4.16:1 on the rows; 152 gives 4.72:1.
  • Uninstall uses white text with a red icon. tvOS uses red text.
  • The message dot is green, as in the picture, for normal messages, and red for failures. Red is Gabriel's call, from 2026-11-23. The approved picture only shows a normal message.
  • The message detail line is solid gray (0xD9D9D9). The picture uses see-through white; solid gray keeps its contrast over any picture.
  • When another app is in front, a message shows as Android's own toast, with no dot. The launcher can't draw over other apps.
  • Long messages wrap and the bubble grows. A one-line message keeps the approved 560 x 104 px box.
  • Android 11 and older keep the system pairing screen. Searching inside the list would need location access before Android 12, and the launcher doesn't ask for it.
  • Android 12 and newer draw the same pre-blurred glass as Android 11. "Pre-blurred" means a small blurred copy of the wallpaper, made once per picture, that every glass surface samples. Android 12's live blur can't darken just the too-bright pixels to keep text readable, and it can't tint the edges. Debug builds keep the old live blur behind a switch, for comparison only.
  • No shadow under the selected settings row (the white pill) on Android 8.
  • The app row's top edge is about 10 levels (0-255) too red over Matterhorn. The edge can only add light, never remove it.
  • The big clock's time is smaller than in the picture (88 px, against the picture's 140 px).
  • Settings page titles are gray 128 at 4.33:1 on the flat page. That is below 4.5:1 for normal text, but passes the 3:1 rule for large text (57 px bold), and it matches the picture.
  • Inter instead of Apple's SF Pro, which can't be bundled.
  • A soft dark haze behind the big clock over bright pictures. tvOS has no big clock.
  • A soft dark haze behind the Control Center button names over bright pictures. The approved picture has none; Gabriel asked for it on 2026-11-23.

Not covered yet

  • Live glass on Android 12+. Release builds draw the pre-blurred glass everywhere, as noted above.
  • Android 8.x, which hasn't been run.
  • Pairing with a real Bluetooth device. The emulator's radio searches but finds nothing.
  • This build (e317bdd) on Gabriel's TV. That run waits until Gabriel is home; the emulator check above stands in until then.

Trying it

Install the test APK over the current debug build: adb install -r GlassLauncher-liquid-glass-e317bdd-debug.apk. Look first at the home row, Control Center and a settings page over a bright and a dark wallpaper.

Glass Launcher's look, rebuilt to match tvOS 27's Liquid Glass. The glass was measured against the tvOS Simulator over Gabriel's wallpapers. The layouts follow the pictures Gabriel approved on 2026-11-23, except where listed under "Where it differs". Those pictures stay off the repo because they include Apple's renders. Color numbers below are 0-255 per channel, in R G B order. "Gray 152" means R = G = 152 (blue a few levels higher). Head: `e317bdd` · Test APK: `GlassLauncher-liquid-glass-e317bdd-debug.apk` (debug build, emulator-checked) ## What changed - **Glass.** Every glass surface (app row, clock bubble, Control Center, long-press menu, All apps, messages) blurs the wallpaper and tints it the way tvOS does, with a separate fit for red, green and blue. Where a picture is too bright, the fill darkens only as much as its text needs. Each edge is one thin line, brightest along the top, and it takes the picture's color: over a night sky it turns blue. The app row's top edge is brighter, closer to Apple's. - **Focus.** The selected app grows by 1.224x with a thin top-lit sheen and a soft glow in its own color. The glow replaces the old focus shadow on the home row and in All apps, as Gabriel chose on picture 3b item 6. When the first app on the home row is selected, the row's glass grows 11 px to the left; when the last app is selected, 11 px to the right. That is what the tvOS dock does. - **Settings.** Control Center is separate glass tiles, rows and round buttons over the dimmed home. Every settings page opens as a full-screen dark list with gray values. Bluetooth (its Control Center tile) is one list that searches while open on Android 12+, with Search again and Open Settings. The round-button names get the same haze over bright pictures (Gabriel's call). No new permissions: the manifest is unchanged. A settings info line that wraps (such as "No hidden apps. Long-press an app...") now shows its second line instead of clipping it. - **Clock bubble.** The top right holds a small glass bubble with the time (no AM/PM) and one settings gear. The Wi-Fi and Bluetooth buttons are gone. An amber network glyph appears when the TV is offline. The big clock also drops AM/PM and shows the full date in white. Over bright pictures a soft dark haze keeps it readable (4.5:1 or more); over dark ones nothing changes. - **All apps.** Tiles are 250 x 150 px at tvOS's spacing, in rows that start at the top, with the favorites on a glass bar. - **Messages.** Launcher messages appear as a glass bubble under the clock instead of Android's toast: a white title, a gray detail line, and a green dot (red when something failed). Long ones wrap to more lines. - **Font.** Inter 4.1 throughout (SIL Open Font License, see `Inter-LICENSE.txt` and NOTICE.md). - **Where in the code.** All app changes are in `glasslauncher/`: `TvGlass.java` and `TvGlassRim.java` (glass), `SettingsSheet.java` and `BluetoothPages.java` (settings), `LauncherActivity.java` (home, focus and messages), plus tests. `README.md` and `CHANGELOG.md` describe the new look. **Upgrade note:** a 1.0.9 user on the big clock is moved to the clock bubble once. In 1.0.9 the big clock was the default, and the saved setting is the same whether someone picked it or left the default, so the launcher can't tell them apart. Appearance > Clock turns it back on. **Size:** the Inter fonts add about 1.6 MB to the APK. minSdk stays 26. ## Screenshots Emulator (Android 14 TV). The All apps shot is from e317bdd; home, Control Center, big clock and message shots are from 7c330ee; the others are from 355f5ff, which looks the same on those screens. Matterhorn and winter wallpapers. | | | |---|---| | Home, first app selected (Matterhorn) | Home, gear selected (winter) | | ![home](https://git.namillis.me/attachments/1b633e3b-d6f0-489e-9635-739f5f316fb5) | ![gear](https://git.namillis.me/attachments/5fc98674-cb04-453f-ac5a-9dd708fe2d58) | | Control Center (Matterhorn) | Control Center (winter) | | ![cc](https://git.namillis.me/attachments/a7ae562c-88cc-4ff7-93b6-01c0b36709aa) | ![cc winter](https://git.namillis.me/attachments/3e2ecebd-91a4-4ee0-b195-9540abc8441e) | | Appearance page | Bluetooth list after a search | | ![appearance](https://git.namillis.me/attachments/b8a49b25-2fe4-4295-9dee-94de9c6d6d36) | ![bluetooth](https://git.namillis.me/attachments/97a0c60e-be14-478d-af02-f9046b9157b7) | | Big clock over winter | All apps, YouTube selected (winter) | | ![big clock](https://git.namillis.me/attachments/c085b71a-2fff-4f98-a95b-8df54c473e0f) | ![all apps](https://git.namillis.me/attachments/eff9c26f-42b9-44a5-bd80-6e71762eeb58) | | Message, green dot | Failure message, red dot, long name (winter) | | ![message](https://git.namillis.me/attachments/7ab9add4-9353-4139-8965-23f601cda8c1) | ![error](https://git.namillis.me/attachments/47a60324-eeb0-4b8a-93da-786e79df256b) | ## How it was checked - **Unit tests:** 268 pass. They include contrast tests: every text drawn on glass keeps 4.7:1 or more over any wallpaper, pure white included. (Settings page titles sit on the flat dark page, not on glass; see below.) - **Lint:** 0 errors, 8 warnings, none of them new to this PR. - **Emulator (Android 14 TV, 1080p):** this draws exactly the glass Gabriel's Android 11 TV draws, because every Android version now uses the same pre-blurred glass (see "Where it differs"). - Every layout box is within 4 px of the approved pictures, checked with uiautomator bounds. The app row is (50,784)-(1869,1013). - How much brighter the app row's top line is than the glass just under it, in R G B: Matterhorn +22 +47 +118 against tvOS's +12 +52 +109; Yosemite (a third test wallpaper) +53 +71 +77 against tvOS's +51 +71 +82. Closer to tvOS is better. - Text on glass measures 4.79:1 or more on the screenshots. - Focus moves from key to key as expected in home, All apps and settings. - A slideshow change recolors the app row, clock bubble and Control Center to the new picture. - When a message appears, the screen-reader event fires (it was logged on the emulator). TalkBack isn't installed on the TV image, so no speech was heard. - **Gabriel's TV (Android 11):** an earlier build of this glass ran on it. Its edges and fills matched the emulator within 4 levels (0-255) on the app row, and its lowest text contrast was 4.79:1. ## Where it differs from tvOS or the approved pictures - **Settings values are gray 152,** where tvOS and the script that drew the approved picture use 142. 142 gives 4.16:1 on the rows; 152 gives 4.72:1. - **Uninstall uses white text with a red icon.** tvOS uses red text. - **The message dot is green, as in the picture, for normal messages, and red for failures.** Red is Gabriel's call, from 2026-11-23. The approved picture only shows a normal message. - **The message detail line is solid gray (0xD9D9D9).** The picture uses see-through white; solid gray keeps its contrast over any picture. - **When another app is in front, a message shows as Android's own toast,** with no dot. The launcher can't draw over other apps. - **Long messages wrap** and the bubble grows. A one-line message keeps the approved 560 x 104 px box. - **Android 11 and older keep the system pairing screen.** Searching inside the list would need location access before Android 12, and the launcher doesn't ask for it. - **Android 12 and newer draw the same pre-blurred glass as Android 11.** "Pre-blurred" means a small blurred copy of the wallpaper, made once per picture, that every glass surface samples. Android 12's live blur can't darken just the too-bright pixels to keep text readable, and it can't tint the edges. Debug builds keep the old live blur behind a switch, for comparison only. - **No shadow under the selected settings row (the white pill) on Android 8.** - **The app row's top edge is about 10 levels (0-255) too red over Matterhorn.** The edge can only add light, never remove it. - **The big clock's time is smaller than in the picture** (88 px, against the picture's 140 px). - **Settings page titles are gray 128 at 4.33:1** on the flat page. That is below 4.5:1 for normal text, but passes the 3:1 rule for large text (57 px bold), and it matches the picture. - **Inter instead of Apple's SF Pro,** which can't be bundled. - **A soft dark haze behind the big clock** over bright pictures. tvOS has no big clock. - **A soft dark haze behind the Control Center button names** over bright pictures. The approved picture has none; Gabriel asked for it on 2026-11-23. ## Not covered yet - Live glass on Android 12+. Release builds draw the pre-blurred glass everywhere, as noted above. - Android 8.x, which hasn't been run. - Pairing with a real Bluetooth device. The emulator's radio searches but finds nothing. - This build (e317bdd) on Gabriel's TV. That run waits until Gabriel is home; the emulator check above stands in until then. ## Trying it Install the test APK over the current debug build: `adb install -r GlassLauncher-liquid-glass-e317bdd-debug.apk`. Look first at the home row, Control Center and a settings page over a bright and a dark wallpaper.
- Clear glass plate: lighter blur, saturation boost, specular rim lit
  from the top-left, inner glow, dark hairline for bright skies, and
  corners concentric with the app cards.
- Focused cards get a glare and a bright glass rim.
- Settings card: backdrop darkened by brightness so the tint can be much
  lighter (55-60%), 28 dp corners, rounder rim-lit rows and tiles.
- All apps backdrop: lighter blur, more color, slightly dimmed.
- New Status bar clock (default): time in a glass capsule with the
  toolbar buttons. Existing Full clock users move to it once; the big
  clock stays available in Appearance > Clock.
Glass (measured against tvOS 27 over Gabriel's wallpapers):
- One per-channel material per surface (app row, clock bubble, Control
  Center, menu, All apps, messages), drawn from a pre-blurred wallpaper
  atlas and capped per pixel so text on glass keeps 4.7:1 on any picture,
  white included. Android 12+ draws the same glass as Android 11.
- Edges are one thin 3 px line, brightest at the top, in the picture's
  color; the app-row top edge gets an extra boost toward tvOS's.
- App row at tvOS's 1819 x 230 px with 250 x 150 tiles; it stretches
  11 px toward a selected first or last app; a glow in the selected app's
  color sits under it.

Home: a 178 x 60 clock bubble with the time (no AM/PM) and one gear,
replacing the Wi-Fi and Bluetooth buttons, with an amber badge when the
network is down; All apps at tvOS sizes; short messages as a glass bubble
under the clock.

Settings: Control Center as separate glass tiles; every page and
Bluetooth as a full-screen list with gray values and a soft focus pill
shadow; Bluetooth searches inside the list on Android 12+.

Type: Inter 4.1 (Light, Regular, Medium, SemiBold) under the SIL OFL 1.1,
with Inter-LICENSE.txt and a NOTICE entry; a custom clock span so the
font also applies on API 26-27.

Debug builds only: GlassPath (force_legacy_glass, force_live_glass,
hide_glass) and HomeDebug (force_network_lost, show_message) switches;
the release copies return false or null.
Code review:
- Wallpaper cross-fade re-records the whole view tree only when the
  frosted atlas changes, not on every frame (S1).
- The All apps favorites rim takes the picture's color like the home
  plate and makes no new shaders while the grid scrolls; a rim that only
  moves updates its picture sample in place (N3).
- Messages split into title and detail at a line break, else after the
  first sentence; each line wraps to 2 lines and the box grows only for
  longer text (S2). TalkBack reads them through a polite live region (S3).
- Bluetooth: discovery stops when a device page opens and before Connect,
  and a scan starts when Bluetooth is turned on with the list open (S4).
- README and CHANGELOG match the new settings; American spelling in new
  comments; plain-words Bluetooth descriptions (S5, N8, N9, N10).

Picture comparison:
- Control Center keeps Wallpaper bottom right; Hidden apps stands in at
  the Inputs slot (F1).
- The big clock has no AM/PM and shows the long date in white,
  left-aligned with the time (F2-F4).
- Focus color draws in the normal value gray with Focus border off (F8).
- Bluetooth list: Search again always shows, Open Settings gets its
  chevron and an explanation, and the no-devices line fits on one line
  (F9-F12).
- Message dot: green for normal messages, red for failures (Gabriel).
Author
Owner

Intent: make Glass Launcher look like tvOS 27's Liquid Glass on Gabriel's TVs. That covers the glass itself (blur, tint, edges that take the picture's color), focus, Control Center and settings pages, the clock bubble, All apps and messages. Every layout follows the pictures Gabriel approved on 2026-11-23, and every text on glass stays readable on any wallpaper.

Not a goal:

  • A pixel-exact copy of tvOS. Android draws some wallpapers less blue than the Apple TV, and the edge light can only add, never subtract. The PR description lists each place this differs.
  • Live (real-time) blur on Android 12 and newer. Release builds draw the same pre-blurred glass on every Android version.
  • New features beyond the look. The only behavior changes are the ones the redesign needs: one gear in place of the Wi-Fi and Bluetooth buttons, Bluetooth search inside the list on Android 12+, and the one-time move of the big-clock setting to the clock bubble.
  • Releasing. This PR doesn't cut a release; Gabriel decides when.
**Intent:** make Glass Launcher look like tvOS 27's Liquid Glass on Gabriel's TVs. That covers the glass itself (blur, tint, edges that take the picture's color), focus, Control Center and settings pages, the clock bubble, All apps and messages. Every layout follows the pictures Gabriel approved on 2026-11-23, and every text on glass stays readable on any wallpaper. **Not a goal:** - A pixel-exact copy of tvOS. Android draws some wallpapers less blue than the Apple TV, and the edge light can only add, never subtract. The PR description lists each place this differs. - Live (real-time) blur on Android 12 and newer. Release builds draw the same pre-blurred glass on every Android version. - New features beyond the look. The only behavior changes are the ones the redesign needs: one gear in place of the Wi-Fi and Bluetooth buttons, Bluetooth search inside the list on Android 12+, and the one-time move of the big-clock setting to the clock bubble. - Releasing. This PR doesn't cut a release; Gabriel decides when.
Page info rows took the fixed 66 px row height, so a message that wrapped
(No hidden apps..., Allow Nearby devices..., Press a button on <device>...)
lost its second line. Info rows now wrap their content with a 66 px
minimum, so one-line rows stay where they were; selectable rows keep 66 px.
- X6 (picture 3b item 6, "add the glow"): the home card casts no focus
  shadow any more, so the glow in the card's own color is what shows. The
  glow's sigma is 8 px, back within 3 levels of the plate by 19 px.
- The big clock, and the Control Center round-button names (Gabriel,
  2026-11-23), get a soft black scrim that darkens the picture only where
  it is too bright for white text, from the pre-blurred wallpaper. Over
  winter and pure white they reach 4.5:1 or more; over a dark picture
  nothing changes.
Picture 3b item 6 ("add the glow") covers All apps too; its Apple example
is a grid app with a teal glow and no shadow. All apps cells now cast no
focus shadow and draw the home row's FocusGlow (sigma 8) under the card.
namillis deleted branch feat/liquid-glass 2026-11-24 15:29:09 +00:00
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!31
No description provided.