1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Add Visuals::error_fg_color and Visuals::warn_fg_color

This commit is contained in:
Emil Ernerfeldt
2022-07-29 15:32:32 +02:00
parent 8c09804abd
commit 2612dd1064
6 changed files with 28 additions and 10 deletions

View File

@@ -443,7 +443,7 @@ impl Tree {
fn children_ui(&mut self, ui: &mut Ui, depth: usize) -> Action {
if depth > 0
&& ui
.button(RichText::new("delete").color(Color32::RED))
.button(RichText::new("delete").color(ui.visuals().warn_fg_color))
.clicked()
{
return Action::Delete;