icons: default to ambient text color when unset
This commit is contained in:
@@ -288,12 +288,12 @@ impl RenderOnce for Button {
|
||||
.when_some(self.label, |content, label| content.child(label))
|
||||
.children(self.children)
|
||||
.when_some(self.icon, |content, icon| {
|
||||
content.child(icon.size(metrics.icon_size).color(foreground))
|
||||
content.child(icon.size(metrics.icon_size))
|
||||
})
|
||||
} else {
|
||||
content
|
||||
.when_some(self.icon, |content, icon| {
|
||||
content.child(icon.size(metrics.icon_size).color(foreground))
|
||||
content.child(icon.size(metrics.icon_size))
|
||||
})
|
||||
.when_some(self.label, |content, label| content.child(label))
|
||||
.children(self.children)
|
||||
|
||||
Reference in New Issue
Block a user