Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
Launcher: cinematic_white_focus, to keep the focus highlight white on the cinematic shelf
Bansi Patelebc829f0a9b8
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 6071c886f..6e76abef6 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -175,6 +175,8 @@ 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 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;@@ -198,7 +200,7 @@ final class Config {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 handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicWhiteFocus) {this.handleViewInputs = handleViewInputs;this.tileMenu = tileMenu;this.inputKeycodes = inputKeycodes;@@ -269,6 +271,7 @@ final class Config {this.homeIdleClockMinutes = homeIdleClockMinutes;this.dockGlass = dockGlass;this.dockEvenPadding = dockEvenPadding;+ this.cinematicWhiteFocus = cinematicWhiteFocus;this.glowStyle = glowStyle(glowStyle);this.wallpaperCaptions = wallpaperCaptions;}@@ -346,6 +349,7 @@ final class Config {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 cinematicWhiteFocus = res.getBoolean(R.bool.cinematic_white_focus);String glowStyle = res.getString(R.string.glow_style);boolean applied = false;@@ -416,6 +420,7 @@ final class Config {keyFilter = bool(json, "key_filter", keyFilter);dockGlass = bool(json, "dock_glass", dockGlass);dockEvenPadding = bool(json, "dock_even_padding", dockEvenPadding);+ 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@@ -470,7 +475,7 @@ final class Config {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);+ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicWhiteFocus);}/**diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex 5be43c946..73595097e 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -149,6 +149,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {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;/** Softened artwork per app (HeroArt, about 5 KB each), made the first time its dock tile is focused. */@@ -405,6 +407,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {heroArt = findViewById(R.id.heroArt);cinematic = cfg.cinematicHome;glowStyle = cfg.glowStyle;+ 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.@@ -1482,8 +1485,9 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {glassCardW = card.getWidth();glassTargetX = x;glassTargetY = y;- // Cinematic shelf: the highlight glows in the dock app's colour, plain white in the grid. app_glow: every tile.- boolean coloured = (appGlow || cinematic && position < COLUMNS) && !festive;+ // Cinematic shelf: the highlight glows in the dock app's colour, plain white in the grid (and on the dock with+ // cinematic_white_focus). app_glow: every tile.+ boolean coloured = (appGlow || cinematic && !cinematicWhiteFocus && position < COLUMNS) && !festive;int accent = coloured ? adapter.ambientColorAt(position) : 0;if ((cinematic || appGlow) && !festive && accent != glassAccent) {glassAccent = accent;diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex f600676d0..d90d0f223 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -305,6 +305,10 @@dots, the focus glow takes the app's colour and the dock band turns translucent. false keeps the plainshelf. Can also be set with "cinematic_home": true in a theme's config.json. --><bool name="cinematic_home">false</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 keepsonly background_color or the wallpaper behind everything. Can also be set with "ambient_glow": false in adiff --git a/themes/README.md b/themes/README.mdindex c0b455181..82d3a7c31 100644--- a/themes/README.md+++ b/themes/README.md@@ -98,6 +98,7 @@ is ignored, and a file that doesn't parse is ignored as a whole, so a theme can| `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_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 |