Skip to content

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

Merge PR #1172: Launcher: glass_style, a quieter focus highlight

Gathin23633763e4f66a
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.java
index d58071d7b,749398d80..7b991976b
--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
@@@ -238,7 -223,7 +241,7 @@@ final class Config
List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, boolean fadeRows, int homeIdleClockMinutes,
boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions,
boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots, boolean cinematicWhiteFocus, boolean wifiStatusColor, int cinematicScrim, int cinematicArt,
- Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean wifiStatusWarnings, List<String> topBarApps, boolean showGreeting, boolean headerWhite, boolean clockWallpaper, int clockWallpaperDim, boolean clockGlow) {
- Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, String glassStyle) {
++ Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean wifiStatusWarnings, List<String> topBarApps, boolean showGreeting, boolean headerWhite, boolean clockWallpaper, int clockWallpaperDim, boolean clockGlow, String glassStyle) {
this.handleViewInputs = handleViewInputs;
this.tileMenu = tileMenu;
this.inputKeycodes = inputKeycodes;
@@@ -319,16 -303,9 +322,17 @@@
this.cinematicScrim = cinematicScrim;
this.wallpaperMoods = wallpaperMoods;
this.gamepadPassthrough = gamepadPassthrough;
+ this.consumeVolumeKeys = consumeVolumeKeys;
+ this.wifiStatusWarnings = wifiStatusWarnings;
+ this.topBarApps = Collections.unmodifiableList(topBarApps);
+ this.showGreeting = showGreeting;
+ this.headerWhite = headerWhite;
+ this.clockWallpaper = clockWallpaper;
+ this.clockWallpaperDim = clockWallpaperDim;
+ this.clockGlow = clockGlow;
this.glowStyle = glowStyle(glowStyle);
this.wallpaperCaptions = wallpaperCaptions;
+ this.glassStyle = glassStyle(glassStyle);
}
/** A known glow_style, or radial (the default) for anything else. */
@@@ -416,13 -399,7 +428,14 @@@
int cinematicScrim = res.getInteger(R.integer.cinematic_scrim);
Map<String, Set<String>> wallpaperMoods = moods(res.getString(R.string.wallpaper_moods));
String glowStyle = res.getString(R.string.glow_style);
+ boolean wifiStatusWarnings = res.getBoolean(R.bool.wifi_status_warnings);
+ List<String> topBarApps = new ArrayList<>(Arrays.asList(res.getStringArray(R.array.top_bar_apps)));
+ boolean showGreeting = res.getBoolean(R.bool.show_greeting);
+ boolean headerWhite = res.getBoolean(R.bool.header_white);
+ boolean clockWallpaper = res.getBoolean(R.bool.clock_wallpaper);
+ int clockWallpaperDim = res.getInteger(R.integer.clock_wallpaper_dim);
+ boolean clockGlow = res.getBoolean(R.bool.clock_glow);
+ String glassStyle = res.getString(R.string.glass_style);
boolean applied = false;
File dir = dir(ctx);
@@@ -504,17 -479,9 +517,18 @@@
cinematicScrim = integer(json, "cinematic_scrim", cinematicScrim, 0, 100);
JSONObject moods = json.optJSONObject("wallpaper_moods");
if (moods != null) wallpaperMoods = moods(moods);
+ wifiStatusWarnings = bool(json, "wifi_status_warnings", wifiStatusWarnings);
+ topBarApps = stringList(json, "top_bar_apps", topBarApps);
+ showGreeting = bool(json, "show_greeting", showGreeting);
+ headerWhite = bool(json, "header_white", headerWhite);
+ clockWallpaper = bool(json, "clock_wallpaper", clockWallpaper);
+ clockWallpaperDim = integer(json, "clock_wallpaper_dim", clockWallpaperDim, 0, 90);
+ clockGlow = bool(json, "clock_glow", clockGlow);
glowStyle = string(json, "glow_style", glowStyle);
+ glassStyle = string(json, "glass_style", glassStyle);
}
+ // A top-bar app is moved there, not copied: it leaves the grid.
+ for (String pkg : topBarApps) if (!hidden.contains(pkg)) hidden.add(pkg);
// A theme push or reset invalidates choices made on the TV. On first use, remember the
// current theme without clearing choices from an older launcher version.
SharedPreferences choices = ctx.getSharedPreferences(SETTINGS_NAME, Context.MODE_PRIVATE);
@@@ -567,7 -534,7 +581,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, fadeRows,
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, consumeVolumeKeys, wifiStatusWarnings, topBarApps, showGreeting, headerWhite, clockWallpaper, Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow);
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, glassStyle);
++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, consumeVolumeKeys, wifiStatusWarnings, topBarApps, showGreeting, headerWhite, clockWallpaper, Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow, glassStyle);
}
/**
diff --cc themes/README.md
index 5bc914fe4,7555eb4ee..6c179c2f0
--- a/themes/README.md
+++ b/themes/README.md
@@@ -116,10 -106,8 +116,11 @@@ A new key needs one there in the same p
| `stock_home_redirect` | string | Stock launcher package; if the firmware turns it back on (XGIMI), its home screen is sent straight back here (`HOME_KEY_SERVICE=1`) |
| `race_calendar` | list of races | F1 race-weekend mode: from 12 hours before a weekend's first session until 4 hours after the race starts, a panel under the clock shows the next session with a countdown (or the live one) and the weekend's session times in the TV's time zone. Write it with `tools/race_calendar.py <theme folder>`, which fetches the season from the free Jolpica API; the launcher itself never goes online |
| `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) |
+| `clock_wallpaper` | bool | The clock screensaver over Home's wallpaper instead of black with a coloured glow; the clock still moves every minute (`false` by default) |
+| `clock_wallpaper_dim` | 0 to 90 | How dark that wallpaper is behind the clock, in percent (50 by default) |
+| `clock_glow` | bool | The clock screensaver's coloured glow (`true` by default); `false` leaves the moving clock on plain black, e.g. for an OLED |
| `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 |
+ | `glass_style` | string | Look of the focus highlight: `glass` (default: a translucent slab with a bright top sheen, a crisp rim and a faint outer glow), `rim` (the crisp rim alone, no sheen, fill or glow, for a quiet focus over a wallpaper) or `halo` (the rim with a lighter outer glow) |
| `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 |