scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
478 stars 17 forks source link

SNI implementation for tray icons #12

Closed scorpion-26 closed 1 year ago

scorpion-26 commented 1 year ago

Implementation for SNI (StatusNotifierItem) d-bus protocol for tray icons.

Note: This is currently very WIP

Things that need to be done until it is ready for merging into master:

Full implementation will close https://github.com/scorpion-26/gBar/issues/5

scorpion-26 commented 1 year ago

All major features regarding the dbus protocol are now implemented. The styling for the context menu for tray icons is currently very much broken. The window of the menu is always 200x200, which creates nasty blank space when the background is opaque (I left it transparent for now) and can cause clipping for long menu items (e.g. long names of steam games). This is probably a bug in libdbusmenu-gtk and there is no hope trying to fix it. Since context menus work functionally I'll complete and merge this PR and then try to look into ways to implement the context menu myself.