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

Make text copyable #8

Open
sowbug opened this issue Jun 26, 2023 · 1 comment
Open

Make text copyable #8

sowbug opened this issue Jun 26, 2023 · 1 comment

Comments

@sowbug
Copy link
Contributor

sowbug commented Jun 26, 2023

I have a feeling that I'm asking for this at the wrong layer in the stack, but it would be really nice if users could double-click a toast and copy it to the clipboard. The use case is an app popping up an error message, and the user probably wants to report it or at least search for the same message on the web. Thanks.

@urholaukkarinen
Copy link
Owner

You can currently accomplish this by using custom toast contents, but I suppose this could also be implemented to the default toasts.

toasts.custom_contents(MY_CUSTOM_TOAST, |ui, toast| -> egui::Response {
    // draw your toast contents here
})

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

No branches or pull requests

2 participants