UI: leave no gap between the rows of a menu
The app's item spacing left 4 px between two menu entries where neither highlighted and a click did nothing. Menus (context menus, the menu bar, menu buttons and their submenus) now use a menu style with no row gap and rows taller by that gap, so they keep their size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9a7d3e7699
commit
afaa4bdeeb
@@ -337,7 +337,7 @@ fn marker(app: &mut EffectcraftApp, ui: &mut egui::Ui, p: &egui::Painter, comp:
|
||||
ctx.data_mut(|d| d.remove::<(Option<u64>, usize, bool)>(drag_state_id()));
|
||||
app.session.history.merge_key = None;
|
||||
}
|
||||
resp.context_menu(|ui| {
|
||||
crate::widgets::context_menu(&resp, |ui| {
|
||||
let run = |ui: &mut egui::Ui, label: &str, cmd: &str, params: Value, app: &mut EffectcraftApp| {
|
||||
if ui.button(label).clicked() {
|
||||
if cmd == "dialog" {
|
||||
|
||||
Reference in New Issue
Block a user