pub struct ResolvedThemeVariant {Show 29 fields
pub defaults: ResolvedThemeDefaults,
pub text_scale: ResolvedTextScale,
pub window: ResolvedWindowTheme,
pub button: ResolvedButtonTheme,
pub input: ResolvedInputTheme,
pub checkbox: ResolvedCheckboxTheme,
pub menu: ResolvedMenuTheme,
pub tooltip: ResolvedTooltipTheme,
pub scrollbar: ResolvedScrollbarTheme,
pub slider: ResolvedSliderTheme,
pub progress_bar: ResolvedProgressBarTheme,
pub tab: ResolvedTabTheme,
pub sidebar: ResolvedSidebarTheme,
pub toolbar: ResolvedToolbarTheme,
pub status_bar: ResolvedStatusBarTheme,
pub list: ResolvedListTheme,
pub popover: ResolvedPopoverTheme,
pub splitter: ResolvedSplitterTheme,
pub separator: ResolvedSeparatorTheme,
pub switch: ResolvedSwitchTheme,
pub dialog: ResolvedDialogTheme,
pub spinner: ResolvedSpinnerTheme,
pub combo_box: ResolvedComboBoxTheme,
pub segmented_control: ResolvedSegmentedControlTheme,
pub card: ResolvedCardTheme,
pub expander: ResolvedExpanderTheme,
pub link: ResolvedLinkTheme,
pub icon_set: IconSet,
pub icon_theme: 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: ResolvedThemeDefaultsGlobal defaults.
text_scale: ResolvedTextScalePer-role text scale.
window: ResolvedWindowThemeWindow chrome.
Push button.
input: ResolvedInputThemeText input.
checkbox: ResolvedCheckboxThemeCheckbox / radio button.
Popup / context menu.
tooltip: ResolvedTooltipThemeTooltip.
scrollbar: ResolvedScrollbarThemeScrollbar.
slider: ResolvedSliderThemeSlider.
progress_bar: ResolvedProgressBarThemeProgress bar.
tab: ResolvedTabThemeTab bar.
Sidebar panel.
toolbar: ResolvedToolbarThemeToolbar.
status_bar: ResolvedStatusBarThemeStatus bar.
list: ResolvedListThemeList / table.
popover: ResolvedPopoverThemePopover / dropdown.
splitter: ResolvedSplitterThemeSplitter handle.
separator: ResolvedSeparatorThemeSeparator line.
switch: ResolvedSwitchThemeToggle switch.
dialog: ResolvedDialogThemeDialog.
spinner: ResolvedSpinnerThemeSpinner / progress ring.
combo_box: ResolvedComboBoxThemeComboBox / dropdown trigger.
segmented_control: ResolvedSegmentedControlThemeSegmented control.
card: ResolvedCardThemeCard / container.
expander: ResolvedExpanderThemeExpander / disclosure.
link: ResolvedLinkThemeHyperlink.
icon_set: IconSetWhich icon loading mechanism to use — determines how icons are looked up (freedesktop theme directories, bundled SVG tables, SF Symbols, etc.).
icon_theme: StringThe name of the visual icon theme that provides the actual icon files
(e.g. "breeze", "Adwaita", "Lucide").
Trait Implementations§
Source§impl Clone for ResolvedThemeVariant
impl Clone for ResolvedThemeVariant
Source§fn clone(&self) -> ResolvedThemeVariant
fn clone(&self) -> ResolvedThemeVariant
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedThemeVariant
impl Debug for ResolvedThemeVariant
Source§impl<'de> Deserialize<'de> for ResolvedThemeVariant
impl<'de> Deserialize<'de> for ResolvedThemeVariant
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolvedThemeVariant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolvedThemeVariant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ResolvedThemeVariant
impl PartialEq for ResolvedThemeVariant
Source§impl Serialize for ResolvedThemeVariant
impl Serialize for ResolvedThemeVariant
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ResolvedThemeVariant
Auto Trait Implementations§
impl Freeze for ResolvedThemeVariant
impl RefUnwindSafe for ResolvedThemeVariant
impl Send for ResolvedThemeVariant
impl Sync for ResolvedThemeVariant
impl Unpin for ResolvedThemeVariant
impl UnsafeUnpin for ResolvedThemeVariant
impl UnwindSafe for ResolvedThemeVariant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more