Skip to main content

ResolvedTheme

Struct ResolvedTheme 

Source
pub struct ResolvedTheme {
Show 28 fields pub defaults: ResolvedDefaults, pub text_scale: ResolvedTextScale, pub window: ResolvedWindow, pub button: ResolvedButton, pub input: ResolvedInput, pub checkbox: ResolvedCheckbox, pub menu: ResolvedMenu, pub tooltip: ResolvedTooltip, pub scrollbar: ResolvedScrollbar, pub slider: ResolvedSlider, pub progress_bar: ResolvedProgressBar, pub tab: ResolvedTab, pub sidebar: ResolvedSidebar, pub toolbar: ResolvedToolbar, pub status_bar: ResolvedStatusBar, pub list: ResolvedList, pub popover: ResolvedPopover, pub splitter: ResolvedSplitter, pub separator: ResolvedSeparator, pub switch: ResolvedSwitch, pub dialog: ResolvedDialog, pub spinner: ResolvedSpinner, pub combo_box: ResolvedComboBox, pub segmented_control: ResolvedSegmentedControl, pub card: ResolvedCard, pub expander: ResolvedExpander, pub link: ResolvedLink, pub icon_set: String,
}
Expand description

A fully resolved theme where every field is guaranteed populated.

Produced by validate() after resolve(). Consumed by toolkit connectors. Mirrors crate::model::ThemeVariant but with concrete (non-Option) types for all 25 per-widget structs plus defaults and text scale.

Fields§

§defaults: ResolvedDefaults

Global defaults.

§text_scale: ResolvedTextScale

Per-role text scale.

§window: ResolvedWindow

Window chrome.

§button: ResolvedButton

Push button.

§input: ResolvedInput

Text input.

§checkbox: ResolvedCheckbox

Checkbox / radio button.

§menu: ResolvedMenu

Popup / context menu.

§tooltip: ResolvedTooltip

Tooltip.

§scrollbar: ResolvedScrollbar

Scrollbar.

§slider: ResolvedSlider

Slider.

§progress_bar: ResolvedProgressBar

Progress bar.

§tab: ResolvedTab

Tab bar.

§sidebar: ResolvedSidebar

Sidebar panel.

§toolbar: ResolvedToolbar

Toolbar.

§status_bar: ResolvedStatusBar

Status bar.

§list: ResolvedList

List / table.

§popover: ResolvedPopover

Popover / dropdown.

§splitter: ResolvedSplitter

Splitter handle.

§separator: ResolvedSeparator

Separator line.

§switch: ResolvedSwitch

Toggle switch.

§dialog: ResolvedDialog

Dialog.

§spinner: ResolvedSpinner

Spinner / progress ring.

§combo_box: ResolvedComboBox

ComboBox / dropdown trigger.

§segmented_control: ResolvedSegmentedControl

Segmented control.

§card: ResolvedCard

Card / container.

§expander: ResolvedExpander

Expander / disclosure.

§link: ResolvedLink

Hyperlink.

§icon_set: String

Icon set / naming convention (e.g., “sf-symbols”, “freedesktop”).

Trait Implementations§

Source§

impl Clone for ResolvedTheme

Source§

fn clone(&self) -> ResolvedTheme

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResolvedTheme

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ResolvedTheme

Source§

fn eq(&self, other: &ResolvedTheme) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ResolvedTheme

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.