Expose additional properties in the Theme class, including new color scheme options and a predictive page transition. Enhance theme classes with post-initialization checks and refactor color handling to use ColorValue. Introduce a new DropdownMenuTheme class and improve the SliderControl component.
New Features:
Introduce new PREDICTIVE option in PageTransitionTheme.
Add new properties to ColorScheme such as on_primary_fixed, primary_fixed_dim, and surface_bright.
Implement DropdownMenuTheme class with menu_style and text_style properties.
Enhancements:
Refactor ColorScheme to use ColorValue type for color properties.
Add __post_init__ methods to various theme classes to ensure properties are dictionaries keyed by ControlState.
Enhance SliderControl to handle disabled state and refactor interaction and overlay color parsing.
Summary by Sourcery
Expose additional properties in the
Theme
class, including new color scheme options and a predictive page transition. Enhance theme classes with post-initialization checks and refactor color handling to useColorValue
. Introduce a newDropdownMenuTheme
class and improve theSliderControl
component.New Features:
PREDICTIVE
option inPageTransitionTheme
.ColorScheme
such ason_primary_fixed
,primary_fixed_dim
, andsurface_bright
.DropdownMenuTheme
class withmenu_style
andtext_style
properties.Enhancements:
ColorScheme
to useColorValue
type for color properties.__post_init__
methods to various theme classes to ensure properties are dictionaries keyed byControlState
.SliderControl
to handledisabled
state and refactor interaction and overlay color parsing.