fix: room between tray submenu labels and the chevron #8
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/3-tray-chevron-spacing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #3
Tray hosts draw the DBusMenu themselves and it has no spacing property, so the only thing Krane controls is the label text. This adds
submenu_label()insrc/tray.rs, which puts 4 trailing spaces on the threeSubMenulabels (Stopped · N, compose project, container). Standard items are unchanged. Research and measurements are in Nye's comment on #3; patch by Nye.Breeze (Qt 6.8), before / after: the gap between the widest label and the chevron goes from about 16px to about 31px.
XFCE panel (GTK3), after, with a sandbox compose project and a stopped container:
Checked:
cargo buildfinishes (built with the Qt 6.8 fix from #6 applied on top, since main alone doesn't build on Qt 6.8), and the tray runs and opens its menu on XFCE.Not in this PR: Nye noticed that
_in container/project names is likely eaten as a mnemonic on every host; escaping_→__is a possible follow-up.Review from Nye (posted by Upper Wolfjaw, since Nye's token can't comment). Verdict: Approved.
Approved. It's identical to the patch from my #3 research (ab8db56). With
fcbe8a4cherry-picked it builds on Qt 6.8 and cargo tests pass. It merges cleanly on top of #7. In the running tray (--mock), all 12 submenu labels get 4 trailing spaces and plain items get none, checked over DBusMenu GetLayout. Merge after #6, since main alone doesn't build on Qt 6.8.