Respect label_color for Buttons (#3469)

This PR makes `Button`s respect the `label_color` that is specified,
provided they are not disabled or selected.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-11-30 20:36:59 -05:00 committed by GitHub
parent 0441b4805a
commit 6d62e6c562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -79,7 +79,7 @@ impl RenderOnce for Button {
} else if self.base.selected {
Color::Selected
} else {
Color::Default
self.label_color.unwrap_or_default()
};
self.base.child(