mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-01 06:06:49 -06:00
Integration: #1406 preview_dropdown 4-argument form
This commit is contained in:
@@ -312,7 +312,8 @@ fn paint_corner_shape(p: &egui::Painter, r: Rect, shape: CornerShape, c: egui::C
|
||||
|
||||
/// A corner shape picker's face: the shape's glyph and the dropdown arrow (the menu is the caller's).
|
||||
pub(crate) fn corner_shape_button(ui: &mut Ui, shape: CornerShape, width: f32) -> egui::Response {
|
||||
preview_dropdown(ui, width, |p, r| paint_corner_shape(p, r, shape))
|
||||
// The caller names the control (widget_info) once it knows the corner.
|
||||
preview_dropdown(ui, width, "", |p, r| paint_corner_shape(p, r, shape, egui::Color32::BLACK))
|
||||
}
|
||||
|
||||
pub(crate) fn corner_type_dropdown(app: &mut DesignApp, ui: &mut Ui, shape: CornerShape, size: f64, width: f32) {
|
||||
|
||||
Reference in New Issue
Block a user