|
|
|
@@ -24,21 +24,23 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `Marquee` | Leaf | `craft_ui_canvas::canvas_controls::marquee` | An outline over the document, shown at the canvas's rect with `show_at` and mapped through the canvas's view |
|
|
|
|
|
| `Navigator` | Leaf | `craft_ui_canvas::canvas::navigator::preview` | The preview box of the Navigator panel with the proxy rectangle of the view |
|
|
|
|
|
| `Pasteboard` | Leaf | `craft_ui_canvas::canvas::pasteboard` | The pasteboard and page frames under a document |
|
|
|
|
|
| `Picture` | Leaf | `craft_ui_widgets::display::picture` | A picture of an image the caller makes |
|
|
|
|
|
| `Picture` | Leaf | `craft_ui_widgets::display::picture` | A picture of an image the caller makes (`new`) or of what a content painter paints (`painter`); both sit in a rect of the same token sizes |
|
|
|
|
|
| `PixelGrid` | Leaf | `craft_ui_canvas::canvas_controls::pixel_grid` | The pixel grid over a raster document |
|
|
|
|
|
| `RasterDisplay` | Leaf | `craft_ui_canvas::canvas::raster` | The document display of one canvas: the document drawn through the view of the [`Canvas`](super::Canvas) it is shown in, at the canvas rect |
|
|
|
|
|
| `RotateView` | Leaf | `craft_ui_canvas::canvas::rotate` | The compass of a turned view: a dial whose needle points where the document's up lies on screen |
|
|
|
|
|
| `Rulers` | Leaf | `craft_ui_canvas::canvas::rulers` | The rulers of a canvas: ticks and labels counted from a zero point, level whatever the view's rotation, a pointer marker, the guide drag-out and the zero point's corner |
|
|
|
|
|
| `SelectionOutline` | Leaf | `craft_ui_canvas::canvas_controls::outline` | Highlights over the selected shapes, in the host's colour (a layer's colour), else the overlay line colour |
|
|
|
|
|
| `SmartGuides` | Leaf | `craft_ui_canvas::canvas_controls::smart_guides` | The alignment lines and distances an app shows while something moves (Smart Guides and Alt distances) |
|
|
|
|
|
| `SourceMarker` | Leaf | `craft_ui_canvas::canvas_controls::brush::source_marker` | The clone source's crosshair at document point `at`: two arms through the view, a thin line over a thick halo |
|
|
|
|
|
| `StraightLinePreview` | Leaf | `craft_ui_canvas::canvas_controls::line_preview` | The Shift-click line from `from` (the end of the last stroke) to `to` (the pointer), both in document units |
|
|
|
|
|
| `StrokeTrail` | Leaf | `craft_ui_canvas::canvas_controls::brush::trail` | The footprint of the stroke being painted, drawn from a [`CoverageMask`] as one textured quad over the mask's document rect |
|
|
|
|
|
| `Text` | Leaf | `craft_ui_widgets::display::text` | Text in a type role (body by default) and a shade (normal by default), or in the colour of a tone |
|
|
|
|
|
| `TipCell` | Leaf | `craft_ui_canvas::canvas_controls::brush::cursor` | An aliased tip's whole-pixel cell on the pixel grid, outlined as a square or a disc: what a pencil shows under the hidden pointer |
|
|
|
|
|
| `TipText` | Leaf | `craft_ui_contract::contract::tooltip` | The text of a tooltip, on a popup surface |
|
|
|
|
|
| `Canvas` | Body | `craft_ui_canvas::canvas` | A canvas: a pasteboard the caller's canvas controls and the active tool share |
|
|
|
|
|
| `Grid` | Body | `craft_ui_widgets::layout_components` | Children row-major over a column list: a child in flow takes the next cell |
|
|
|
|
|
| `Row` | Body | `craft_ui_widgets::layout_components` | Children side by side |
|
|
|
|
|
| `SplitViews` | Body | `craft_ui_canvas::canvas::split` | One canvas area divided into 1, 2 or 4 panes |
|
|
|
|
|
| `SplitViews` | Body | `craft_ui_canvas::canvas::split` | One canvas area shown as views of one document, or a grid of panes the caller fills (one document each), in the panes of a [`SplitLayout`] |
|
|
|
|
|
| `Stack` | Body | `craft_ui_widgets::layout_components` | Children one under another |
|
|
|
|
|
| `TargetMark` | Body | `craft_ui_widgets::display::target_mark` | A ring around `target` that pulses in the accent colour, still where motion is off |
|
|
|
|
|
|
|
|
|
@@ -84,6 +86,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `TreePicker` | Leaf | `craft_ui_widgets::pickers::tree_picker` | A field that opens a tree of items and folders and sets the binding to the picked item's key |
|
|
|
|
|
| `UnitSelect` | Leaf | `craft_ui_widgets::pickers::unit_select` | A number field with a select of units after it |
|
|
|
|
|
| `RadioGroup` | Body | `craft_ui_widgets::choice::radio` | A group of radio buttons over one value: one Tab stop, arrows move focus, Space, Enter or a click selects |
|
|
|
|
|
| `SwatchTable` | Items | `craft_ui_widgets::choice::swatch_table` | A table of touching colour cells, one per entry, wrapping to the width or to a fixed count per row |
|
|
|
|
|
|
|
|
|
|
### Composites
|
|
|
|
|
|
|
|
|
@@ -153,7 +156,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `ToolRail` | Body | `craft_ui_panels::rails::tool` | The rail of tool slots, as a side panel at one edge of the window: one `FlyoutButton` per visible slot showing the slot's shown tool, the slot with the current tool toggled on |
|
|
|
|
|
| `AboutDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::about` | Help > About: tabs About, Contributors and Models over the app's [`AboutInfo`] and [`Credits`], with an OK button |
|
|
|
|
|
| `Alert` | Pattern | `craft_ui_panels::dialog::alert` | A modal notice with one OK button: a prompt whose only answer is OK, which OK, Enter, Escape and the close action all give |
|
|
|
|
|
| `AlignBar` | Pattern | `craft_ui_widgets::bars::align` | The align buttons, the optional distribute buttons and the menu button, shown as children of a `Bar` |
|
|
|
|
|
| `AlignBar` | Pattern | `craft_ui_widgets::bars::align` | The two sections of four align and distribute buttons, then the menu button, shown as children of a `Bar` |
|
|
|
|
|
| `BarHome` | Pattern | `craft_ui_widgets::bars::lead` | The Home button at the start of an options bar: a toggle with the home icon, then a rule |
|
|
|
|
|
| `BarTool` | Pattern | `craft_ui_widgets::bars::lead` | The active tool's icon at the start of an options bar, after Home: the icon, the dropdown arrow that tells it has a menu, then a rule |
|
|
|
|
|
| `CanvasSize` | Pattern | `craft_ui_patterns::patterns::form_dialogs::sizing::canvas` | Canvas Size: the current size, the new width and height with a unit each (no chain: the sides are independent), the Relative box, the 3 by 3 anchor and the colour that fills a larger canvas |
|
|
|
|
@@ -164,7 +167,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `DocumentTabs` | Pattern | `craft_ui_widgets::tabs::document` | The tab strip of one document group |
|
|
|
|
|
| `EditMenu` | Pattern | `craft_ui_widgets::menu::edit` | The edit rows of a text control: Undo and Redo, Cut, Copy, Paste and Delete, then Select All |
|
|
|
|
|
| `ExportAsDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::export::as_dialog` | File, Export, Export As: format, size, quality, metadata, colour profile, a preview and a size estimate the app computes |
|
|
|
|
|
| `Flyout` | Pattern | `craft_ui_panels::docking::flyout` | A popup beside an iconic column, on the side of the canvas, level with the icon that opened it |
|
|
|
|
|
| `FileListPicker` | Pattern | `craft_ui_patterns::patterns::form_dialogs::file_list` | Photoshop's Load Files into Stack file list, after PhotoCraft's port of it |
|
|
|
|
|
| `FormatOptionsDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::export::options` | The options dialog of one export format: JPEG (the quality as a field, a slider and a preset list, then the encoding), layered TIFF (keep or discard the layers, and not to ask again), Targa (24 or 32 bits per pixel) or DDS (compression and mipmaps) |
|
|
|
|
|
| `FormDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::form` | A dialog over one value `V` |
|
|
|
|
|
| `FullWindowCanvas` | Pattern | `craft_ui_canvas::canvas::full_window_parts::canvas` | The canvas region of a full-window dialog: the app's image, its overlays and one tool, filling what the other regions left |
|
|
|
|
@@ -172,11 +175,13 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `FullWindowTitle` | Pattern | `craft_ui_canvas::canvas::full_window_parts::title` | The title strip's text: the workspace's name, then in brackets what it works on and the zoom on screen, "Liquify (Layer 1, 66.67%)" |
|
|
|
|
|
| `FullWindowZoomBar` | Pattern | `craft_ui_canvas::canvas::full_window_parts::zoom_bar` | The strip under a full-window canvas: Zoom Out, Zoom In, a zoom select, then a progress bar while the preview renders, or a note |
|
|
|
|
|
| `GuideLayoutDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::guides` | New Guide Layout, Photoshop's dialog: Preset and Target lists, Color, the Columns and Rows groups (each a check box with Number, Width or Height, and Gutter), the Margin group (a check box and Top, Left, Bottom, Right), Center Columns and Clear Existing Guides; beside them a column of OK and Cancel with Preview under it |
|
|
|
|
|
| `HistoryPanel` | Pattern | `craft_ui_patterns::patterns::panels::history` | The history panel: `rows` with the `current` one marked, thumbnails of the snapshots and a footer of buttons |
|
|
|
|
|
| `IconPicker` | Pattern | `craft_ui_widgets::pickers::icon_picker` | A searchable grid of icons in named groups |
|
|
|
|
|
| `ImageSize` | Pattern | `craft_ui_patterns::patterns::form_dialogs::sizing::image` | Image Size: the width, height and resolution with a unit each, the chain that keeps the proportions, Resample with its method list and Scale Styles, over a readout of the file size and the dimensions |
|
|
|
|
|
| `Inspector` | Pattern | `craft_ui_patterns::patterns::panels::inspector` | A properties panel: a `Panel` whose header names the target (icon and name, and the kind at the end), and whose body the caller fills with the target's controls, labelled as inspector rows (`LabelScheme::Inspector`) |
|
|
|
|
|
| `ListManager` | Pattern | `craft_ui_patterns::patterns::form_dialogs::list_manager` | A named list with a name box and a column of action buttons (after Excel's Macros dialog) |
|
|
|
|
|
| `MetadataTable` | Pattern | `craft_ui_widgets::table::metadata` | A key and value table in groups: a search field over the rows keeps the fields whose name or value matches the typed text, and a check column marks the keys the app shows as columns |
|
|
|
|
|
| `ModifierKeysPanel` | Pattern | `craft_ui_patterns::patterns::panels::modifier_keys` | A panel of latching modifier-key toggles: a press on one holds that modifier for the next click or key |
|
|
|
|
|
| `NamedPresetRow` | Pattern | `craft_ui_patterns::patterns::presets::named` | A preset picker with the commands that make, rename and delete presets |
|
|
|
|
|
| `NavigateBar` | Pattern | `craft_ui_canvas::canvas::navigate::bar` | The options of a navigation tool (Zoom, Rotate View, Hand), shown as children of the app's options bar, as in Photoshop |
|
|
|
|
|
| `NavigatorOptionsDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::navigator_options` | Panel Options of the Navigator: the colour of the proxy rectangle |
|
|
|
|
@@ -189,7 +194,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `OutputPathRow` | Pattern | `craft_ui_patterns::patterns::form_dialogs::export::path_row` | "Output To", a list of name templates (`[Comp Name].[fileExtension]`) and the resulting file name as a link, for render queues and export dialogs (After Effects' Render Queue) |
|
|
|
|
|
| `PaneArea` | Pattern | `craft_ui_patterns::patterns::dock::panes` | The app's side panes, bottom panes and floating panes around its document |
|
|
|
|
|
| `PanelMenu` | Pattern | `craft_ui_widgets::menu::panel` | The rows of one panel's menu: the host's rows, a separator, then the dock's rows |
|
|
|
|
|
| `ParamDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::dialog` | A dialog from a parameter list: one row per [`Param`], the Preview check box with a preview pane when the host gives a picture, and OK, Cancel and a footer extra |
|
|
|
|
|
| `ParamDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::dialog` | A dialog from a parameter list: one row per [`Param`], the Preview check box when it [`previews`](ParamDialog::previews), with a preview pane when the host gives a picture, and OK, Cancel, extra buttons and a footer note |
|
|
|
|
|
| `ParamRows` | Pattern | `craft_ui_patterns::patterns::form_dialogs::rows` | The rows of a parameter list: a group of one labelled field per visible [`Param`], the control chosen by its [`ParamKind`], in a panel the host lays out or inside a dialog |
|
|
|
|
|
| `PasswordDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::password` | A question with a lock icon, the message, the masked field and the buttons |
|
|
|
|
|
| `PathRow` | Pattern | `craft_ui_patterns::patterns::form_dialogs::path_row` | A text field with the path, taking the row's room, and a Browse button after it, for a row whose enclosing `Field` shows the label |
|
|
|
|
@@ -197,6 +202,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `PreferencesWindow` | Pattern | `craft_ui_patterns::patterns::preferences::window` | The preferences window: a search field over a page list and the shown page, with OK, Cancel and Apply under them |
|
|
|
|
|
| `PresetBrowser` | Pattern | `craft_ui_patterns::patterns::presets::browser` | A library of named presets shown as thumbnails |
|
|
|
|
|
| `PresetFooter` | Pattern | `craft_ui_patterns::patterns::presets::footer` | The footer of a preset panel: the host's own controls, the thumbnail size slider and the count, then the action buttons Delete, New and New Group and the host's own actions |
|
|
|
|
|
| `PresetManager` | Pattern | `craft_ui_patterns::patterns::presets::manager` | The preset manager: a select of preset `kinds` over the list of the picked kind's `rows`, with Rename and Delete on each row and buttons for the host's own `actions` (Load, Save, Reset) |
|
|
|
|
|
| `PresetPicker` | Pattern | `craft_ui_patterns::patterns::presets::picker` | A field that shows the current preset and opens its presets |
|
|
|
|
|
| `PreviewZoom` | Pattern | `craft_ui_patterns::patterns::form_dialogs::preview` | The zoom row of a preview: a zoom-out button, the zoom as a percentage field and a zoom-in button |
|
|
|
|
|
| `Prompt` | Pattern | `craft_ui_panels::dialog::prompt` | A question with answers: a dialog on the modal preset, centred and not movable, with a message, optional extras and one footer button per answer |
|
|
|
|
@@ -209,6 +215,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `StatusMessage` | Pattern | `craft_ui_widgets::bars::status` | A message for the status bar and its tone |
|
|
|
|
|
| `StatusProgress` | Pattern | `craft_ui_widgets::bars::status` | A background task's progress, for a status bar's trailing group: the task's name, a progress bar that moves a segment while the extent is unknown, the percentage and an optional cancel button |
|
|
|
|
|
| `StatusReadout` | Pattern | `craft_ui_widgets::bars::status_readout` | The zoom field, the chosen item's text and the menu that chooses it, shown as children of a status `Bar` |
|
|
|
|
|
| `TaskBar` | Pattern | `craft_ui_canvas::canvas_controls::task_bar` | The contextual task bar: a movable modeless layer hung below the screen bounds of `anchor` while its place is unset, with a body of members and a More menu (Hide, Reset, Pin) |
|
|
|
|
|
| `ToastStack` | Pattern | `craft_ui_widgets::notices::toasts` | The cards of a window's toast queue |
|
|
|
|
|
| `ToolbarDrawer` | Pattern | `craft_ui_panels::rails::drawer` | The All Tools drawer: a popover beside the rail with one list over all groups, a heading row for each group |
|
|
|
|
|
| `Tour` | Pattern | `craft_ui_patterns::patterns::panels::tour` | A guided tour of the interface: a card with the step count and a close button, the step's heading and text, Skip, Back and Next (Done on the last step), beside the part the step points at, which a pulsing ring marks |
|
|
|
|
@@ -216,6 +223,7 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `Watermark` | Pattern | `craft_ui_patterns::patterns::form_dialogs::watermark` | The watermark rows of an export dialog: Style (Text, Graphic), the text field or the image path with Choose…, Orientation, Position as the 3 by 3 reference point, Rotation, Size, Opacity, Inset X and Y, and Shadow |
|
|
|
|
|
| `WindowMenuRows` | Pattern | `craft_ui_panels::docking::window_menu` | One check row per panel in the order the app gives, for a Window menu |
|
|
|
|
|
| `WorkspaceSwitcher` | Pattern | `craft_ui_patterns::patterns::dock::switcher` | The switcher at the end of an options bar: a small select showing the current workspace's name |
|
|
|
|
|
| `ZoomField` | Pattern | `craft_ui_widgets::text::zoom_field` | A zoom field: a `NumberField` over the view's device zoom in percent, with the zoom codec and the zoom ladder's range |
|
|
|
|
|
| `RecoveryDialog` | Dialog | `craft_ui_panels::dialog::recovery` | Recover Unsaved Work, one document at a time: a prompt saying when the document was autosaved, with Discard and Recover (the accepting answer) |
|
|
|
|
|
|
|
|
|
|
### Shells
|
|
|
|
@@ -226,7 +234,9 @@ Grouped by gallery level, then shape, then name.
|
|
|
|
|
| `DocumentWindow` | Body | `craft_ui_shell::shell::document_window` | A document's window: the container of one entry of the app's window list, in its own OS window |
|
|
|
|
|
| `ShellRegion` | Body | `craft_ui_shell::shell::app_shell` | A region of the window skeleton: the root window's content, the scope that carries the shell to its slots, or one pane (a bar, a rail or the body) |
|
|
|
|
|
| `AppShell` | Pattern | `craft_ui_shell::shell::app_shell` | The window skeleton |
|
|
|
|
|
| `CanvasPanel` | Pattern | `craft_ui_shell::shell::canvas_shell` | The canvas panel of a dock: the panel rail at the end edge, spanning the tabs and the document; then, in what is left, the document tab strip flush against the document; then the document area, which the shell's backdrop shows through |
|
|
|
|
|
| `CanvasPanel` | Pattern | `craft_ui_shell::shell::canvas_shell` | The canvas panel of a dock: the panel rail at the end edge, spanning the tabs and the document; then, in what is left, the document tab strip flush against the document; then the document area, over the canvas surround |
|
|
|
|
|
| `OpeningCard` | Pattern | `craft_ui_shell::shell::opening` | A centred card: "Opening {name}…" elided on one line with the full text on hover, the muted message, a progress bar (indeterminate without a fraction), the percentage at the start and Cancel at the end of the last row |
|
|
|
|
|
| `ScreenModeButton` | Pattern | `craft_ui_shell::shell::screen_mode_button` | A flyout button over the three screen modes, with `mode` marked: a click, Enter or Space cycles; a hold, a drag away or a right click lists the three modes without cycling |
|
|
|
|
|
| `StartScreen` | Pattern | `craft_ui_shell::shell::start` | The start screen, shown in a shell's body when no document is open |
|
|
|
|
|
| `ViewportWindow` | Pattern | `craft_ui_shell::shell::viewport_window` | A window of the app with a body the app fills |
|
|
|
|
|
|
|
|
|
|