clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.77k stars 677 forks source link

Bad Rasterization for NoCover Icon with Breeze Theme (default KDE theme) #5578

Open anderlia opened 7 years ago

anderlia commented 7 years ago

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

System information

Please provide information about your system and the version of Clementine used.

Expected behaviour / actual behaviour

I noticed the following issue when using Clementine with KDE neon or Kubuntu. The bitmap that is displayed as default cover art by Clementine when no cover art is set for a song is in very low resolution and thus has a very bad looking > screenshot_20170104_170246 screenshot_20170104_170327

I remember some nice audio CD box picture being displayed in high resolution as default cover art, but I guess that this bitmap picture is superseded with the default breeze theme used by KDE neon or Kubuntu distribution package. Do you know which icon png/svg file is used for that default cover art so as I can change it?

Steps to reproduce the problem (only for bugs)

Open Clementine and play a song for which no cover art is set so as Clementine falls back on the default cover art bitmap.

anderlia commented 7 years ago

I checked the source file (currentartloader.cpp) and it seems Clementine uses the 'nocover' icon, which if Breeze theme is used, links to /usr/share/icons/breeze/actions/24/nocover.svg. When I open this file, it is neatly displayed as a vector graphic, but in Clementine seems there are some pixel rasterization making the picture really bad looking > screenshot_20170105_121034

Here is a workaround to get the default nocover image from Clementine displayed instead of the one from the Breeze theme > remove all nocover.svg files in /usr/share/icons/breeze/actions/16 or 22 or 24/ directories (or change their file name), log out from your current KDE session, open a console and delete icon-cache.kcache file in /var/tmp/kdecache-$USER/ directory, and relog back into KDE. Open Clementine, and then clementine falls back on a neater bitmap > screenshot_20170105_125222

This workaround is to be repeated whenever 'breeze-icon-theme' package is installed/re-installed/updated.

P.S. I tried first to make a new directory /usr/share/icons/breeze/actions/64 (higher resolution), and copy the file nocontent.svg into it, log out, delete the icon cache, log back in and start Clementine > no success.