forked from zzag/material-decoration
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
- Format mnemonics
- Figure out how to detect when
decoration->windowIdchanges so I can updateAppMenuModel->winIdas KWin reuses the decorations I think. It will sometimes show the menu for Dolphin over top a SublimeText window. - Refactor to use
QMenuBaror implement:- Switch submenu on Hover.
DecoratedButton::hoverEnterEvent
- Switch submenu on Left/Right Arrow.
- Open Submenu on Shortcut.
- SublimeText has mnemonics, and opens app submenus at the top left of the window (relative
(0,0)). So I'll probably need to adjust the position during anaboutToOpensignal or something. Or update it's position duringupdateButtonGeometry. - The shortcut opens the LIM submenu instead of the Global Menu in Sublime Text, which is a good sign.
- Decorations don't recieve KeyEvents afaik. So it's not possible to detect Alt pressed. I don't think it's possible to detect a menu shortcut either. Gtk menus open (in the wrong spot), but Qt menus don't at all.
- SublimeText has mnemonics, and opens app submenus at the top left of the window (relative
- Display mnemonics when holding
Alt. - Create an overflow menu when there isn't enough room for all menu items (Issue [Bug] Menu overflow #10)
- Open menu on press instead of click.
- Switch submenu on Hover.
- Filter empty menu items without a label (Gtk apps 1st item).
- Re-enable drawing the caption, using a gradient when covered by the appmenu.
- Fix all menu items disabled
- Window does not get focused when menu is clicked (Issue Window does not get focus back when clicking on app menu buttons #3)
- Note this affect the AppIcon and default AppMenu buttons too.
- Fix invisible hitbox over the first menu item that triggers the menu overflow button.
Features
- Hide menu on model windows.
fabianski7 and alitajelsir
Metadata
Metadata
Assignees
Labels
No labels