feat: All apps closer to the tvOS grid, narrower Control Center (M2) #32
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/tvos-grid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 of97880e3, the last code commit; "fix2" is the second fix round).1cfe46dadds only docs, and its debug APK came out byte-identical: sha2561539e6364c776cfbfd5062ccd371f3eb8fbedbfe3a1779bb05882ef01901eb92for both.Terms used below:
What changed
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").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.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.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.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.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.1cfe46d).CHANGELOG.mdandREADME.mddescribe the above.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 releaseHomeDebug.java, and the newTvGridTest.java. In debug builds,HomeDebugfakes a network loss or Bluetooth audio when a filefiles/force_cc_offline,force_cc_bt_offorforce_cc_bt_audioexists 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.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
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).e317bdd.cb49770), a short 2-row grid, the system wallpaper setting, and the Custom icon background setting.Where it differs from tvOS
Not covered yet
745011b,97880e3).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.- 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.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: