Crate drafftink_widgets

Crate drafftink_widgets 

Source
Expand description

Reusable egui widget components with Tailwind-inspired styling.

This crate provides a collection of styled UI components for egui applications:

  • Buttons: Icon buttons, toggle buttons, multi-state toggles
  • Colors: Tailwind color palette, color swatches, color picker grids
  • Menu: Menu items, separators, panel frames
  • Layout: Section labels, separators, spacing helpers

Re-exports§

pub use buttons::FontSizeButton;
pub use buttons::IconButton;
pub use buttons::IconButtonStyle;
pub use buttons::MultiToggle;
pub use buttons::MultiToggleState;
pub use buttons::StrokeWidthButton;
pub use buttons::TextButton;
pub use buttons::ToggleButton;
pub use colors::colors_match;
pub use colors::hue_to_rgb;
pub use colors::parse_css_color;
pub use colors::ColorGrid;
pub use colors::ColorGridPosition;
pub use colors::ColorSwatch;
pub use colors::ColorSwatchStyle;
pub use colors::ColorSwatchWithWheel;
pub use colors::NoColorSwatch;
pub use colors::SelectionStyle;
pub use colors::TailwindColor;
pub use colors::TailwindPalette;
pub use colors::SHADE_LABELS;
pub use colors::TAILWIND_COLORS;
pub use layout::section_label;
pub use layout::separator;
pub use layout::vertical_separator;
pub use menu::menu_item;
pub use menu::menu_item_enabled;
pub use menu::menu_separator;
pub use menu::panel_frame;
pub use menu::toolbar_frame;

Modules§

buttons
Button components: icon buttons, toggle buttons, multi-state toggles.
colors
Color palette and color picker components.
layout
Layout helpers: separators, section labels, spacing.
menu
Menu components: menu items, separators, panel frames.
sizing
Standard sizing constants used across widgets.
theme
Standard colors used across widgets.