Skip to content

3.1.0

Latest

Choose a tag to compare

@Moriafly Moriafly released this 04 Dec 04:37

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.20 and JVM target 21
  • Compose Multiplatform and Jetpack Compose 1.13.0
  • Android Gradle Plugin 9.3.1 and compile SDK 37.1
  • Android Compose modules require API 24. The standalone salt-core module requires API 23.

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 with consumeDrag = true on Modifier.glass.
  • Haze 2.2.0 refines Glass rim highlights and fixes Transparent Glass blur on Android 12 and 12L.
  • PopupActionMenu supports actions, choices, toggles, and submenus. Popup menu styles follow the theme’s GlassEffect by default. Use PopupMenuDefaults.style to choose a different effect for a menu.
  • Menus opened inside a Sheet can 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 = false on BottomSheetScaffold to let pointer input reach content behind the sheet surface.
  • SaltTheme now uses ripple feedback by default.

Upgrading from 3.0.0

  • Pass onVisibleChange and onResizeEdgeChange directly to SaltWindow or SaltDialogWindow. Remove the type argument from SaltWindowProperties and SaltWindowProperties.default().
  • Read the detected OS through OS.current. Constructors and copy() for OS.Android, OS.Windows, OS.MacOS, and OS.Linux are now internal. OS.Android.versionSdkMinor exposes the minor SDK level.
  • Pass cacheWindow to the lazy list or grid composable when migrating from deprecated prefetch strategies or related state overloads.
  • If you used a 3.1 preview, replace PopupMenuMaterial with a GlassEffect and pass it as glassEffect to PopupMenuDefaults.style.

SaltUI documentation · Full changelog