application-title-bar icon indicating copy to clipboard operation
application-title-bar copied to clipboard

menu button

Open mojtaba82 opened this issue 1 year ago • 12 comments

Great job. If you add Global Menu either as a single button or fully integrated with the title of window, it would be great. Similar to what Unity used to do.

mojtaba82 avatar Mar 16 '24 00:03 mojtaba82

I don't wish to be the bearer of bad news but: https://github.com/antroids/application-title-bar/issues/10#issuecomment-1992273205

maverick74 avatar Mar 18 '24 16:03 maverick74

Yes, I don't see much sense in reimplementing the same functionality that Global Menu already has. I can see that it works well and maintained as part of Plasma Workspace project. The Global menu has only private QML API without any guarantees that it will not be changed or even removed. The other way would be copy-paste CPP plugin and include it to the widget, but I don't like this idea.

Are there any issues with using the both widgets on one panel?

antroids avatar Mar 18 '24 17:03 antroids

Are there any issues with using the both widgets on one panel?

If you mean Application-title-bar & Global menu, i had no problem with using them at the same time on the same panel (when i tried both...).

in fact, AFAIK you can even use multiple instances of the same widget in the same panel (i used this in plasma 5 a few years ago when there was a widget that had Window Control buttons and Global Menu AIO)

maverick74 avatar Mar 18 '24 17:03 maverick74

in fact, AFAIK you can even use multiple instances of the same widget in the same panel (i used this in plasma 5 a few years ago when there was a widget that had Window Control buttons and Global Menu AIO)

Yes, the widget could also be used as invisible spacer: #14

I can see the only issue with multiple screens, since Global Menu is showing for only active task.

antroids avatar Mar 18 '24 17:03 antroids

I don't use any of the widgets ATM because of that global menu effect i referenced when i switch between supported apps and unsupported ones...

It has a terrible effect and distracts me, keeping me from using it. Since i would need both to accomplish the effect i wanted, i don't use any (but i still keep an eye on application-title-bar because if GM gets that fixed i'll be using both)...

maverick74 avatar Mar 18 '24 18:03 maverick74

Yes, I don't see much sense in reimplementing the same functionality that Global Menu already has. I can see that it works well and maintained as part of Plasma Workspace project. The Global menu has only private QML API without any guarantees that it will not be changed or even removed. The other way would be copy-paste CPP plugin and include it to the widget, but I don't like this idea.

Are there any issues with using the both widgets on one panel?

I'm going to put the menu button between the app control buttons and the app title.

mojtaba82 avatar Mar 18 '24 20:03 mojtaba82

I'm going to put the menu button between the app control buttons and the app title.

I understand it's not perfect but, as a workaround, you can use 2 application-title-bar! One before and one after the global menu!

You'll still suffer the same problem I have, however!

(but yes, having an aio widget/having a global menu in application-title-bar would be great!)

all in all, it's @antroids call 🙂

maverick74 avatar Mar 18 '24 23:03 maverick74

An update regarding the global menu: the problem i referenced is going to get fixed (probably) in kde 6.0.3 due to be released next week.

maverick74 avatar Mar 20 '24 12:03 maverick74

Are there any issues with using the both widgets on one panel?

Hi,

It's not really an issue, but a UX advantage : when window controls and global menu are on the same panel like on Unity, the title is visible in the default state and the global menu replaces it on hover, allowing both to enjoy all the space, and specifically for the global menu, it doesn't have to either move horizontally or make empty space appear between apps.

Thanks

KaKi87 avatar May 08 '24 00:05 KaKi87

Maybe this fits to my proposal: https://github.com/antroids/application-title-bar/issues/31

Integrate the global menu into into a classic „left click“ menu on the title together with e.g. close/exit Function (because sometimes close/exit is missing for some applications) would be great.

MajorTomDE avatar May 10 '24 15:05 MajorTomDE

I can see the only issue with multiple screens, since Global Menu is showing for only active task.

@antroids perhaps you could modify your filtering code and pr it into plasma's global menu widget? image

Covkie avatar Aug 01 '24 07:08 Covkie

Are there any issues with using the both widgets on one panel?

Actually, the only issue is the limited horizontal space. Take a look at the images:

Image

This is a normal, "acceptable" state.

Image

and now the title + menu have pushed out to the right the rest of the panel widgets.

In general, the basic idea behind Unity behavior is that one doesn't need buttons + title and menu at the same time. If persons need to get an idea what application/documents they are working on, they look at the title. If persons need to perform some action available through the menu, they move their mouse/pointer over the title area and the title gets replaced with the menu. Thus we save a lot of horizontal space in the panel.

As an alternative to a "big integrated widget" one could imagine two (or even three as my current setup has) widgets, each reacting on mouse hover events: buttons + title get hidden, while menu gets drawn. While this solution is more flexible than the "big widget", it seems that the visually unattractive flickering is inevitable.

amorozov avatar Feb 16 '25 21:02 amorozov