-
Notifications
You must be signed in to change notification settings - Fork 4
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
tray icons #7
Labels
enhancement
New feature or request
Comments
Hi. It looks like Then you can create a To draw an icon, you will need to create a cairo_ctx.set_source_surface(&surface, x, y).unwrap();
cairo_ctx.paint().unwrap(); |
I see, thanks
…On Fri, 12 May 2023 at 12:32, Max Verevkin ***@***.***> wrote:
Hi.
It looks like stray uses tokio, so the first step would be to start using
tokio ourselves (which I used to do at some point but removed (91381b2
<91381b2>)
because it wasn't really necessary at that point).
Then you can create a tray module, in which you will keep track of the
tray state.
To draw an icon, you will need to create a Surface
<https://docs.rs/cairo-rs/0.17.0/cairo/struct.Surface.html>, and then
cairo_ctx.set_source_surface(&surface, x, y).unwrap();
cairo_ctx.paint().unwrap();
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIWNSZ3JQ2VZOL3VI6TBFOTXFXOBXANCNFSM6AAAAAAX7BPAX4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
So, a high-level plan can be
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm willing to work on this, can you tell me how to start? I found https://docs.rs/stray/0.1.3/stray/message/tray/struct.StatusNotifierItem.html which returns the icon name and/or the icon pixmap, how do I actually draw these?
The text was updated successfully, but these errors were encountered: