Skip to content

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

Merge PR #568: launcher: dock band, more room at the sides so a focused first or last tile clears the rounded end

Gathin237d328a32b867
diff --cc launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java
index 8d495fd0c,f9221bba1..a6399154e
--- a/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java
@@@ -80,17 -64,12 +80,20 @@@ public class DockDecoration extends Rec
// The band can only draw inside the grid, and the first and last dock tiles sit 12dp in from its
// edges: a full 14dp at the sides sliced the rounded ends flat (#454). Keep the sides, with the
// 1dp edge line, inside the grid; the top and bottom have room.
- float side = Math.max(0f, Math.min(pad, Math.min(rect.left, parent.getWidth() - rect.right) - density));
+ // 22dp at the sides (the grid's 10dp padding makes room): a focused first or last tile grows about 7dp
+ // outwards and still keeps about the band's top margin from its rounded end.
+ float sidePad = 22 * density;
+ float side = Math.max(0f, Math.min(sidePad, Math.min(rect.left, parent.getWidth() - rect.right) - density));
rect.inset(-side, -pad);
+ rect.bottom += namesRoom;
float radius = 26 * density;
+ if (lightGlass && (rect.top != shaderTop || rect.bottom != shaderBottom)) {
+ // The pills' glass (pill_bg: white, 18% fading to 8%), a little fainter over this much larger area.
+ band.setShader(new LinearGradient(0, rect.top, 0, rect.bottom, 0x24FFFFFF, 0x0DFFFFFF,
+ Shader.TileMode.CLAMP));
+ shaderTop = rect.top;
+ shaderBottom = rect.bottom;
+ }
c.drawRoundRect(rect, radius, radius, band);
c.drawRoundRect(rect, radius, radius, edge);
}