|
TachyonUI 0.1.0
High-performance UI for building tools.
|
A control's look comes from a CSS class of the loaded theme. Each control takes an optional StyleRef, a handle to a class that you get from theme.GetStyle. When you pass no style, the control uses the class in the table below.
| Control | Class |
|---|---|
| BeginWindow | window |
| BeginGhostWindow, AddGhostIcon | ghost-window, ghost-icon |
| BeginHorizontal, BeginVertical and Wrap variants | none (plain flex box built in code) |
| BeginArea, BeginCached | collection |
| BeginButtonGroup, BeginToggleGroup | button-group, toggle-group; items group-button, group-toggle (button, toggle when alone) |
| Text | static-text |
| Label, DragLabel | label, drag-label (group-label, group-drag-label in a resizable label group) |
| Image | none (built in code) |
| Button, CommandButton | button |
| Toggle, Field(bool&) | toggle |
| Switch | switch |
| Checkbox | checkbox |
| Field(std::string&) | textbox |
| SearchField | search-textbox |
| Dropdown | menu-trigger, popup menu |
| AutocompleteField | textbox; list command-search-list, rows menu-item-row, highlighted row command-search-current-row |
| Field (numbers) | number-field |
| Field (vectors) | vector-component, axis-label-x / -y / -z / -w |
| TypedField | typed-field |
| Field (lists, dictionaries) | collection-area |
| SliderField | slider-field-track |
| Slider | slider |
| ColorField | color-field (picker: color-picker) |
| GradientField | gradient-swatch (editor: gradient-editor) |
| BeginMenu | menu-trigger, popup menu |
| MenuItem | menu-item-row |
| MenuSeparator, MenuHeader | menu-separator, menu-header |
| BeginMenuBar, BeginTitleBar | menu-bar, title-bar |
| BeginContextMenu | menu |
| SetTooltip, BeginTooltip | tooltip-frame, tooltip, tooltip-text, and more; see Tooltip classes |
| MessageDialog | message-box |
| Toasts | toast-stack, toast, toast-circle-<severity> |
| Banner | banner-<severity>, banner-message-<severity> |
| BeginListView, ListItem | list-view, list-item |
| BeginReorderableGroup | horzReorderableGroup, vertReorderableGroup (...Wrap when wrapped) |
| BeginReorderableItem | reorderableItem |
| BeginTable, VirtualTable | table (cells: table-cell) |
| VirtualTreeView | tree-view |
| BeginGridView, GridViewItem | grid-view, grid-view-item |
| VirtualGridView | grid-view-scroll, grid-view-row |
| BeginTabBar, Tab | tab-bar, tab, tab-overflow |
| BeginDockingContainer | dock-container |
| Documents | documents, document-bar, document-tab-<kind>, document-name-<kind>, document-line-<kind> (plain: document-tab, document-name, document-line) |
| BeginToolbar | controls inside use toolbar-* variants |
| Breadcrumb | breadcrumb |
| BeginStatusBar, StatusText | status-bar, status-text |
| CommandSearch | command-search |
| RenderSettingsPanel | settings-page |
| RenderNodeView | node-view |
| Links in rich text (theme.linkStyle) | link (color, :hover color, cursor) |