Re: Blurry tray icons with hidpi GTK3



Hi;

The tray icon specification was written long before HiDPI was ever a twinkle in some engineer's eye, and has never supported scale factor negotiation. Additionally, icon sizes are pretty much hard coded by applications, so even if there were a way to specify multiple icons for different tray sizes or scaling factors, you would very likely still get blurry icons anyway.

Those are, incidentally, a few of the reasons why GTK deprecated GtkStatusIcon in the 3.0 API series - the other, major one being that Wayland does not have any additional protocol to define tray icons with menus and actions attached to them.

Ciao,
 Emmanuele.

On Friday, 14 October 2016, Dankles <me dankles com> wrote:
Team,
I'm having an issue with blurry tray icons using HiDPI GTK3. I've read to set GDK_SCALE=2 and GDK_DPI_SCALE=0.5 to get proper hidpi in GTK3 applications. This works and makes the GTK3 applications scale correctly, except for the tray icons. The tray icons actually scale fine without those environment variables set. One other HiDPI tweak I have set is "xrandr --dpi 192", otherwise programs like Xterm, dmenu and the WM won't scale.

Here are some screenshots:
- Without GDK_SCALE=2 and GDK_DPI_SCALE=0.5: https://i.imgur.com/e9xEQTe.png
I get good tray icons with some unscaled menu text. GTK3 applications themselves don't scale properly as expected.
- With GDK_SCALE=2 and GDK_DPI_SCALE=0.5: https://i.imgur.com/Qizd5cp.png
You can see blurry tray icons, but with properly scaled menu text. GTK3 applications scale as expected.

It seems to me like GDK_SCALE=2 and GDK_DPI_SCALE=0.5 is causing the already scaled tray icons to scale again. Is there something I can do to fix this? Is it a bug?

I'm running gtk 3.22.1 on arch linux. I'm using i3-wm, but I've seen this same issue on xmonad with trayer and on budgie desktop too for non-indicator tray icons. I'll also note that everything scales fine in gnome desktop on my hardware which is a Dell XPS 13 9350.

Best Regards,
Daniel A.




--
https://www.bassi.io
[@] ebassi [@gmail.com]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]