forked from reya/gpui-native-kit
update
This commit is contained in:
@@ -121,7 +121,7 @@ impl RenderOnce for Checkbox {
|
||||
h_flex()
|
||||
.justify_center()
|
||||
.flex_none()
|
||||
.size(metrics.icon_size)
|
||||
.size(metrics.indicator_size)
|
||||
.rounded(theme.radius.sm)
|
||||
.border_1()
|
||||
.when(self.checked, |indicator| {
|
||||
@@ -129,7 +129,11 @@ impl RenderOnce for Checkbox {
|
||||
.bg(ramps.primary.base)
|
||||
.border_color(ramps.primary.base)
|
||||
.hover(|style| style.bg(ramps.primary.hover))
|
||||
.child(icon(IconRole::Check).color(colors.primary_foreground))
|
||||
.child(
|
||||
icon(IconRole::Check)
|
||||
.size(metrics.dense_icon_size)
|
||||
.color(colors.primary_foreground),
|
||||
)
|
||||
})
|
||||
.when(!self.checked, |indicator| {
|
||||
indicator
|
||||
|
||||
Reference in New Issue
Block a user