Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Merge PR #1041: Launcher: cinematic_white_focus, to keep the focus highlight white on the cinematic shelf

Gathin234b410a42a87c
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.java
index 879b535e4,6e76abef6..53a6457c4
--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
@@@ -175,8 -175,8 +175,10 @@@ final class Config
final boolean dockGlass;
/** The dock band's padding equals the gap between its tiles (config.xml, dock_even_padding); false keeps the fixed padding. */
final boolean dockEvenPadding;
+ /** The dock position dots under the cinematic shelf's name (config.xml, cinematic_dots); false leaves them out. */
+ final boolean cinematicDots;
+ /** The cinematic shelf keeps the white focus highlight instead of the app's colour (config.xml, cinematic_white_focus). */
+ final boolean cinematicWhiteFocus;
/** Shape of the glow behind the focused app (config.xml, glow_style): {@link #GLOW_RADIAL} or {@link #GLOW_HORIZON}. */
final String glowStyle;
@@@ -200,7 -200,7 +202,7 @@@
Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,
List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, int homeIdleClockMinutes,
boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions,
- boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots) {
- boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicWhiteFocus) {
++ boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots, boolean cinematicWhiteFocus) {
this.handleViewInputs = handleViewInputs;
this.tileMenu = tileMenu;
this.inputKeycodes = inputKeycodes;
@@@ -271,7 -271,7 +273,8 @@@
this.homeIdleClockMinutes = homeIdleClockMinutes;
this.dockGlass = dockGlass;
this.dockEvenPadding = dockEvenPadding;
+ this.cinematicDots = cinematicDots;
+ this.cinematicWhiteFocus = cinematicWhiteFocus;
this.glowStyle = glowStyle(glowStyle);
this.wallpaperCaptions = wallpaperCaptions;
}
@@@ -349,7 -349,7 +352,8 @@@
boolean keyFilter = res.getBoolean(R.bool.key_filter);
boolean dockGlass = res.getBoolean(R.bool.dock_glass);
boolean dockEvenPadding = res.getBoolean(R.bool.dock_even_padding);
+ boolean cinematicDots = res.getBoolean(R.bool.cinematic_dots);
+ boolean cinematicWhiteFocus = res.getBoolean(R.bool.cinematic_white_focus);
String glowStyle = res.getString(R.string.glow_style);
boolean applied = false;
@@@ -420,7 -420,7 +424,8 @@@
keyFilter = bool(json, "key_filter", keyFilter);
dockGlass = bool(json, "dock_glass", dockGlass);
dockEvenPadding = bool(json, "dock_even_padding", dockEvenPadding);
+ cinematicDots = bool(json, "cinematic_dots", cinematicDots);
+ cinematicWhiteFocus = bool(json, "cinematic_white_focus", cinematicWhiteFocus);
glowStyle = string(json, "glow_style", glowStyle);
}
// A theme push or reset invalidates choices made on the TV. On first use, remember the
@@@ -475,7 -475,7 +480,7 @@@
Math.max(0, Math.min(100, skyIntensity)), settingsKeycodes, settingsKeyPanel, restoreKeyServices, wallpaperEnabled, wallpaper,
wallpapers, rotationMinutes, wallpaperDim, dockOpacity, wallpaperOrder, applied,
festival, inputKeycodes, appKeys, stockHomeRedirect, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow, appGlow,
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots);
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicWhiteFocus);
++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus);
}
/**
diff --cc launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
index 15ca97b6c,73595097e..adfe70dc1
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@@ -149,10 -149,10 +149,12 @@@ public class MainActivity extends Activ
private boolean appGlow;
/** config.xml glow_style: the shape setAmbient paints the glow mask in. */
private String glowStyle;
+ /** config.xml cinematic_white_focus: the cinematic shelf keeps the white highlight. */
+ private boolean cinematicWhiteFocus;
private ImageView heroArt;
private static final float HERO_ART_ALPHA = 0.5f;
+ /** config.xml cinematic_dots: false leaves the dock position dots out of the cinematic shelf. */
+ private boolean heroDotsShown = true;
/** Softened artwork per app (HeroArt, about 5 KB each), made the first time its dock tile is focused. */
private final Map<String, Bitmap> heroArtCache = new HashMap<>();
/** The app whose artwork heroArt shows, so focusing it again only fades it back in. */
@@@ -407,7 -407,7 +409,8 @@@
heroArt = findViewById(R.id.heroArt);
cinematic = cfg.cinematicHome;
glowStyle = cfg.glowStyle;
+ heroDotsShown = cfg.cinematicDots;
+ cinematicWhiteFocus = cfg.cinematicWhiteFocus;
if (cinematic) setUpCinematicShelf();
// dock_title false: the name above the dock (and the cinematic lines under it) never shows; the glow
// still follows the dock.
diff --cc launcher/app/src/main/res/values/config.xml
index a59f47ca4,d90d0f223..736a460cc
--- a/launcher/app/src/main/res/values/config.xml
+++ b/launcher/app/src/main/res/values/config.xml
@@@ -305,9 -305,10 +305,13 @@@
dots, the focus glow takes the app's colour and the dock band turns translucent. false keeps the plain
shelf. Can also be set with "cinematic_home": true in a theme's config.json. -->
<bool name="cinematic_home">false</bool>
+ <!-- With cinematic_home, false leaves out the dock position dots under the app's name, for a quieter shelf. Can
+ also be set with "cinematic_dots": false in a theme's config.json. -->
+ <bool name="cinematic_dots">true</bool>
+ <!-- With cinematic_home, true keeps the focus highlight white on the dock instead of the focused app's colour,
+ for wallpapers and banners that clash with it; app_glow still colours every tile. Can also be set with
+ "cinematic_white_focus": true in a theme's config.json. -->
+ <bool name="cinematic_white_focus">false</bool>
<!-- The glow behind the dock in the focused app's colour (red for YouTube, blue for Prime Video). false keeps
only background_color or the wallpaper behind everything. Can also be set with "ambient_glow": false in a
diff --cc themes/README.md
index 065edae16,82d3a7c31..828c54ee2
--- a/themes/README.md
+++ b/themes/README.md
@@@ -98,7 -98,7 +98,8 @@@ is ignored, and a file that doesn't par
| `home_idle_clock_minutes` | 0 to 1440 | Minutes Home may sit untouched before it shows the clock screensaver (a thin clock and date drifting over a slow glow, as the system "Clock" screensaver does). Any key returns to Home. It starts only from Home, never over Live TV or an app; 0 is off (default) |
| `glow_style` | string | Shape of the glow behind the focused app, in its colour: `radial` (default) or `horizon`, the colour washing down from the top edge to black; the cinematic shelf keeps its own |
| `cinematic_home` | bool | Cinematic top shelf: the focused dock app's artwork, softened, fills the top of the screen in its colour, with a larger name, "Last opened" (apps opened from Home), dock position dots, a focus glow in the app's colour and a translucent dock band; off by default |
+| `cinematic_dots` | bool | With `cinematic_home`, the dock position dots under the app's name (`true` by default); `false` leaves them out |
+ | `cinematic_white_focus` | bool | With `cinematic_home`, the focus highlight stays white on the dock instead of taking the focused app's colour (`false` by default); `app_glow` still colours every tile |
| `dock_even_padding` | bool | The dock band's padding equals the gap between its tiles on all four sides, as far as the grid's edges leave room (`false` by default) |
| `dock_glass` | bool | The dock band as light frosted glass like the top bar's pills (`false` by default); suits `sky_intensity` or a wallpaper, where the solid band reads as a dark slab |
| `ambient_glow` | bool | The glow behind the dock in the focused app's colour (`true` by default); `false` keeps only `background_color` or the wallpaper, e.g. for a calm photo background |