Expand description
Theme data model: types, defaults, fonts, borders, widgets.
Core types: Theme, ThemeMode,
ResolvedTheme, ResolvedDefaults.
Re-exports§
pub use crate::presets::PresetInfo;
Structs§
- Button
Theme - Push button: colors, sizing, spacing, geometry.
- Card
Theme - Card / container colors and geometry.
- Checkbox
Theme - Checkbox and radio button theme: colors, indicator, label font, border, and interactive states.
- Combo
BoxTheme - ComboBox / dropdown trigger sizing.
- Defaults
Border Spec - Defaults-level border specification: color, geometry, and the platform’s line opacity.
- Dialog
Theme - Dialog sizing, spacing, button order, fonts, border, and background.
- Expander
Theme - Expander / disclosure row geometry.
- Font
Spec - Font specification: family name, size, weight, style, and color.
- Icon
Sizes - Per-context icon sizes in logical pixels.
- Input
Theme - Single-line and multi-line text input fields: everything of a multi-line
field but its padding, which is
TextAreaTheme’s. - Layout
Theme - Layout spacing constants shared between light and dark variants.
- Link
Theme - Hyperlink colors and underline setting.
- List
Theme - List and table colors and row geometry.
- Menu
Theme - Popup and context menu appearance.
- Popover
Theme - Popover / dropdown panel appearance.
- Progress
BarTheme - Progress bar colors and geometry.
- Resolved
- A theme fully resolved for a specific color mode.
- Resolved
Button Theme - Push button: colors, sizing, spacing, geometry.
- Resolved
Card Theme - Card / container colors and geometry.
- Resolved
Checkbox Theme - Checkbox and radio button theme: colors, indicator, label font, border, and interactive states.
- Resolved
Combo BoxTheme - ComboBox / dropdown trigger sizing.
- Resolved
Defaults - Fully resolved global theme defaults where every field is guaranteed populated.
- Resolved
Defaults Border - The resolved
defaults.border: the global border geometry and colour that widget borders inherit. - Resolved
Dialog Theme - Dialog sizing, spacing, button order, fonts, border, and background.
- Resolved
Expander Theme - Expander / disclosure row geometry.
- Resolved
Font Spec - A resolved (non-optional) font specification produced after theme resolution.
- Resolved
Icon Sizes - Fully resolved per-context icon sizes where every context is guaranteed populated.
- Resolved
Input Theme - Single-line and multi-line text input fields: everything of a multi-line
field but its padding, which is
TextAreaTheme’s. - Resolved
Layout Theme - Layout spacing constants shared between light and dark variants.
- Resolved
Link Theme - Hyperlink colors and underline setting.
- Resolved
List Theme - List and table colors and row geometry.
- Resolved
Menu Theme - Popup and context menu appearance.
- Resolved
Padding - A widget’s resolved padding, one field per side.
- Resolved
Popover Theme - Popover / dropdown panel appearance.
- Resolved
Progress BarTheme - Progress bar colors and geometry.
- Resolved
Scrollbar Theme - Scrollbar colors and geometry.
- Resolved
Segmented Control Theme - Segmented control sizing (macOS-primary; KDE uses tab bar metrics as proxy).
- Resolved
Separator Theme - Separator line color and width.
- Resolved
Sidebar Theme - Sidebar panel background, selection, and hover colors.
- Resolved
Slider Theme - Slider control colors and geometry.
- Resolved
Spinner Theme - Spinner / indeterminate progress indicator.
- Resolved
Splitter Theme - Splitter handle width and color.
- Resolved
Status BarTheme - Status bar font and background.
- Resolved
Switch Theme - Toggle switch track, thumb, geometry, and interactive states.
- Resolved
TabTheme - Tab bar colors and sizing.
- Resolved
Text Area Theme - Multi-line text field: the padding in which it differs from the
single-line field. Everything else a text area shows – its fill, text,
placeholder, caret, selection, states and font – is
InputTheme’s. - Resolved
Text Scale - A fully resolved text scale with all four typographic roles populated.
- Resolved
Text Scale Entry - A single resolved text scale entry with guaranteed size, weight, and line height.
- Resolved
Theme - A fully resolved theme where every field is guaranteed populated.
- Resolved
Toolbar Theme - Toolbar sizing, spacing, and font.
- Resolved
Tooltip Theme - Tooltip popup appearance.
- Resolved
Widget Border - A widget’s resolved border: its colour, geometry and padding.
- Resolved
Window Theme - Window chrome: background, title bar colors, inactive states, geometry.
- Scrollbar
Theme - Scrollbar colors and geometry.
- Segmented
Control Theme - Segmented control sizing (macOS-primary; KDE uses tab bar metrics as proxy).
- Separator
Theme - Separator line color and width.
- Sidebar
Theme - Sidebar panel background, selection, and hover colors.
- Slider
Theme - Slider control colors and geometry.
- Spinner
Theme - Spinner / indeterminate progress indicator.
- Splitter
Theme - Splitter handle width and color.
- Status
BarTheme - Status bar font and background.
- Switch
Theme - Toggle switch track, thumb, geometry, and interactive states.
- TabTheme
- Tab bar colors and sizing.
- Text
Area Theme - Multi-line text field: the padding in which it differs from the
single-line field. Everything else a text area shows – its fill, text,
placeholder, caret, selection, states and font – is
InputTheme’s. - Text
Scale - A named text scale with four typographic roles.
- Text
Scale Entry - A single entry in a text scale: size, weight, and line height.
- Theme
- A complete native theme with a name and optional light/dark variants.
- Theme
Defaults - Global theme defaults shared across all widgets.
- Theme
Mode - A single light or dark theme variant containing all visual properties.
- Toolbar
Theme - Toolbar sizing, spacing, and font.
- Tooltip
Theme - Tooltip popup appearance.
- Widget
Border Spec - Widget-level border specification: color, geometry, and padding.
- Window
Theme - Window chrome: background, title bar colors, inactive states, geometry.
Enums§
- Arrow
Side - Which end of an expander’s header row its disclosure arrow sits at.
- Color
Mode - Light or dark color mode preference.
- Dialog
Button Order - Specifies the order of primary/cancel buttons in dialogs.
- Dialog
Entrance Style - How a dialog moves onto the screen as it opens.
- Font
Size - A font size with an explicit unit.
- Font
Style - Font style: upright, italic, or oblique.
- IconSet
- Known icon sets that provide platform-specific icon identifiers.
- TabIndicator
Side - Which edge of the active tab its indicator line lies along, for tabs above their pages.
Functions§
- intern_
font_ family - Intern a font family name, returning a deduplicated
Arc<str>.