-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
on-click and hover doesn't work on the group itself #3174
Comments
Your selector for that group should be However, the group should be a GtkBox and I don't know if they support box-shadow, while simple borders should work
That would obviously add an extra 4px padding to your group (probably what you are trying to avoid using the box-shadow). Now for the hover part, I couldn't make it work on the group selector, but note that
if you set If you need help targeting your css classes, run warbar with the GTK debug too:
Edit: forgot about the click event. I don't think the group even supports click events (which makes sense tbh), so you would probably have to set the same event on each individual modules inside your group. |
I don't see a clear and obvious reason why hover should not be working with groups. |
Forgot to update, but I've noticed my previous comment was wrong. Group was not using the GTK component of AModule, it had its own seperate override, so this is why. I made a PR, so maybe we will have this on whole groups as well soon. |
* feat(#3174): hover for whole group * fix: target eventbox for class also * fix: actually no reason to add handler, just override AModule * fix: actually remove existing handler as well drawer functionality still works from my testing. anything else to think abotu? * revert: keep id and class on original box * refactor: clang-format group.hpp * dev: try stop workflow
This issue is resolved as of latest release (0.10.3). Please close (or prove me wrong!), anyone who can. |
* feat(Alexays#3174): hover for whole group * fix: target eventbox for class also * fix: actually no reason to add handler, just override AModule * fix: actually remove existing handler as well drawer functionality still works from my testing. anything else to think abotu? * revert: keep id and class on original box * refactor: clang-format group.hpp * dev: try stop workflow
i have a group of modules and i wanted clicking any part of the group to send me to missioncenter
i tried just doing this but it didn't trigger when i clicked.
not a big deal because i can just do on-click on the individual modules
but then i tried to add a border to the group on hover:
and it doesn't trigger when i hover over it, unlike any normal module or the seperate modules in the group when i do this:
and i havn't found a way to trigger adding a border to the whole group from hovering on one of it's modules
idk if this is intended or not, if it is, is there some other way to get the same result? sorry if i'm being stupid i'm css noob lol
here is config and style.css
The text was updated successfully, but these errors were encountered: