Skip to main content

platform_preset_name

Function platform_preset_name 

Source
pub fn platform_preset_name() -> &'static str
Expand description

Map the current platform to its matching live preset name.

Live presets contain only geometry/metrics (no colors, fonts, or icons) and are used as the merge base in the OS-first pipeline.

  • macOS -> "macos-sonoma-live"
  • Windows -> "windows-11-live"
  • Linux KDE -> "kde-breeze-live"
  • Linux other/GNOME -> "adwaita-live"
  • Unknown platform -> "adwaita-live"

Returns the live preset name for the current platform.

This is the public API for what SystemTheme::from_system() uses internally. Showcase UIs use this to build the “default (…)” label.