Skip to main content

kitchen_ui/widgets/
mod.rs

1//! Small pieces both apps use: an accent picker, a titled section, a labelled row, a slider, a dropdown of fixed
2//! options, a stepper and a dragged number, a colour swatch, a centred empty state, an icon
3//! button; and the text views: code ([`CodeView`]), diffs ([`DiffView`]) and light markdown
4//! ([`TextView`]). Plain data in, no store; colours from the current look
5//! ([`crate::theme::color`]).
6
7mod accent_picker;
8mod button;
9mod code_view;
10mod diff_view;
11mod empty;
12mod menu_select;
13mod row;
14mod section;
15mod slider;
16mod stepper;
17mod swatch;
18mod text_view;
19
20pub use accent_picker::{AccentChanged, AccentPicker};
21pub use button::icon_button;
22pub use code_view::{CodeChanged, CodeLanguage, CodeView};
23pub use diff_view::{DiffView, HunkDecision};
24pub use empty::EmptyState;
25pub use menu_select::MenuSelect;
26pub use row::row;
27pub use section::Section;
28pub use slider::{OnSlide, slider};
29pub use stepper::{OnStep, SCRUB_PX, scrub_label, stepper};
30pub use swatch::swatch;
31pub use text_view::TextView;