Crates.io | egui-theme-switch |
lib.rs | egui-theme-switch |
version | |
source | src |
created_at | 2024-07-16 20:11:10.294773 |
updated_at | 2024-12-09 10:46:04.584686 |
description | A pretty theme switch for your egui app |
homepage | |
repository | https://github.com/bash/egui-theme-switch |
max_upload_size | |
id | 1305485 |
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` |
size | 0 |
egui-theme-switch
A very pretty theme switch widget for your egui app. It allows you to choose between dark, light and follow system.
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() {
// ...
}
Licensed under either of
at your option.
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.