Add an icon size setting for the home grid and the app drawer
Launcher / test (pull_request) Successful in 1m29s
Launcher / apk (pull_request) Skipped

Slider (70-160%, step 5) with Small/Medium/Large presets and a live preview in the
home menu. Icon, label and row height scale together; the home and drawer column
counts reflow; the size is saved in localStorage; a corrupt saved value is logged
and shown, not silently replaced. 100% is the original layout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-24 22:32:50 +00:00
1 parent 3070db4fb4
commit 23317b949a
22 files changed
+901 -51

No files matched your search

+14 -1
View File
@@ -84,6 +84,8 @@ pub(all) enum Effect {
LoadWidgets
QueryLimits(Int32)
SaveHome(String)
SaveIconSize(Int32)
LogError(String)
SaveLastCheck(Int64)
Delay(Int32, Msg)
HoldTimer(Int32, Int32)
@@ -123,6 +125,12 @@ pub(all) struct Model {
mut grid_left : Double
mut grid_top : Double
mut col_w : Double
mut icon_pct : Int32
mut icon_error : String
mut vw : Int32
mut grid_w : Double
mut avail_h : Double
mut drawer_cols : Int32
mut query : String
mut wquery : String
mut drawer : Bool
@@ -153,6 +161,7 @@ pub(all) struct Model {
mut gesture : @gesture.State
}
pub fn Model::app_row(Self, String) -> Int32
pub fn Model::cell_h(Self) -> Int32
pub fn Model::drawer_open(Self) -> Bool
pub fn Model::first_match(Self) -> Int32
pub fn Model::first_widget_match(Self) -> Int32
@@ -166,7 +175,7 @@ pub fn Model::widget_matches(Self, Int32) -> Bool
#derive(Eq, @debug.Debug)
pub(all) enum Msg {
Restore(saved~ : String?, legacy~ : String?)
Restore(saved~ : String?, legacy~ : String?, icon_size~ : String?)
Started(now~ : Int64, last_check~ : Int64, declined~ : Int32, installed~ : Int32)
Measured(vw~ : Int32, vh~ : Int32, grid_left~ : Double, grid_top~ : Double, grid_w~ : Double, bottom_pad~ : Double, scroll_y~ : Double)
AppsLoaded(String?)
@@ -209,6 +218,9 @@ pub(all) enum Msg {
MoveEarlier(Int32)
InfoOf(Int32)
Settings
IconSizeMenu
SetIconSize(String)
IconPreset(Int32)
Wallpaper
Recents
RecentsUnavailable
@@ -249,6 +261,7 @@ pub(all) enum Sheet {
DrawerApp(Int32)
WidgetPicker
RecentsSetup
IconSize
}
pub(all) struct WidgetInfo {