https://bugs.kde.org/show_bug.cgi?id=400422
--- Comment #11 from Mauro Carvalho Chehab <mchehab+sams...@kernel.org> ---
Created attachment 117472
  --> https://bugs.kde.org/attachment.cgi?id=117472&action=edit
Screenshot with Qt scale equal to 3

(In reply to Patrick Silva from comment #10)
> Created attachment 117467 [details]
> kaffeine 2.0.16 on Arch Linux
> 
> Bug persists in kaffeine 2.0.16.

Are you sure it is not getting low resolution bitmaps due to some problem at
the icon theme you're using?

Kaffeine 2.0.16 now has the proposed fix:

   src/main.cpp:   app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);

On my local tests here with 2.0.16, several icons aren't pixelized with the
theme I'm currently using.

You can double-check what icon files it is getting with:

   $ strace -e openat kaffeine 2>tmp
   $ grep icon tmp|grep -v .theme |grep -v ENOENT|grep -E "\.(png|svg|gif|jpg)"

On my tests here, using Adawita theme with has several.svg scalable icons and
using:

   $ LANG=C QT_SCALE_FACTOR=3 strace -e openat kaffeine 2>tmp

It is getting:
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/48x48/apps/kaffeine.png", O_RDONLY|O_CLOEXEC) =
25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/64x64/apps/kaffeine.png", O_RDONLY|O_CLOEXEC) =
25
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 25
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/48x48/actions/edit-clear.png", O_RDONLY|O_CLOEXEC) =
31
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 34
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 34
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 34
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 34
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 34
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 34
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/48x48/places/start-here.png", O_RDONLY|O_CLOEXEC) =
35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/48x48/actions/media-skip-backward.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/48x48/actions/media-playback-start.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/48x48/actions/media-playback-stop.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/48x48/actions/media-skip-forward.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/256x256/status/audio-volume-medium.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/actions/player-time.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/actions/player-time.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/actions/player-time.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/256x256/mimetypes/video-x-generic.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/share/icons/Adwaita/256x256/devices/media-optical.png",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/devices/video-television.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/devices/video-television.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/devices/video-television.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 35
        openat(AT_FDCWD,
"/usr/local/share/icons/hicolor/scalable/apps/kaffeine.svg",
O_RDONLY|O_CLOEXEC) = 35

As you can see from the screenshot, scalable icons aren't pixelized. Of course
the ones that come from a low-res PNG file (like the play icon that was loaded
from /usr/share/icons/Adwaita/48x48/actions/media-playback-start.png) are
pixalized, but this is a problem with the theme I chose and not with
Kaffeine/Qt5.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to