FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_themes_macos

    module · ferroui-themes-macos · v0.5.0

    module ferroui_themes_macos
    

    A separately selectable macOS 26 theme for FerroUI.

    The compiled-XAML control foundation is copied from ferroui-themes-winui; the macOS package owns its resources, control templates, namespace and loader. It has no dependency on the WinUI theme crate. The original input, binding, template-part and accessibility contracts remain in FerroUI controls.

    use ferroui_themes_macos::{ControlSize, MacOSTheme};
    let theme = MacOSTheme::new();
    theme.set_control_size(ControlSize::Regular);
    application.styles().add(theme.as_style());
    

    ReduceMotion, ReduceTransparency, IncreaseContrast, WindowActive, AccentColor and ControlSize are live properties usable in Rust and XAML. Glass surfaces use the existing composition material contract, with an opaque fallback on unsupported backends. Exact AppKit optical and animation fidelity requires the native comparison procedure in docs/porting/macos26-theme.md. SF Pro is resolved from the host; Apple fonts and symbols are not bundled.

    View source

    Contents

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.