Files
Flexera-Launcher/flexera
TMCandClaude Opus 5.5 ec5b36c482 Home screen: side, top and bottom margins in dp
Settings, Home screen, Layout had Horizontal padding and Vertical
padding, as percentages from 0 to 200. They scaled the grid's own
margins, which on a phone are 8 dp at the sides and nothing at the top
and bottom (measured on the emulator: desiredWorkspaceHorizontalMarginPx
21 px, workspace top and bottom padding 0). So the whole horizontal
range moved the outer icons by a few dp and the vertical one did
nothing at all, and the settings seemed broken.

They are replaced by three sliders in dp (app.flexera.home.HomeMargins):
Side margins (0 to 48, default 8, the grid's own), Top margin and
Bottom margin (0 to 120, default 0, added to the grid's own). Rows and
columns share the room that is left, so larger margins also bring the
icons closer together. Rows that become too short get smaller icons, as
Launcher3 already does; side margins are capped so that every column
stays wider than what is seen of its icon plus 4 dp. The old factors
are read as 1 from now on, so a value set with the old sliders no
longer applies.

Hooks: DeviceProfile (side margin where the grid's margin is set, top
and bottom where the workspace padding is), PreferenceManager2 (three
int preferences that reload the grid), HomeScreenPreferences (the
sliders), each marked "Flexera Launcher:".

Tested on the emulator: at the defaults the home screen is pixel for
pixel as before (apart from clocks showing the time); 40, 48, 48 moves
the columns in and the rows down and closer, with no overlap; back to
8, 0, 0 restores the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:27:09 +01:00
..
2026-11-18 10:47:25 +01:00