pub struct ControlStyle {
pub background: Color,
pub border: Color,
pub checked_background: Color,
pub checked_foreground: Color,
pub disabled_background: Color,
pub disabled_border: Color,
pub toggle_off: Color,
pub slider_track: Color,
pub slider_range_active: Color,
}Expand description
表单控件(Checkbox / Radio / Toggle / Slider)的控件令牌,由 Astryx token 推导(见 ThemeData::from_tokens)。
Fields§
§background: Color未选中控件底色(color-background-control-default)
border: Color控件描边(color-border-control-default)
checked_background: Color选中底色(color-background-control-checked)
checked_foreground: Color选中前景(对勾 / 圆点颜色)
disabled_background: Color禁用底色(color-background-control-disabled)
disabled_border: Color禁用描边
toggle_off: ColorToggle 关闭态轨道(color-background-toggle-default)
slider_track: ColorSlider 轨道底色(color-background-slider-track-default)
slider_range_active: ColorSlider 拖拽中已填充段(color-background-slider-range-active)
Trait Implementations§
Source§impl Clone for ControlStyle
impl Clone for ControlStyle
Source§impl Debug for ControlStyle
impl Debug for ControlStyle
Source§impl PartialEq for ControlStyle
impl PartialEq for ControlStyle
impl StructuralPartialEq for ControlStyle
Auto Trait Implementations§
impl Freeze for ControlStyle
impl RefUnwindSafe for ControlStyle
impl Send for ControlStyle
impl Sync for ControlStyle
impl Unpin for ControlStyle
impl UnsafeUnpin for ControlStyle
impl UnwindSafe for ControlStyle
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
Mutably borrows from an owned value. Read more