-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
servoshell: show a status bar tooltip when hovering over links #31747
Conversation
hey @delan . Can you review my PR. Guidance is appreciated. |
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.
It also seems that the first commit was from #31685. If it's possible it would be great if you could rebase the changes without that commit so that there are no conflicts.
The changes in this patch don’t match the description. For example, there is a new hovered_link field, but no status_text, and there are no changes to how we handle EmbedderMsg::Status. Have you pushed your latest changes?
In the Servo project, please avoid using honorifics like “sir” and “madam”. I understand this can be a cultural difference, but not everyone is comfortable being addressed that way, and your message would still read as polite without it. You can refer to people by name, @mention, or their pronouns, all of these are ok. |
Could you please post the error? |
follow is error I got after running
|
Did you change For the others, the errors are from the |
Hey @gterzian I am able to get rid of the first error. I will work on the remaining things too. I need a clarification about my approach. whether my approach is in the correct direction or not. I don't expect you to look at the complete code. Thanks for the help though. |
Good!
With regard to the overall approach, I will refer to @delan comment above:
Have those comments been addressed? |
No @gterzian I haven't pushed the latest changes. Because I am struck at what arguments to pass. Do you want me to push them. |
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.
The two methods take closures as arguments.
Hey @gterzian . I missed a simple thing. I updated it . Can you have look a at it. |
@MunishMummadi, before you push your code, I would suggest you to run |
Hey @sandeepB3 . I ran |
I would also suggest you to run |
I am closing this PR as it became too messy. If possible I will link my latest updated changes in a New PR |
Description
Adds functionality to show a status bar tooltip when hovering over links in the minibrowser. This PR watches for
EmbedderMsg::Status
events and keeps track of the current status value in theMinibrowser
. When the page has status text, an egui tooltip is displayed at the bottom left corner.Changes Made
status_text: Option<String>
to theMinibrowser
struct to store the current status text.Minibrowser
methods:queue_embedder_events_for_minibrowser_events
now listens forEmbedderMsg::Status
events and updates thestatus_text
accordingly.update
method to display a tooltip whenstatus_text
is present.ui.tooltip_at_rect
in theTopBottomPanel
show routine.Checklist
status_text
field inMinibrowser
struct.queue_embedder_events_for_minibrowser_events
to handleEmbedderMsg::Status
.update
to show a tooltip whenstatus_text
is present.TopBottomPanel
show routine.Related Issues
Closes #31690