Repository navigation
SaltUI 3.1.0 adds Glass controls and cross-platform popup menus, improves scrolling and lazy layouts, and upgrades to Compose Multiplatform 1.13.0. This release covers the changes since 3.0.0.
Installation
commonMain.dependencies {
implementation("io.github.moriafly:salt-ui:3.1.0")
// Optional Navigation 3 integration
implementation("io.github.moriafly:salt-ui-navigation:3.1.0")
}salt-ui includes salt-core and salt-adaptive-window. Use the same version for all SaltUI modules in your project.
Compatibility
- Kotlin
2.4.20and JVM target21 - Compose Multiplatform and Jetpack Compose
1.13.0 - Android Gradle Plugin
9.3.1and compile SDK37.1 - Android Compose modules require API
24. The standalonesalt-coremodule requires API23.
Glass and popup menus
- Glass adds configurable tint and press feedback to buttons, custom surfaces, and
FloatingBottomBar. Surfaces can sample backdrop layers by key and keep the backdrop visible as they fade. Floating controls can opt in to drag tracking withconsumeDrag = trueonModifier.glass. - Haze
2.2.0refines Glass rim highlights and fixes Transparent Glass blur on Android 12 and 12L. PopupActionMenusupports actions, choices, toggles, and submenus. Popup menu styles follow the theme’sGlassEffectby default. UsePopupMenuDefaults.styleto choose a different effect for a menu.- Menus opened inside a
Sheetcan sample the sheet content. Dark Glass menus improve label contrast over bright backdrops. On Android, Glass and Blur backdrops stay aligned during opening and dragging. - Desktop menus fit the available width. Hovering another enabled row immediately closes or switches the submenu. Glass menus open without flashing the window background, and cascading submenus show the backdrop where they overlap their parent.
Scrolling and input
- Lazy lists, grids, and staggered grids accept configurable cache windows. Lazy layouts update prefetching and item animations, and pagers accept
bringIntoViewSpec. - Trackpad overscroll works at both ends of the scroll range, including when all content fits in the viewport.
- Set
sheetPointerInputEnabled = falseonBottomSheetScaffoldto let pointer input reach content behind the sheet surface. SaltThemenow uses ripple feedback by default.
Upgrading from 3.0.0
- Pass
onVisibleChangeandonResizeEdgeChangedirectly toSaltWindoworSaltDialogWindow. Remove the type argument fromSaltWindowPropertiesandSaltWindowProperties.default(). - Read the detected OS through
OS.current. Constructors andcopy()forOS.Android,OS.Windows,OS.MacOS, andOS.Linuxare now internal.OS.Android.versionSdkMinorexposes the minor SDK level. - Pass
cacheWindowto the lazy list or grid composable when migrating from deprecated prefetch strategies or related state overloads. - If you used a 3.1 preview, replace
PopupMenuMaterialwith aGlassEffectand pass it asglassEffecttoPopupMenuDefaults.style.