Crate egui_desktop

Crate egui_desktop 

Source
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::*;

Modules§

menu
Menu system primitives (items, menu bar, shortcuts).
theme
Theming primitives and provider traits.
titlebar
Title bar widgets, options and rendering helpers.
utils
Utility helpers (OS interop, resize handles, rounded corners).