mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Add Frame::group for putting a frame around some widgets
Closes https://github.com/emilk/egui/issues/125
This commit is contained in:
@@ -104,8 +104,7 @@ impl Widgets {
|
||||
ui.label(format!("The button has been clicked {} times.", self.count));
|
||||
});
|
||||
|
||||
ui.separator();
|
||||
{
|
||||
egui::Frame::group(ui.style()).show(ui, |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("Drag this value to change it:");
|
||||
ui.add(DragValue::f64(&mut self.sliders.value).speed(0.01));
|
||||
@@ -122,7 +121,7 @@ impl Widgets {
|
||||
.show(ui, |ui| {
|
||||
self.sliders.ui(ui);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user