-
Notifications
You must be signed in to change notification settings - Fork 12
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
System tray icons #6
Comments
Ah, interesting. I actually don't know the best way to set icons without hard-coding the path... Making the icons customizeable would certainly be one way to do it though. Any chance you might be able to submit a PR? I'd be happy to review! |
Absolutely. I was thinking of either one of three solutions.
Any preference? Also, I must admit, I've only been writing rust for like 3 days, so this might take a couple of attempts :) |
I think maybe the nicest thing would be to have accounts be an array of tables, so that the (single) configuration file ends up looking like this: [icons]
empty = "/usr/share/icons/Faenza/categories/scalable/applications-mail.svg"
# ...
[[account]]
name = "personal"
server = "imap.gmail.com"
port = 993
username = "jon@gmail.com"
pwcmd = "gnome-keyring-query get gmail_pw"
[[account]]
name = "work"
server = "imap.outlook.com"
port = 993
username = "jon@outlook.com"
pwcmd = "pass outlook_pw" |
Ah, cool, did not know this was a thing. Sounds like a plan 👍 |
Feel free to submit a draft PR and I'll try to guide you along if you want :) |
Currently we're using |
Ooooh, that'd be neat! |
Unfortunately,
|
Yeah, the whole system tray story on Linux in particular is a mess at the moment. There's some ongoing work to standardize, but it looks like many of the toolkits are pseudo-dropping libappindicator without a real replacement being available. I'd be okay switching over to something else, especially if it lets us abstract away from the choice! I'd prefer to not hard-code our own icons and instead use the ones from the user's theme — that at least feels like a more sane default. But maybe we can allow users to override the icons in the config? |
I'd love to do this, sadly the icons we want are a little rare in themes found in linux and if found, they are used by other apps such as
If we do this, we can always fallback to our hard-coded icons if there is no user-icon provided or not existed. |
Yep |
I recently added Buzz to my system and so far I've really liked it.
I noticed that the icons in the system tray were not showing up. It looks like it's because the icons are hardcoded and are not installed on my system. Now I'm thinking of the best way of making these icons configurable, and so far the best solution I've come up with it making a special category in
config.toml
that is not an account but instead defines the location of the icons.What do you think?
The text was updated successfully, but these errors were encountered: