Expand description
egui-desktop
High-level, cross-platform desktop UI components for egui applications.
This crate provides:
- A customizable window title bar (
TitleBar) with platform-aware behavior - A menu system with keyboard shortcuts
- Theming utilities and helpers
Quick start:
use egui_desktop::{TitleBar, TitleBarOptions, ThemeProvider};
let theme = ThemeProvider::default();
let options = TitleBarOptions::default();
TitleBar::new("My App", options).show(ctx);See the README for detailed examples and the examples/ directory for
runnable demos.
Re-exports§
pub use menu::shortcuts::KeyboardShortcut;pub use menu::MenuItem;pub use menu::SubMenuItem;pub use theme::ThemeError;pub use theme::ThemeMode;pub use theme::ThemeProvider;pub use theme::TitleBarTheme;pub use theme::detect_system_dark_mode;pub use titlebar::main::CustomIcon;pub use titlebar::main::TitleBar;pub use titlebar::options::TitleBarOptions;pub use utils::*;