1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Use Grid to add labels to the color picker sliders

Also improve the color preview in the color picker
This commit is contained in:
Emil Ernerfeldt
2021-01-13 23:00:56 +01:00
parent 63d3e9e70b
commit 73d16eb771
3 changed files with 104 additions and 53 deletions

View File

@@ -22,7 +22,7 @@ impl Default for WidgetGallery {
radio: Enum::First,
scalar: 42.0,
string: "Hello World!".to_owned(),
color: egui::Color32::LIGHT_BLUE,
color: (egui::Rgba::from(egui::Color32::LIGHT_BLUE) * 0.5).into(),
}
}
}