egui-theme-switch

Crates.ioegui-theme-switch
lib.rsegui-theme-switch
version
sourcesrc
created_at2024-07-16 20:11:10.294773
updated_at2024-12-09 10:46:04.584686
descriptionA pretty theme switch for your egui app
homepage
repositoryhttps://github.com/bash/egui-theme-switch
max_upload_size
id1305485
Cargo.toml error:TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Tau Gärtli (bash)

documentation

README

egui-theme-switch

Docs Crate Version

A very pretty theme switch widget for your egui app. It allows you to choose between dark, light and follow system.

Screenshot of a tri-state switch with three options: follow system, dark, light

Example

use egui::ThemePreference;
use egui_theme_switch::{ThemeSwitch, global_theme_switch};

// A switch for egui's global theme preference:
global_theme_switch(ui);

// ... or alternatively:
let mut preference = ThemePreference::System;
if ui.add(ThemeSwitch::new(&mut preference)).changed() {
    // ...
}

Interactive Demo

Docs

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 50

cargo fmt