GTK3 backend has a blurry taskbar icon on HiDPI display

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ancwrd1
In need of some credit
In need of some credit
Posts: 5
Joined: Mon Jan 18, 2021 1:08 pm

GTK3 backend has a blurry taskbar icon on HiDPI display

Post by ancwrd1 »

Running a sample "taskbar" application under Plasma KDE (openSUSE Tumbleweed), wxWidgets built from sources for GTK3 backend.
The icon looks blurry unless I set "GDK_SCALE=2" (in which case the icon is ok but the text is too large).

See attached pictures.
Is it a known issue or something that should be reported as a bug?

P.S. Don't know if this is relevant but the font size in Plasma settings is set to 125 DPI.
Attachments
Normal icon, GDK_SCALE=2
Normal icon, GDK_SCALE=2
normal-with-gdk-scale.png (5.38 KiB) Viewed 1356 times
Blurry icon, no special flags
Blurry icon, no special flags
blurry.png (7.26 KiB) Viewed 1356 times
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: GTK3 backend has a blurry taskbar icon on HiDPI display

Post by ONEEYEMAN »

Hi,
What version of wxWidgets do you use?
Whats exact version of GTK?
Can you try with latest Git master?

Thank you.
ancwrd1
In need of some credit
In need of some credit
Posts: 5
Joined: Mon Jan 18, 2021 1:08 pm

Re: GTK3 backend has a blurry taskbar icon on HiDPI display

Post by ancwrd1 »

That was actually with a latest git master (well, from 1 or 2 days ago).

GTK 3.24.24-1.1, as per "zypper if libgtk-3.0".

configure command:

Code: Select all

../wxWidgets/configure --enable-monolithic --enable-stl --enable-webview --enable-cxx11 --disable-tests --disable-debug_flag --disable-compat30
"LD_LIBRARY_PATH=../../lib ldd ./taskbar" output:

Code: Select all

        libwx_gtk3u-3.1.so.5 => ../../lib/libwx_gtk3u-3.1.so.5 (0x00007f8ae2ebf000)
        ...
        libgtk-3.so.0 => /usr/lib64/libgtk-3.so.0 (0x00007f24f5eb0000)
        libgdk-3.so.0 => /usr/lib64/libgdk-3.so.0 (0x00007f24f5daf000)
        libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007f24f5d9c000)
        libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007f24f5d49000)
        libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007f24f5c75000)
        libatk-1.0.so.0 => /usr/lib64/libatk-1.0.so.0 (0x00007f24f5c4b000)
        libcairo-gobject.so.2 => /usr/lib64/libcairo-gobject.so.2 (0x00007f24f5c3f000)
        libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007f24f5b0a000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0 (0x00007f24f5ae1000)
        ...
GUI looks fine with proper text scaling, it's only the taskbar icon which seems to be downscaled for some reason.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: GTK3 backend has a blurry taskbar icon on HiDPI display

Post by ONEEYEMAN »

Hi,
Try to send an e-mail to the wx-users ML, where you can reach core wx developers.

Or you may just create a ticket at trac.wxwidgets.org.

This forum is for users by users.
Post Reply