mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
docs(dialogs, docking, themes): name the library crate behind each craft_ui module
This commit is contained in:
@@ -21,7 +21,7 @@ derived.
|
||||
data and caption colours, plus shape, size, space, motion and type tokens.
|
||||
3. **Component tokens**: the slider thumb's width and height (`slider.thumb_width`,
|
||||
`slider.thumb_height`). Every other component computes its look from the semantic tokens, in
|
||||
its style in `craft-ui`.
|
||||
its style in the UI library crates.
|
||||
|
||||
`resolve(theme, appearance, app)` builds the tokens for one appearance: mode (light, dark),
|
||||
contrast (standard, high), size (compact, comfortable), text size (small, default, large and
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Dialogs
|
||||
|
||||
`craft_ui::dialog` holds the dialog shells, the prompts, and the host that runs an app's dialogs and keeps their answers.
|
||||
`craft_ui::dialog` holds the dialog shells, the prompts, and the host that runs an app's dialogs and keeps their answers. craft-ui-panels defines it; craft-ui-canvas adds `FullWindowDialog` and its parts, and the `craft-ui` facade re-exports that combined module.
|
||||
|
||||
| Type | Is |
|
||||
| --- | --- |
|
||||
@@ -13,7 +13,7 @@
|
||||
| `DialogHost` | Runs the open dialogs of a window and keeps their results. |
|
||||
| `DialogStack` | Which open modal dialog takes the input. |
|
||||
|
||||
Form dialogs (`ParamDialog`, image size, properties, new document and others) build on these in `craft_ui::patterns::form_dialogs`.
|
||||
Form dialogs (`ParamDialog`, image size, properties, new document and others) build on these in `craft_ui::patterns::form_dialogs` (craft-ui-patterns).
|
||||
|
||||
## Dialog
|
||||
|
||||
|
||||
+3
-3
@@ -4,9 +4,9 @@ Docking has three layers:
|
||||
|
||||
| Layer | Holds |
|
||||
| --- | --- |
|
||||
| `craft_behavior::dock` | The model: `Workspace`, `Layout`, `Node`, `Action`, `Permissions`, `WorkspaceSet`. No egui; this is the saved data. |
|
||||
| `craft_ui::docking` | The parts: `SplitArea`, `DockGroup`, `DockColumn`, `IconicColumn`, `Flyout`, `FloatingGroup`, `DockRoot`, `Splitter`; drop resolution; the dock commands. |
|
||||
| `craft_ui::patterns::dock` | The patterns an app shows: `DockArea` over a workspace, `PaneArea` for task panes, `WorkspaceSwitcher`. |
|
||||
| `craft_behavior::dock` (craft-behavior) | The model: `Workspace`, `Layout`, `Node`, `Action`, `Permissions`, `WorkspaceSet`. No egui; this is the saved data. |
|
||||
| `craft_ui::docking` (craft-ui-panels) | The parts: `SplitArea`, `DockGroup`, `DockColumn`, `IconicColumn`, `Flyout`, `FloatingGroup`, `DockRoot`, `Splitter`; drop resolution; the dock commands. |
|
||||
| `craft_ui::patterns::dock` (craft-ui-patterns) | The patterns an app shows: `DockArea` over a workspace, `PaneArea` for task panes, `WorkspaceSwitcher`. |
|
||||
|
||||
An app with dockable panels shows a `DockArea`. The parts are for patterns that need one piece, such as a two-body split.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user