Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] eww systray draws its own menus rather than letting the applications draw their own menus #1081

Open
3 tasks done
victorz opened this issue Apr 22, 2024 · 2 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@victorz
Copy link

victorz commented Apr 22, 2024

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

The systray widget seems to draw its own menus, whereas I would like it to let the program draw its own menus instead, if that makes sense. I'm not sure how it all works, but I have a couple of video clips I can show to demonstrate.


Apologies if this should be a feature request instead(?). Let me know if so and I'll do my best to convert it to one.

Reproducing the issue

Use the systray widget somewhere, and right-click an icon to bring up their menu. Preferably some program that renders a custom menu, e.g. Telegram Desktop.

Here's a video clip to show what it looks like with eww's systray widget.

eww_systray.mp4

Expected behaviour

Here's a video of stalonetray, and I am right-clicking the Telegram icon to bring up its menu -- seemingly a custom menu rendered by Telegram itself, rather than stalonetray.

stalonetray.mp4

Additional context

Anyway, I'm super stoked to have this functionality in eww! This is just great! 🙂 👏

@victorz victorz added the bug Something isn't working label Apr 22, 2024
@cry0x11
Copy link

cry0x11 commented Apr 25, 2024

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

The systray widget seems to draw its own menus, whereas I would like it to let the program draw its own menus instead, if that makes sense. I'm not sure how it all works, but I have a couple of video clips I can show to demonstrate.

Apologies if this should be a feature request instead(?). Let me know if so and I'll do my best to convert it to one.

Reproducing the issue

Use the systray widget somewhere, and right-click an icon to bring up their menu. Preferably some program that renders a custom menu, e.g. Telegram Desktop.

Here's a video clip to show what it looks like with eww's systray widget.

eww_systray.mp4

Expected behaviour

Here's a video of stalonetray, and I am right-clicking the Telegram icon to bring up its menu -- seemingly a custom menu rendered by Telegram itself, rather than stalonetray.

stalonetray.mp4

Additional context

Anyway, I'm super stoked to have this functionality in eww! This is just great! 🙂 👏

Have you tried to remove all: unset; at the top of the default SCSS file?

* {
    all:unset;
}

Removing it will revert back to the default GTK style from your theme (unless you already styled the systray menus). It's not exactly what you are asking for, but better than nothing.

If you wish to style it yourself, I wrote about my attempt to style it with radio buttons, check boxes and sub-menu arrows visible, please refer to my comment here #1067 (comment)

@victorz
Copy link
Author

victorz commented Apr 27, 2024

Have you tried to remove all: unset; at the top of the default SCSS file?

* {
    all:unset;
}

Removing it will revert back to the default GTK style from your theme (unless you already styled the systray menus). It's not exactly what you are asking for, but better than nothing.

If you wish to style it yourself, I wrote about my attempt to style it with radio buttons, check boxes and sub-menu arrows visible, please refer to my comment here #1067 (comment)

Yes, I've tried without that unset. (I never had one to begin with.)

I don't think the Telegram menu is GTK though? It's a custom menu drawn by Telegram, surely? Did you take a look at the video clips?

I see you wrote it's not really what I'm asking for. No, it isn't. 😅 I really wish it would let the apps decide on their menus. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants