Skip to content

About

A small desktop application that turns common egui layouts and widgets into a searchable, copy-paste-friendly pattern gallery.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-egui-template-inspiration

A small desktop application that turns common egui layouts and widgets into a searchable, copy-paste-friendly pattern gallery.

The project is deliberately easy to read: the launcher owns navigation and shared state, while each example is an independent Demo implementation under src/demos/. Use it as a starting point for custom desktop UI work.

What is included

The gallery currently contains thirty-nine examples. Every entry below is a real, self-contained implementation in src/demos/, linked to its source so you can copy it directly.

Layout

Widgets

Input

  • Form & validation — src/demos/forms.rs: Grid rows, validation messages, submit/reset state.
  • Input widgets — src/demos/inputs.rs: sliders, drags, toggles, radio buttons, combo boxes, colors.
  • Keyboard focus & shortcuts — src/demos/keyboard_nav.rs: arrow-key focus traversal, activation, and shortcut discoverability.
  • Unsaved changes — src/demos/unsaved_changes.rs: dirty tracking with guarded navigation and save/discard confirmation.
  • Date, time & folder pickers — src/demos/pickers.rs: segmented date/time fields and a filesystem folder browser.

Data

  • Data table — src/demos/tables.rs: sortable and striped rows, resizable columns, selection, pagination, and virtualisation.
  • Diff / compare — src/demos/diff_view.rs: unified and side-by-side source comparison with change highlighting.
  • Tree / hierarchy — src/demos/tree.rs: recursive CollapsingHeader nodes and filtered branches.
  • Charts — src/demos/plots.rs: a painter-based line and bar chart with hover feedback.
  • Calendar / scheduler — src/demos/calendar.rs: month/week planning with selected-day state.

Feedback

  • Progress & status — src/demos/progress.rs: determinate/indeterminate progress, spinners, repaint timers.
  • Feedback states — src/demos/feedback_states.rs: loading, empty, error, retry, skeleton, success, toast, and notification-center states.

The launcher also provides:

  • category-grouped navigation in a resizable sidebar;
  • case-insensitive pattern search, with / as a search shortcut;
  • dark/light themes and a configurable accent color;
  • a status bar showing the pattern count and current selection.

The per-file map in docs/demo-catalog.md mirrors this list and adds a "useful starting point for" column.

Quick start

Install a recent stable Rust toolchain, then run:

cargo run

For a faster, optimized local build:

cargo run --release

Useful checks before committing changes:

cargo fmt -- --check
cargo check
cargo clippy --all-targets --all-features -- -D warnings

License

Cargo.toml declares the intended license expression as MIT OR Apache-2.0. Add the corresponding MIT and Apache-2.0 license files when distributing the project.

About

A small desktop application that turns common egui layouts and widgets into a searchable, copy-paste-friendly pattern gallery.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages