egui-components-theme 0.1.0

Theme tokens for egui, ported from longbridge/gpui-component
Documentation
  • Coverage
  • 36.81%
    53 out of 144 items documented1 out of 23 items with examples
  • Size
  • Source code size: 211.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.43 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ufoscout

gpui-component-style theme for [egui], ported from gpui-component.

Quick start

use egui_components_theme::Theme;

# let ctx = egui::Context::default();
Theme::dark().install(&ctx);

Components in the sibling egui-components crate read the theme from [egui::Context::data] via [Theme::get], so installing it once at startup (or whenever the user toggles light/dark) is all that's required.