subspace / space-acres

Space Acres is an opinionated GUI application for farming on Subspace Network
53 stars 20 forks source link

[$100 USDC] Implement Tray icon support on Windows #141

Closed EmilFattakhov closed 3 months ago

hunjixin commented 3 months ago

which function tray icon need, just hide to try icon and click to show app page?

nazar-pc commented 3 months ago

I think hiding to tray icon is the first step, having some menu on it would be a bonus. Because tray icon is not supported we resort to minimizing an app instead.

hunjixin commented 3 months ago

just do some investment with this issue, other existing libraries do not support GTK4, for windows, it may be possible to implement the bind system call (https://github.com/rodrigocfd/winsafe/blob/b6337f6c6a145877f014de98f656141b60484f7c/src/shell/funcs.rs#L220), but it will be more complicated for Linux(not know much). so i want to confirm if it is necessary to use GTK3 to build this application?

nazar-pc commented 3 months ago

so i want to confirm if it is necessary to use GTK3 to build this application?

I think you meant GTK4? If so then GTK4 doesn't have support for tray icon, meaning I have no idea how you'd use it.

The goal ultimately is to support tray icon, if you find a library that is not GTK-specific, it is still fine to use overall, but ideally we wouldn't call raw Windows APIs directly.

hunjixin commented 3 months ago

i think i can do archive close and open in windows in my early code. will try in my ubuntu later. but sorry for mac, no mac machine