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: Brightness
visual_density: VisualDensity
primary_swatch: MaterialColor
primary_color: Color
primary_color_brightness: Brightness
primary_color_light: Color
primary_color_dark: Color
accent_color: Color
accent_color_brightness: Brightness
canvas_color: Color
shadow_color: Color
scaffold_background_color: Color
bottom_app_bar_color: Color
card_color: Color
divider_color: Color
focus_color: Color
hover_color: Color
highlight_color: Color
splash_color: Color
splash_factory: InteractiveInkFeatureFactory
selected_row_color: Color
unselected_widget_color: Color
disabled_color: Color
secondary_header_color: Color
text_selection_color: Color
cursor_color: Color
text_selection_handle_color: Color
background_color: Color
dialog_background_color: Color
indicator_color: Color
hint_color: Color
error_color: Color
toggleable_active_color: Color
font_family: String
text_theme: TextTheme
primary_text_theme: TextTheme
accent_text_theme: TextTheme
input_decoration_theme: InputDecorationTheme
icon_theme: IconThemeData
primary_icon_theme: IconThemeData
accent_icon_theme: IconThemeData
slider_theme: SliderThemeData
tab_bar_theme: TabBarTheme
tooltip_theme: TooltipThemeData
card_theme: CardTheme
chip_theme: ChipThemeData
platform: TargetPlatform
material_tap_target_size: MaterialTapTargetSize
apply_elevation_overlay_color: bool
page_transitions_theme: PageTransitionsTheme
app_bar_theme: AppBarTheme
scrollbar_theme: ScrollbarThemeData
bottom_app_bar_theme: BottomAppBarTheme
color_scheme: ColorScheme
dialog_theme: DialogTheme
typography: Typography
snack_bar_theme: SnackBarThemeData
bottom_sheet_theme: BottomSheetThemeData
divider_theme: DividerThemeData
time_picker_theme: TimePickerThemeData
text_selection_theme: TextSelectionThemeData
data_table_theme: DataTableThemeData
checkbox_theme: CheckboxThemeData
radio_theme: RadioThemeData
switch_theme: SwitchThemeData
progress_indicator_theme: ProgressIndicatorThemeData
fix_text_field_outline_label: bool
use_text_selection_theme: bool
Trait 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
.