Christian Meissl
ce48fc9d0d
fix(tray): prevent widget buttons from piling up ( #788 )
...
each call to set_menu_widget registered a new event handler,
resulting in multiple popups to be created. each popup tried
to issue a grab with the same serial.
prevent this by disconnecting any previously registered handler.
2024-11-19 22:07:52 +00:00
f364bb64fb
fix(tray): tray icons not disappearing on close
2024-11-17 14:47:50 +00:00
5aa9f37fe4
fix(tray): menus not attaching to secondary bars
2024-11-17 14:47:42 +00:00
48dc65f60b
chore(tray): remove unneeded png image code
2024-11-17 14:47:15 +00:00
e4e9632caa
fix(tray): menu causing bar to lose focus on sway
...
BREAKING CHANGE: The `direction` option has been changed to only accept `horizontal` or `vertical`
2024-11-16 20:36:20 +00:00
30de23dc64
refactor(tray): switch over to libdbusmenu-gtk3
...
Also adds tooltips
2024-11-16 17:35:29 +00:00
cf38c37fe3
refactor(tray): move some debug logging to trace logging
2024-11-08 01:40:25 +00:00
486beff8a5
refactor: put in basic placeholders for menu icon diffs
2024-11-08 01:40:25 +00:00
662ddb6946
feat(tray): image support in menu items
2024-11-08 01:40:24 +00:00
fb1799531b
fix(tray): image updates lag 1 behind
2024-11-08 01:35:35 +00:00
e53a9067b0
fix(tray): cannot activate with mixed left/right click
...
Fixes #513
2024-11-05 13:20:34 +00:00
04f45ccae1
refactor: fix some pedantic clippy warnings
2024-08-14 21:26:40 +01:00
2bc741d197
fix(tray): crash when provided empty pixmap
...
Fixes #675
2024-08-04 13:40:05 +01:00
a9a32817e0
Revert "Fix Pango markup not escaped"
2024-06-02 17:42:18 +01:00
b8fdd8531e
refactor: explicitly use set_text
on non-pango labels
2024-06-02 15:23:46 +01:00
36d724f148
feat(config): json schema support
...
This PR includes the necessary code changes, CI changes and documentation to generate and deploy a full JSON schema for each release and the master branch, which can be used within config files for autocomplete and type checking.
2024-05-31 22:01:50 +01:00
c7743b28c6
docs: add rustdoc comments to all module options
...
This part of an upcoming effort to generate documentation from code.
Pushing this out before that stage so that the JSON schema is fully documented.
2024-05-23 21:46:33 +01:00
Robert Nelson
188abc33e9
fix(tray): icon colour channels are being incorrectly rendered
...
Converts from ARGB32 to RGBA32 formats when rendering tray Pixmaps
Fixes #546
2024-04-24 20:52:17 +01:00
9245188af7
refactor: better error handling for client initialization
2024-04-01 16:34:25 +01:00
1b35354272
refactor: fix clippy warnings
2024-04-01 16:33:38 +01:00
994f4a4a12
feat: ability to add custom modules instead native modules
...
Resolves #131
2024-04-01 15:01:37 +01:00
30b11db435
fix(tray): cannot activate menu options with right click
...
Fixes #513
2024-03-29 13:13:29 +00:00
ba004455b2
feat(tray): option to prefer theme-provided icons
2024-03-29 00:31:20 +00:00
004ea76da5
refactor(tray): complete client rewrite
2024-03-29 00:31:20 +00:00
5a3ba08ddd
Merge pull request #470 from JakeStanger/fix/tray
...
More tray fixes
2024-03-17 14:12:56 +00:00
86c5b69f18
refactor(tray): tidy imports
2024-03-14 22:35:55 +00:00
c62d47555e
fix(tray): submenus not working
...
Fixes a regression from previous tray fixes that caused submenus within
the main tray menu to never show.
Fixes #455
2024-02-25 20:57:36 +00:00
0675b917f2
fix(tray): icons ignoring scaling
2024-02-25 20:57:36 +00:00
72440e69c9
feat(tray): icon size setting
2024-02-25 17:13:28 +00:00
a55ba8c523
refactor: rename get_orientation
method to orientation
2024-02-18 14:57:29 +00:00
Rémi Labeyrie
b037a55fb7
feat(tray): add direction
option
2024-02-17 00:33:10 +01:00
133632d1ad
fix(tray): vastly improve rendering performance
2024-02-01 22:38:14 +00:00
4662f60ac5
refactor: move various clients to own folder
2022-11-06 23:38:51 +00:00
ff17ec1996
refactor: various changes based on rust 1.65 clippy
2022-11-06 22:53:48 +00:00
720ba7bfb0
Major module refactor ( #19 )
...
* refactor: major module restructuring
Modules now implement a "controller", which allows for separation of logic from UI code and enforces a tighter structure around how modules should be written. The introduction of this change required major refactoring or even rewriting of all modules.
This also better integrates the popup into modules, making it easier for data to be passed around without fetching the same thing twice
The refactor also improves some client code, switching from `ksway` to the much more stable `swayipc-async`. Partial multi-monitor for the tray module has been added.
BREAKING CHANGE: The `mpd` module config has changed, moving the icons to their own object.
2022-09-25 22:49:00 +01:00