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

Add custom tooltips #1014

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Add custom tooltips #1014

merged 1 commit into from
Feb 17, 2024

Conversation

Rayzeq
Copy link
Contributor

@Rayzeq Rayzeq commented Jan 17, 2024

Description

This PR add a widget named tooltiped, which is a widget that have eww widgets inside its tooltip instead of only text.

Usage

For example you can put an image inside a tooltip like this:

(tooltiped
    (image :path "/home/....")
    (label :text "example")
)

Showcase

This allow doing thing like this for example:
a

Checklist

  • All widgets I've added are correctly documented.
  • I added my changes to CHANGELOG.md, if appropriate.
  • The documentation in the docs/content/main directory has been adjusted to reflect my changes.
    This folder doesn't exist, I assume you mean docs/src, which I don't think I need to update.
  • I used cargo fmt to automatically format all code before committing

@elkowar elkowar merged commit d497726 into elkowar:master Feb 17, 2024
1 check passed
@elkowar
Copy link
Owner

elkowar commented Feb 17, 2024

Thanks! This is really cool!

@Rayzeq Rayzeq deleted the custom-tooltip-v2 branch February 19, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants