pub struct ButtonGroupDefaults;Expand description
Compose’s ButtonGroupDefaults: the spacing and shapes a group uses.
Implementations§
Source§impl ButtonGroupDefaults
impl ButtonGroupDefaults
Sourcepub const EXPANDED_RATIO: f64 = 0.15
pub const EXPANDED_RATIO: f64 = 0.15
The fraction of the pressed button’s width a press is allowed to add.
The group does not expand a pressed button (PORTING.md); this is the value Compose would use.
Sourcepub const BETWEEN_SPACE: f64 = 12.0
pub const BETWEEN_SPACE: f64 = 12.0
The default spacing between the buttons of a standard group.
Sourcepub const CONNECTED_SPACE_BETWEEN: f64 = 2.0
pub const CONNECTED_SPACE_BETWEEN: f64 = 2.0
The default spacing between the buttons of a connected group.
The shapes of the first button of a connected group at button_height.
The shapes of a middle button of a connected group at button_height.
The shapes of the last button of a connected group at button_height.
The three shapes of the first button of a connected group of small buttons.
The three shapes of a middle button of a connected group of small buttons.
The three shapes of the last button of a connected group of small buttons.