WIP: Application Menu applet
AbandonedPublic

Authored by broulik on Oct 25 2016, 4:17 PM.

Details

Reviewers
None
Group Reviewers
Plasma: Design
Plasma
Summary

This restores the global app menu applet you can place in your panel.

Test Plan

Pretty much WIP, it's using a QStringList instead of a current model right now :D
Also the keyboard nav stuff with event filter doesn't fully work but it's usable already. Sometimes gets confused about which menu to use and goes blank, or clicking the same entry again after the menu closed doesn't work for some reason.

I have no idea how to deal with keyboard activation, however, and I don't recall how that worked in Plasma 4. I don't see how we could transfer Alt+F to e.g. "File" (and apparently Unity doesn't even do that?). There's an activation request signal which looks like it's for this exact purpose but I've never actually seen anybody emit it.

Only thing I could think of would be an Alt modifier only global shortcut that passes focus to the menu bar (forcing focus on the panel) and then you can navigate there using keys, or so.

To allow ToolButtons to shrink in a way they do I had to add a Layout.fillWidth: true for the ToolButtonStyle's label component. It's doing verticalAlignment: Text.AlignVCenter already which does nothing without a size anyway.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik updated this revision to Diff 7654.Oct 25 2016, 4:17 PM
broulik retitled this revision from to WIP: Application Menu applet.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added reviewers: Plasma, Plasma: Design.
broulik set the repository for this revision to R120 Plasma Workspace.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 25 2016, 4:17 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik edited the test plan for this revision. (Show Details)Oct 25 2016, 4:20 PM

Our users will be very happy about this being back!
I agree that there needs to be some way to access it via keyboard. Pressing alt to shift keyboard focus to the menu bar sounds like a good idea, if pressing alt again shifts it back to the window content again.

broulik abandoned this revision.Jan 5 2017, 5:29 PM

Superseded by D3706