Skip to main content

WidgetThemes

Struct WidgetThemes 

Source
pub struct WidgetThemes {
Show 58 fields pub alert: AlertTheme, pub dialog: DialogTheme, pub action_icons: ActionIconTheme, pub app_bar: AppBarTheme, pub autocomplete: AutocompleteTheme, pub badge: BadgeTheme, pub banner: BannerTheme, pub bottom_app_bar: BottomAppBarTheme, pub bottom_sheet: BottomSheetTheme, pub breadcrumb: BreadcrumbTheme, pub button: ButtonTheme, pub card: CardTheme, pub checkbox: CheckboxTheme, pub chip: ChipTheme, pub date_picker: DatePickerTheme, pub divider: DividerTheme, pub drawer: DrawerTheme, pub list_tile: ListTileTheme, pub dropdown: DropdownTheme, pub expansion_tile: ExpansionTileTheme, pub expansion_panel_list: ExpansionPanelListTheme, pub fab: FabTheme, pub form: FormTheme, pub grid_tile_bar: GridTileBarTheme, pub icon: IconTheme, pub icon_button: IconButtonTheme, pub ink: InkTheme, pub kanban: KanbanTheme, pub reorderable: ReorderableTheme, pub kbd: KbdTheme, pub menu: MenuTheme, pub nav_bar: NavBarTheme, pub nav_rail: NavRailTheme, pub nav_drawer: NavDrawerTheme, pub scrollbar: ScrollbarTheme, pub search_bar: SearchBarTheme, pub search_view: SearchViewTheme, pub progress: ProgressTheme, pub radio: RadioTheme, pub segmented: SegmentedTheme, pub slider: SliderTheme, pub snack_bar: SnackBarTheme, pub steps: StepsTheme, pub switch: SwitchTheme, pub page_selector: PageSelectorTheme, pub tab_bar: TabBarTheme, pub table: TableTheme, pub text: DefaultTextStyle, pub menu_bar: MenuBarTheme, pub caption_buttons: CaptionButtonsTheme, pub title_bar: TitleBarTheme, pub text_selection: TextSelectionTheme, pub text_field: TextFieldTheme, pub time_picker: TimePickerTheme, pub timeline: TimelineTheme, pub toggle_buttons: ToggleButtonsTheme, pub tooltip: TooltipTheme, pub tree: TreeTheme,
}
Expand description

The per-widget defaults carried by a Theme.

Adding a widget here is adding a field: the pattern is one Option per builder the widget already has, resolved in the same order everywhere.

Fields§

§alert: AlertTheme

Defaults for Alert.

§dialog: DialogTheme

Defaults for Dialog and AlertDialog.

§action_icons: ActionIconTheme

Which glyphs the four named buttons carry.

§app_bar: AppBarTheme

Defaults for AppBar.

§autocomplete: AutocompleteTheme

Defaults for Autocomplete.

§badge: BadgeTheme

Defaults for Badge.

§banner: BannerTheme

Defaults for MaterialBanner.

§bottom_app_bar: BottomAppBarTheme

Defaults for BottomAppBar.

§bottom_sheet: BottomSheetTheme

Defaults for BottomSheet.

§breadcrumb: BreadcrumbTheme

Defaults for Breadcrumb.

§button: ButtonTheme

Defaults for Button.

§card: CardTheme

Defaults for Card.

§checkbox: CheckboxTheme

Defaults for Checkbox.

§chip: ChipTheme

Defaults for Chip.

§date_picker: DatePickerTheme

Defaults for DatePicker.

§divider: DividerTheme

Defaults for Divider.

§drawer: DrawerTheme

Defaults for Drawer.

§list_tile: ListTileTheme

Defaults for ListTile.

§dropdown: DropdownTheme

Defaults for DropdownButton and its options.

§expansion_tile: ExpansionTileTheme

Defaults for ExpansionTile.

§expansion_panel_list: ExpansionPanelListTheme

Defaults for ExpansionPanelList.

§fab: FabTheme

Defaults for FloatingActionButton.

§form: FormTheme

Defaults for a form’s error summary, ErrorSummary.

§grid_tile_bar: GridTileBarTheme

Defaults for GridTileBar.

§icon: IconTheme

Defaults for Icon.

§icon_button: IconButtonTheme

Defaults for IconButton.

§ink: InkTheme

Defaults for the ink ripple — every surface that splashes, including InkWell and Button.

§kanban: KanbanTheme

Defaults for Kanban.

§reorderable: ReorderableTheme

Defaults for ReorderableList.

§kbd: KbdTheme

Defaults for Kbd.

§menu: MenuTheme

Defaults for PopupMenuButton and its items.

§nav_bar: NavBarTheme

Defaults for NavigationBar.

§nav_rail: NavRailTheme

Defaults for NavigationRail and BottomBar.

§nav_drawer: NavDrawerTheme

Defaults for NavigationDrawer.

§scrollbar: ScrollbarTheme

Defaults for the scrollbars the framework draws over a scrollable.

§search_bar: SearchBarTheme

Defaults for SearchBar.

§search_view: SearchViewTheme

Defaults for the view a SearchAnchor opens.

§progress: ProgressTheme

Defaults for the two progress indicators.

§radio: RadioTheme

Defaults for RadioGroup.

§segmented: SegmentedTheme

Defaults for SegmentedButton.

§slider: SliderTheme

Defaults for Slider and RangeSlider.

§snack_bar: SnackBarTheme

Defaults for SnackBar.

§steps: StepsTheme

Defaults for Steps.

§switch: SwitchTheme

Defaults for Switch.

§page_selector: PageSelectorTheme

Defaults for TabPageSelector.

§tab_bar: TabBarTheme

Defaults for TabBar.

§table: TableTheme

Defaults for Table.

§text: DefaultTextStyle

The text style that text takes when it names none of its own.

§menu_bar: MenuBarTheme

Defaults for MenuBar and its menus.

§caption_buttons: CaptionButtonsTheme

The window’s three buttons, when the application paints them on the title bar’s line (milestone 640).

§title_bar: TitleBarTheme

The colours of a WindowMenuBar’s line (milestone 642).

§text_selection: TextSelectionTheme

How a selection in text that is not a field looks: a selectable text’s, and a SelectionArea’s.

§text_field: TextFieldTheme

Defaults for TextField.

§time_picker: TimePickerTheme

Defaults for TimePicker and TimeRange.

§timeline: TimelineTheme

Defaults for Timeline.

§toggle_buttons: ToggleButtonsTheme

Defaults for ToggleButtons.

§tooltip: TooltipTheme

Defaults for Tooltip.

§tree: TreeTheme

Defaults for Tree.

Trait Implementations§

Source§

impl Clone for WidgetThemes

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for WidgetThemes

Source§

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

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

impl Default for WidgetThemes

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for WidgetThemes

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WidgetThemes

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<Msg> IntoMsg<Msg> for Msg

Source§

fn defer(work: impl Fn() -> Msg + 'static) -> Msg

The message that stands for work’s result.
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.