kotelnik / plasma-applet-active-window-control

Plasma 5 applet for controlling currently active window.
GNU General Public License v2.0
119 stars 18 forks source link

Allow application menu to collapse into button when there are too many items #68

Open Kishore96in opened 7 years ago

Kishore96in commented 7 years ago

Some applications have a lot of items in the menu bar, and when the application menu is used with such applications, the menu overflows into adjacent widgets, making some of the items not selectable (see screenshot) screenshot_20170420_180659 A better solution would be to detect the width of the menu, and collapse it into a dropdown menu if it is too wide to fit in the plasmoid.

Kishore96in commented 7 years ago

I forgot to mention that I am using this AUR package on Arch, last built on 19-04-2017.

michaldybczak commented 7 years ago

You can make a spacing between buttons smaller. Also, your clock area settings seem extremely wasteful. With such small screen as yours, you just couldn't afford it. You can also move some notification icons to hidden area. With some tweaks, your width estate should suffice. I can see how you can easily gain 1/4 of the width. Collapsing buttons wouldn't save that much.

At some point, you must decide what matters for you the most: windows buttons or overblown clock and additional widgets? I think it's not fair to ask a widget developer to adjust widget to you if you caused the issue all along (too many widgets on one panel and many settings that waste space).

kupiqu commented 7 years ago

It doesn't matter about the particularities of the user. I think it's a good idea in general. In principle an application could have a large list of menu items (that could be longer for a given font size than screen size perhaps even with no other widget in panel), and this would help.

But sure, we cannot expect a developer satisfies all our needs. We just let the dev know about user requests... Users telling other users that their requests are not fair, I think it's not fair... And I'm including myself here as not fair, as I am also doing it here ;-)

kupiqu commented 7 years ago

Thinking about it, best approach IMO would be to calculate available space to show buttons up to that space, but leaving a narrow space for an icon button to open in a submenu the remaining menu entries... That way extra clicks would only be needed for making accessible the buttons that would be hidden but not for the others that are visible.

I hope I was clear enough in what I meant :)

Perhaps that was the original idea of @Kishore96in :/