add checkbox

This commit is contained in:
2026-10-28 18:21:19 +07:00
parent 5cbffe8172
commit 2422f318a8
4 changed files with 46 additions and 1 deletions
+3
View File
@@ -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.),
}
+1
View File
@@ -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.));
}
}