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:
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user