add checkbox
This commit is contained in:
@@ -55,6 +55,8 @@ impl Global for Theme {}
|
||||
/// Corner radii components paint from; grows one class at a time.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct Radius {
|
||||
/// Small controls: checkbox and radio indicators.
|
||||
pub sm: Pixels,
|
||||
pub control: Pixels,
|
||||
/// Pill and circle shapes.
|
||||
pub full: Pixels,
|
||||
@@ -63,6 +65,7 @@ pub struct Radius {
|
||||
impl Default for Radius {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
sm: px(4.),
|
||||
control: px(6.),
|
||||
full: px(9999.),
|
||||
}
|
||||
|
||||
@@ -221,6 +221,7 @@ mod tests {
|
||||
assert_eq!(resolved.colors.accent, base.accent);
|
||||
assert_eq!(resolved.ramps.primary.base, base.primary);
|
||||
assert_eq!(resolved.ramps.secondary.base, base.secondary);
|
||||
assert_eq!(resolved.radius.sm, px(4.));
|
||||
assert_eq!(resolved.radius.control, px(6.));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user