Fix wallpaper transparency, Recents setup guide, drawer animation, and widget resizing (#2)
Launcher / test (push) Successful in 1m21s
Launcher / apk (push) Successful in 17s

This commit was merged in pull request #2.
This commit is contained in:
nandi committed 2026-11-23 05:36:23 +00:00
1 parent 2fa7bd745b
commit 3070db4fb4
15 files changed
+1011 -161

No files matched your search

+25 -2
View File
@@ -60,24 +60,35 @@ pub(all) enum Sheet {
/// The menu of a drawer app (row in the app list).
DrawerApp(Int32)
WidgetPicker
RecentsSetup
}
///|
#derive(Eq, Debug)
pub(all) enum Edge {
Left
Right
Top
Bottom
Corner
}
///|
/// A resize in progress: a handle was pressed on the widget whose box (px, viewport) was
/// at `left`, `top`.
/// A resize in progress: a handle was pressed on the widget whose viewport box and
/// grid edges were captured on down.
pub(all) struct ResizeDrag {
edge : Edge
slot : Int32
left : Double
top : Double
right : Double
bottom : Double
anchor_col : Int32
anchor_row : Int32
right_col : Int32
bottom_row : Int32
mut col : Int32
mut row : Int32
mut cols : Int32
mut rows : Int32
}
@@ -110,6 +121,9 @@ pub(all) struct Model {
mut query : String
mut wquery : String
mut drawer : Bool
/// The drawer is animating out before detaching.
mut drawer_closing : Bool
mut drawer_gen : Int32
/// The drawer is in "add apps" mode: taps toggle home slots.
mut picking : Bool
mut sheet : Sheet
@@ -165,6 +179,8 @@ pub fn Model::new() -> Model {
query: "",
wquery: "",
drawer: false,
drawer_closing: false,
drawer_gen: 0,
picking: false,
sheet: NoSheet,
gone: "",
@@ -221,6 +237,7 @@ pub(all) enum Msg {
grid_top~ : Double,
grid_w~ : Double,
bottom_pad~ : Double,
scroll_y~ : Double,
)
AppsLoaded(String?)
WidgetsLoaded(String?)
@@ -257,6 +274,7 @@ pub(all) enum Msg {
WClear
OpenDrawer
CloseDrawer
DrawerClosed(Int32)
OpenApp(Int32)
OpenFirst
OpenHome(Int32)
@@ -278,6 +296,9 @@ pub(all) enum Msg {
Settings
Wallpaper
Recents
RecentsUnavailable
OpenAccessibilitySettings
OpenSelfAppInfo
CheckUpdates
Lift(Int32)
Grab(Int32)
@@ -301,6 +322,8 @@ pub(all) enum Effect {
OpenSettings
PickWallpaper
OpenRecents
OpenAccessibilitySettings
OpenSelfAppInfo
Haptic
/// Fetch apps.json / widgets.json and answer `AppsLoaded` / `WidgetsLoaded`.
LoadApps