Struct components::material::ThemeData
source · [−]pub struct ThemeData {Show 80 fields
pub brightness: Brightness,
pub visual_density: VisualDensity,
pub primary_swatch: MaterialColor,
pub primary_color: Color,
pub primary_color_brightness: Brightness,
pub primary_color_light: Color,
pub primary_color_dark: Color,
pub accent_color: Color,
pub accent_color_brightness: Brightness,
pub canvas_color: Color,
pub shadow_color: Color,
pub scaffold_background_color: Color,
pub bottom_app_bar_color: Color,
pub card_color: Color,
pub divider_color: Color,
pub focus_color: Color,
pub hover_color: Color,
pub highlight_color: Color,
pub splash_color: Color,
pub splash_factory: InteractiveInkFeatureFactory,
pub selected_row_color: Color,
pub unselected_widget_color: Color,
pub disabled_color: Color,
pub button_color: Color,
pub button_theme: ButtonThemeData,
pub toggle_buttons_theme: ToggleButtonsThemeData,
pub secondary_header_color: Color,
pub text_selection_color: Color,
pub cursor_color: Color,
pub text_selection_handle_color: Color,
pub background_color: Color,
pub dialog_background_color: Color,
pub indicator_color: Color,
pub hint_color: Color,
pub error_color: Color,
pub toggleable_active_color: Color,
pub font_family: String,
pub text_theme: TextTheme,
pub primary_text_theme: TextTheme,
pub accent_text_theme: TextTheme,
pub input_decoration_theme: InputDecorationTheme,
pub icon_theme: IconThemeData,
pub primary_icon_theme: IconThemeData,
pub accent_icon_theme: IconThemeData,
pub slider_theme: SliderThemeData,
pub tab_bar_theme: TabBarTheme,
pub tooltip_theme: TooltipThemeData,
pub card_theme: CardTheme,
pub chip_theme: ChipThemeData,
pub platform: TargetPlatform,
pub material_tap_target_size: MaterialTapTargetSize,
pub apply_elevation_overlay_color: bool,
pub page_transitions_theme: PageTransitionsTheme,
pub app_bar_theme: AppBarTheme,
pub scrollbar_theme: ScrollbarThemeData,
pub bottom_app_bar_theme: BottomAppBarTheme,
pub color_scheme: ColorScheme,
pub dialog_theme: DialogTheme,
pub floating_action_button_theme: FloatingActionButtonThemeData,
pub navigation_rail_theme: NavigationRailThemeData,
pub typography: Typography,
pub snack_bar_theme: SnackBarThemeData,
pub bottom_sheet_theme: BottomSheetThemeData,
pub popup_menu_theme: PopupMenuThemeData,
pub banner_theme: MaterialBannerThemeData,
pub divider_theme: DividerThemeData,
pub button_bar_theme: ButtonBarThemeData,
pub bottom_navigation_bar_theme: BottomNavigationBarThemeData,
pub time_picker_theme: TimePickerThemeData,
pub text_button_theme: TextButtonThemeData,
pub elevated_button_theme: ElevatedButtonThemeData,
pub outlined_button_theme: OutlinedButtonThemeData,
pub text_selection_theme: TextSelectionThemeData,
pub data_table_theme: DataTableThemeData,
pub checkbox_theme: CheckboxThemeData,
pub radio_theme: RadioThemeData,
pub switch_theme: SwitchThemeData,
pub progress_indicator_theme: ProgressIndicatorThemeData,
pub fix_text_field_outline_label: bool,
pub use_text_selection_theme: bool,
}Fields
brightness: Brightnessvisual_density: VisualDensityprimary_swatch: MaterialColorprimary_color: Colorprimary_color_brightness: Brightnessprimary_color_light: Colorprimary_color_dark: Coloraccent_color: Coloraccent_color_brightness: Brightnesscanvas_color: Colorshadow_color: Colorscaffold_background_color: Colorbottom_app_bar_color: Colorcard_color: Colordivider_color: Colorfocus_color: Colorhover_color: Colorhighlight_color: Colorsplash_color: Colorsplash_factory: InteractiveInkFeatureFactoryselected_row_color: Colorunselected_widget_color: Colordisabled_color: Colorsecondary_header_color: Colortext_selection_color: Colorcursor_color: Colortext_selection_handle_color: Colorbackground_color: Colordialog_background_color: Colorindicator_color: Colorhint_color: Colorerror_color: Colortoggleable_active_color: Colorfont_family: Stringtext_theme: TextThemeprimary_text_theme: TextThemeaccent_text_theme: TextThemeinput_decoration_theme: InputDecorationThemeicon_theme: IconThemeDataprimary_icon_theme: IconThemeDataaccent_icon_theme: IconThemeDataslider_theme: SliderThemeDatatab_bar_theme: TabBarThemetooltip_theme: TooltipThemeDatacard_theme: CardThemechip_theme: ChipThemeDataplatform: TargetPlatformmaterial_tap_target_size: MaterialTapTargetSizeapply_elevation_overlay_color: boolpage_transitions_theme: PageTransitionsThemeapp_bar_theme: AppBarThemescrollbar_theme: ScrollbarThemeDatabottom_app_bar_theme: BottomAppBarThemecolor_scheme: ColorSchemedialog_theme: DialogThemetypography: Typographysnack_bar_theme: SnackBarThemeDatabottom_sheet_theme: BottomSheetThemeDatadivider_theme: DividerThemeDatatime_picker_theme: TimePickerThemeDatatext_selection_theme: TextSelectionThemeDatadata_table_theme: DataTableThemeDatacheckbox_theme: CheckboxThemeDataradio_theme: RadioThemeDataswitch_theme: SwitchThemeDataprogress_indicator_theme: ProgressIndicatorThemeDatafix_text_field_outline_label: booluse_text_selection_theme: boolTrait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ThemeData
impl !Send for ThemeData
impl !Sync for ThemeData
impl Unpin for ThemeData
impl !UnwindSafe for ThemeData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.