Commit c04e1af
committed
feat: Add FloatingNavigationBar and update UITest and ThirdPage
- Add `FloatingNavigationBar` composable for creating customizable floating navigation bars with various display modes.
- Add `FloatingNavigationBarShowMode` enum for controlling item display: icon only, text only, or both.
- Add `useFloatingBottomBar`, `floatingBottomBarPosition` and `floatingBottomBarShowMode` state and related control in UITest and ThirdPage.
- Update `ThirdPage` and `UITest` to add Floating BottomBar control.
- Add `horizontalAlignment` and `showMode` params in `FloatingNavigationBar`.
- Add `defaultWindowInsetsPadding`, `cornerRadius`, `outSidePadding`, `showBorder` param for `FloatingNavigationBar`.
- Add `SmoothRoundedCornerShape` and `Platform` utils class.
- Update `NavigationBar` and `FloatingNavigationBar` paddings and arrangements.
- Update `NavigationBar` to add new color scheme.
- Update example `Preview` to add more params.1 parent a19408b commit c04e1af
File tree
4 files changed
+270
-26
lines changed- example/src
- androidMain/kotlin
- commonMain/kotlin
- miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic
4 files changed
+270
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | | - | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
80 | 115 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
84 | 119 | | |
85 | 120 | | |
86 | | - | |
| 121 | + | |
87 | 122 | | |
88 | 123 | | |
89 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| |||
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
157 | | - | |
| 164 | + | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
167 | 201 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
174 | 213 | | |
175 | 214 | | |
176 | | - | |
177 | | - | |
| 215 | + | |
| 216 | + | |
178 | 217 | | |
179 | 218 | | |
180 | 219 | | |
| |||
200 | 239 | | |
201 | 240 | | |
202 | 241 | | |
203 | | - | |
| 242 | + | |
204 | 243 | | |
205 | 244 | | |
206 | 245 | | |
| |||
417 | 456 | | |
418 | 457 | | |
419 | 458 | | |
420 | | - | |
421 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
422 | 467 | | |
423 | 468 | | |
424 | 469 | | |
| |||
0 commit comments