-
-
Notifications
You must be signed in to change notification settings - Fork 36
Replace tooltip with popover #441
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
Conversation
9d94242 to
73ea874
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This looks very promising! Thanks for taking this on :) I left some comments on the code. Also I think we should copy the tooltip style from the stylesheet. If you need any help on this, I'll be happy to help
|
Thanks for the feedback! I created another commit with the suggested changes. As for the styles I tried to compile the styles from https://github.com/elementary/stylesheet and copy the resulting CSS. However, I was not able to make it match the appearance of the tooltips. Is there any way to open the GTK inspector for the dock to investigate this further? |
|
Unfortunately there's no way to open Gtk inspector because the dock has no focus, so using shortcut doesn't work, and setting You can find the source scss here and read more about popover css nodes here |
|
I haven't checked out this branch yet, but I looked at this a while ago and as far as styles, you can use |
578d7fa to
8e5cd25
Compare
|
Cool, using the There is still one issue, which I am unable to solve: the tooltip styling is not applied to the popover of the 'multitasking view' launcher. The popover is shown and hidden as expected, it just has the default popover styling and I don't know why. I have seen the following error in the logs, which was already present before my changes, but I am unsure if this is related or not: |
8e5cd25 to
648308f
Compare
|
The issue is that |
|
@lenemter did you test this for both X and Wayland? I had problems with this solution previously. Haven't had time to pull this branch yet but just wanna make sure it's tested on both before being merged |
648308f to
e2195ff
Compare
|
@lenemter, I have integrated your changes and rebased the branch once more. Thanks for your patience! I only tested this PR under X as the dock doesn't start for me at all under Wayland. and the following error when running the app directly with debug messages enabled: But these errors are likely unrelated to this PR as they also occur when running the code of the current main branch. |
|
@sebastianlay On wayland the dock requires development version of gala |
e2195ff to
a338fe2
Compare
|
@lenemter, nice, building gala from source did the trick for me. And I can confirm that this PR also works in a 'Secure Session' now. I have also removed the reference to the motion_controller as suggested. @danirabbit, I had the same issue with the leave event being triggered immediately under X and I solved it by setting |
This is an idea on how to solve the issue of unreadable tooltips (#422) by replacing them with nicer popovers.
I wasn't sure how to add the required padding without affecting the already existing popover for the menu and so I added a custom CSS class. This could probably be solved more elegantly.
Fixes #422
Fixes #324
Fixes #29
Closes #206