forked from reya/gpui-native-kit
add toast
This commit is contained in:
@@ -179,11 +179,7 @@ impl RenderOnce for Button {
|
||||
.text_color(foreground)
|
||||
.when_some(a11y_label, |button, label| button.aria_label(label))
|
||||
.when_some(self.icon, |button, role| {
|
||||
button.child(
|
||||
icon(role)
|
||||
.size(f32::from(metrics.icon_size))
|
||||
.color(foreground),
|
||||
)
|
||||
button.child(icon(role).size(metrics.icon_size).color(foreground))
|
||||
})
|
||||
.when_some(self.label, |button, label| button.child(label))
|
||||
.when(self.disabled, |button| button.opacity(0.5))
|
||||
|
||||
Reference in New Issue
Block a user