Skip to content

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

Merge PR #1042: Launcher: wallpaper_moods, to rotate the wallpapers that fit the time of day

Gathin2348a434b8b7cd
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.java
index 7cbf84b33,ce4521b66..7fbc06a7f
--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
@@@ -179,16 -178,8 +182,18 @@@ 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;
+ /** The Wi-Fi pill's icon green while the TV is online (config.xml, wifi_status_color); false keeps it white. */
+ final boolean wifiStatusColor;
+ /** Opacity of the app's artwork behind the cinematic shelf, 0 to 100 (config.xml, cinematic_art); 50 as before. */
+ final int cinematicArt;
+ /** Strength of the cinematic shelf's dark scrim, 0 to 100 percent (config.xml, cinematic_scrim); 100 as before. */
+ final int cinematicScrim;
+ /** A rotating collection's groups by time of day, as file names (config.xml, wallpaper_moods); empty rotates through all of it. */
+ final Map<String, Set<String>> wallpaperMoods;
/** Shape of the glow behind the focused app (config.xml, glow_style): {@link #GLOW_RADIAL} or {@link #GLOW_HORIZON}. */
final String glowStyle;
@@@ -210,9 -201,9 +215,10 @@@
int[] settingsKeycodes, boolean settingsKeyPanel, boolean restoreKeyServices, boolean wallpaperEnabled, File wallpaper, List<File> wallpapers,
int wallpaperRotationMinutes, int wallpaperDim, int dockOpacity, String wallpaperOrder, boolean overlayApplied,
Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,
- List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, int homeIdleClockMinutes,
+ 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) {
- boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, Map<String, Set<String>> wallpaperMoods) {
++ boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots, boolean cinematicWhiteFocus, boolean wifiStatusColor, int cinematicScrim, int cinematicArt,
++ Map<String, Set<String>> wallpaperMoods) {
this.handleViewInputs = handleViewInputs;
this.tileMenu = tileMenu;
this.inputKeycodes = inputKeycodes;
@@@ -285,11 -274,7 +291,12 @@@
this.homeIdleClockMinutes = homeIdleClockMinutes;
this.dockGlass = dockGlass;
this.dockEvenPadding = dockEvenPadding;
+ this.cinematicDots = cinematicDots;
+ this.cinematicWhiteFocus = cinematicWhiteFocus;
+ this.wifiStatusColor = wifiStatusColor;
+ this.cinematicArt = cinematicArt;
+ this.cinematicScrim = cinematicScrim;
+ this.wallpaperMoods = wallpaperMoods;
this.glowStyle = glowStyle(glowStyle);
this.wallpaperCaptions = wallpaperCaptions;
}
@@@ -369,11 -352,7 +376,12 @@@
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);
+ boolean wifiStatusColor = res.getBoolean(R.bool.wifi_status_color);
+ int cinematicArt = res.getInteger(R.integer.cinematic_art);
+ 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 applied = false;
@@@ -446,11 -423,8 +454,13 @@@
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);
+ wifiStatusColor = bool(json, "wifi_status_color", wifiStatusColor);
+ cinematicArt = integer(json, "cinematic_art", cinematicArt, 0, 100);
+ cinematicScrim = integer(json, "cinematic_scrim", cinematicScrim, 0, 100);
+ JSONObject moods = json.optJSONObject("wallpaper_moods");
+ if (moods != null) wallpaperMoods = moods(moods);
glowStyle = string(json, "glow_style", glowStyle);
}
// A theme push or reset invalidates choices made on the TV. On first use, remember the
@@@ -501,11 -475,11 +511,11 @@@
packageMap(appBanners), panelService,
panelAction, panelExtra, coocaaSources, inputAction, inputUriScheme,
Math.max(1, columns), Math.max(0, rowsBelow), animations, advancedEffects,
- shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, background,
+ shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, background,
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, wallpaperMoods);
+ 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);
++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods);
}
/**