fenestra 0.40.0

A pure-Rust native GUI framework with web-grade aesthetics: OKLCH themes, soft shadows, flexbox/grid, and headless PNG rendering
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Nested scrolling with persistent offsets and auto-fading scrollbars.
//! `cargo run --example nested_scroll -- dark`

use fenestra::Theme;
use fenestra::shell::{WindowOptions, run_static};

fn main() {
    let dark = std::env::args().any(|a| a == "dark");
    let theme = if dark { Theme::dark() } else { Theme::light() };
    run_static(
        WindowOptions::titled("fenestra nested scroll").with_size(480.0, 520.0),
        theme,
        fenestra::kit::scroll_demo,
    )
    .expect("event loop failed");
}