ToggleButtonStyle
An alias for ToggleStyle, together with the default style used by the ToggleButton component.
type ToggleButtonStyle = ToggleStyle
var default_toggle_button_style = ToggleButtonStyle(
image: default_toggle_button_image,
width: nil,
height: nil,
padding: EdgeInsets(horizontal: 18, vertical: 4),
font_family: default_font,
font_weight: ui.font_weights.normal,
italic: false,
text_size: 12,
text_colors: ToggleStateColors(
resting: Color(0xFFEEEEEE),
hovered: Color(0xFFEEEEEE),
pressed: Color(0xFFEEEEEE),
checked: Color(0xFFEEEEEE),
checked_and_hovered: Color(0xFFEEEEEE),
checked_and_pressed: Color(0xFFEEEEEE),
disabled: Color(0x3DEEEEEE),
checked_and_disabled: Color(0x3DEEEEEE),
),
text_alignment: ui.Alignment.center,
)
ToggleStyle is a shared type between ToggleButton and Switch. This means that the default style of the Switch can also be assigned to the
ToggleButtonand vice-versa.