8000 Inconsistent icon scaling in Systray widget · Issue #5054 · qtile/qtile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ qtile Public
  • Notifications You must be signed in to change notification settings
  • < 8000 a icon="repo-forked" id="fork-button" href="/login?return_to=%2Fqtile%2Fqtile" rel="nofollow" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"repo details fork button","repository_id":47476,"auth_type":"LOG_IN","originating_url":"https://github.com/qtile/qtile/issues/5054","user_id":null}}" data-hydro-click-hmac="89bff260f79bd11a910c48bfec021f2d6e720984a1b8b3b76cf60ed200fb3baf" data-view-component="true" class="btn-sm btn"> Fork 713

Inconsistent icon scaling in Systray widget #5054

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

Open
2 tasks done
holocronweaver opened this issue Oct 22, 2024 · 10 comments
Open
2 tasks done

Inconsistent icon scaling in Systray widget #5054

holocronweaver opened this issue Oct 22, 2024 · 10 comments

Comments

@holocronweaver
Copy link
Contributor
holocronweaver commented Oct 22, 2024

Issue description

Some of my Systray icons are not scaling as expected, with some remaining very small no matter the icon size I specify.

Screenshot_20241022_122329

Not sure if #2438 is related.

Version

0.1.dev5550+g4b4b936

Backend

X11 (default)

Config

widget.Systray(
     icon_size=int(32 * dpi_scaling),
     padding=30,
),

Logs

None that I know of that would be useful, but happy to provide if someone has a suggestion.

Required

  • I have searched past issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@elParaguayo
Copy link
Member

Qtile does not scale Systray icons, these are provided by the apps. Some apps scale, others just provide the icon nearest the requested size.

We can't do anything about this.

@holocronweaver
Copy link
Contributor Author

That makes sense. However, KDE is able to scale these icons (like the Signal icon on far left, which is on far right of above screenshot):

Screenshot_20241022_201447

What is KDE doing to scale icons that Qtile is not?

Perhaps KDE is scaling icons beyond the size provided by their app to force them to fit the desired scale? If so, could Qtile do this as well?

For hidpi screens it seems preferable to scale all icons to the same size, regardless of what size the app provides, so that the icons remain visible even if that means introducing some aliasing. Or at least it could be a toggle?

@elParaguayo
Copy link
Member

It's that an x11 system tray or is the StatusNotifier that?

If it is a system tray then there's something we're missing. If it's StatusNotifier then we can absolutely scale the icons. They're different widgets with different specs.

@holocronweaver
Copy link
Contributor Author
holocronweaver commented Oct 24, 2024

I use X11 in both KDE and Qtile. So the above screenshots are the Qtile Systray widget and KDE 5.27.11 X11 system tray.

@elParaguayo
Copy link
Member

Interesting... I can try to look at their code then and see what they do then but I am surprised as qtile does not draw those icons, we just tell the apps what size we want. Hopefully it's a case of us just missing something simple.

@elParaguayo
Copy link
Member

This is where we looked at the issue before: #2948

I'm also suspicious that the KDE system tray is using the StatusNotifier spec as there's far more code related to that in their source.

Copy link

This issue is stale because it has been open 90 days with no activity. Remove the status: stale label or comment, or this will be closed in 30 days.

@holocronweaver
Copy link
Contributor Author
holocronweaver commented Jan 22, 2025

Worth noting that GNOME 3 using X11 in Ubuntu 22.04 did not have this scaling issue either, and it uses the application provided icons. So proper scaling isn't unique to KDE. Here is its source code: https://github.com/ubuntu/gnome-shell-extension-appindicator

Copy link

This issue is stale because it has been open 90 days with no activity. Remove the status: stale label or comment, or this will be closed in 30 days.

@holocronweaver
Copy link
Contributor Author
holocronweaver commented Apr 22, 2025

Currently the apps I use that are effected include Dropbox, redshift-qt, and the KDE keyboard layout switcher. So maybe just Qt apps effected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0