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: glow_snap, the ambient glow changes colour in one frame
Michiel de Gooijer39958737e91e
diff --git a/docs/switches.md b/docs/switches.mdindex 7ef454e35..ae18cedce 100644--- a/docs/switches.md+++ b/docs/switches.md@@ -65,3 +65,4 @@ rule sit on its wanted list until a screenshot arrives.| `icon_tiles` | <img src="switches/icon_tiles.jpg" width="320" alt="icon_tiles: an app drawn from its icon in the grid on a TV"> || `game_day` | <img src="switches/game_day.jpg" width="320" alt="game_day: Minnesota Vikings at Detroit Lions, Kickoff in 5d 13h, with four dots, under the clock on a TV"> || `clock_format` | <img src="switches/clock_format.jpg" width="320" alt="clock_format on a TV"> |+| `glow_snap` | <img src="switches/glow_snap.jpg" width="320" alt="glow_snap on a TV: the glow in Netflix red behind the dock"> |diff --git a/docs/switches/glow_snap.jpg b/docs/switches/glow_snap.jpgnew file mode 100644index 000000000..24f08a847Binary files /dev/null and b/docs/switches/glow_snap.jpg differdiff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 86ccef2e1..a8304728c 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -134,6 +134,8 @@ final class Config {final boolean iconOnlyVpn;/** Back on the Home screen opens the clock screensaver instead of doing nothing (config.xml / theme back_opens_clock). */final boolean backOpensClock;+ /** The ambient glow takes a new app's colour in one frame instead of dipping and fading (config.xml / theme glow_snap). */+ final boolean glowSnap;/** App library as a round button in the top bar (config.xml library_button); needs app_library. */final boolean libraryButton;/** The App library pill after the last Home row; false hides it while libraryButton is on (show_library_pill). */@@ -286,7 +288,7 @@ final class Config {boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions,boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean dockBand, boolean cinematicDots, boolean cinematicWhiteFocus, boolean wifiStatusColor, int cinematicScrim, int cinematicArt,Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean powerOnHome, boolean homeLongPressHome, boolean wifiStatusWarnings, List<String> topBarApps, boolean showGreeting, boolean headerWhite, boolean clockWallpaper, int clockWallpaperDim, boolean clockGlow, String glassStyle, boolean singleRow, boolean dockBandAll, boolean lunarDate, int lunarUtcOffset, boolean dateBelowClock, boolean vpnPill, String locale, boolean powerOnHomeAlways, boolean inputsConnectedOnly,- int openOnStartNetworkWait, boolean iconOnlyVpn, String clockFormat, boolean backOpensClock) {+ int openOnStartNetworkWait, boolean iconOnlyVpn, String clockFormat, boolean backOpensClock, boolean glowSnap) {this.handleViewInputs = handleViewInputs;this.tileMenu = tileMenu;this.inputKeycodes = inputKeycodes;@@ -337,6 +339,7 @@ final class Config {this.iconOnlyInputs = iconOnlyInputs;this.iconOnlyVpn = iconOnlyVpn;this.backOpensClock = backOpensClock;+ this.glowSnap = glowSnap;this.libraryButton = libraryButton;this.showLibraryPill = showLibraryPill;this.wifiLabelWidth = wifiLabelWidth;@@ -464,6 +467,7 @@ final class Config {boolean iconOnlyInputs = res.getBoolean(R.bool.icon_only_inputs);boolean iconOnlyVpn = res.getBoolean(R.bool.icon_only_vpn);boolean backOpensClock = res.getBoolean(R.bool.back_opens_clock);+ boolean glowSnap = res.getBoolean(R.bool.glow_snap);boolean libraryButton = res.getBoolean(R.bool.library_button);boolean showLibraryPill = res.getBoolean(R.bool.show_library_pill);int wifiLabelWidth = res.getInteger(R.integer.wifi_label_width);@@ -575,6 +579,7 @@ final class Config {iconOnlyInputs = bool(json, "icon_only_inputs", iconOnlyInputs);iconOnlyVpn = bool(json, "icon_only_vpn", iconOnlyVpn);backOpensClock = bool(json, "back_opens_clock", backOpensClock);+ glowSnap = bool(json, "glow_snap", glowSnap);libraryButton = bool(json, "library_button", libraryButton);showLibraryPill = bool(json, "show_library_pill", showLibraryPill);wifiLabelWidth = integer(json, "wifi_label_width", wifiLabelWidth, 0, 300);@@ -700,7 +705,7 @@ final class Config {consumeVolumeKeys, powerOnHome, homeLongPressHome, wifiStatusWarnings, topBarApps, showGreeting, headerWhite, clockWallpaper,Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow, glassStyle, singleRow && dockRow, dockBandAll, lunar, lunarOffset,dateBelowClock, vpnPill, locale, powerOnHomeAlways, inputsConnectedOnly,- Math.max(0, Math.min(600, openOnStartNetworkWait)), iconOnlyVpn, clockFormat, backOpensClock);+ Math.max(0, Math.min(600, openOnStartNetworkWait)), iconOnlyVpn, clockFormat, backOpensClock, glowSnap);}/**diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex ad32dfaf3..46c772bf5 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -173,6 +173,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {private int glassAccent;private int ambientColor = -1;private ValueAnimator ambientAnimator;+ /** config.xml glow_snap: the glow takes a new colour in one frame instead of the dip-and-fade. */+ private boolean glowSnap;private boolean heroShown;private boolean animations;private boolean advancedEffects;@@ -492,6 +494,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {// a fade renders it into a full-screen offscreen buffer first.ambient.forceHasOverlappingRendering(false);ambientGlow = cfg.ambientGlow;+ glowSnap = cfg.glowSnap;appGlow = cfg.appGlow;if (!ambientGlow) ambient.setVisibility(View.GONE);heroName = findViewById(R.id.heroName);@@ -1882,6 +1885,10 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {}).start();if (ambientGlow && advancedEffects) {transitionAmbient(color);+ } else if (ambientGlow && color != ambientColor && glowSnap) {+ ambient.animate().cancel();+ setAmbient(color);+ ambient.setAlpha(1f);} else if (ambientGlow && color != ambientColor) {ambient.animate().alpha(0.35f).setDuration(200).withEndAction(() -> {setAmbient(color);@@ -2130,6 +2137,11 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {ambient.animate().alpha(1f).setDuration(300).start();return;}+ if (glowSnap) {+ setAmbient(color);+ ambient.setAlpha(1f);+ return;+ }// The same dip-and-swap as the dock's top shelf.ambient.animate().alpha(0.35f).setDuration(ambient.getAlpha() > 0.35f ? 200 : 0).withEndAction(() -> {setAmbient(color);diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex 42b73d75f..20a765c60 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -486,6 +486,11 @@only background_color or the wallpaper behind everything. Can also be set with "ambient_glow": false in atheme's config.json. --><bool name="ambient_glow">true</bool>+ <!-- true: when the focus moves to an app of another colour, the ambient glow takes the new colour in one frame+ instead of dimming and fading back in. Each frame of that fade repaints the whole screen, about 40 per key+ press, which a slow GPU such as the Mali-G52 cannot keep up with. Can also be set with "glow_snap" in a+ theme's config.json. -->+ <bool name="glow_snap">false</bool><!-- The focus highlight glows in the focused app's colour on every tile, as the cinematic shelf does for thedock, without cinematic_home. Can also be set with "app_glow": true in a theme's config.json. --><bool name="app_glow">false</bool>diff --git a/themes/README.md b/themes/README.mdindex fcb17197f..6e0b00be2 100644--- a/themes/README.md+++ b/themes/README.md@@ -184,6 +184,7 @@ A new key needs one there in the same pull request.| `single_row` | bool | Every app in the dock's row, the dock apps first, scrolling sideways; no grid below (`false` by default; needs `dock_row`) || `dock_band_all` | bool | With `single_row`, the band runs behind every app in the row, not only the dock apps (`false` by default) || `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 |+| `glow_snap` | bool | The ambient glow takes the next app's colour in one frame instead of dimming and fading back in. Each frame of the fade repaints the whole screen, so on a slow GPU (a Mali-G52 on a Xiaomi MiTV-MOEU0) it cut the late frames on Home from 60% to 27%. `false` by default || `app_glow` | bool | The focus highlight glows in the focused app's colour on every tile, as `cinematic_home` does for the dock (`false` by default) || `fade_rows` | bool | The rows fade out as they scroll up under the clock instead of being cut off at a hard line; the wallpaper or sky shows through. The grid then draws into a hardware layer (about 6 MB of graphics memory at 1080p) (`false` by default) |