celeste icon indicating copy to clipboard operation
celeste copied to clipboard

add dark mode tray icon for plasma desktop

Open tazihad opened this issue 2 years ago • 7 comments

icon color isn't right for plasma desktop. Screenshot_20230221_111213

tazihad avatar Feb 21 '23 05:02 tazihad

Hmm on my machine running kubuntu 23.10 all I see is a black box; no icon at all even

Screenshot_20231113_181710

elydpg avatar Nov 13 '23 23:11 elydpg

The icon @tazihad is referring to is Celeste's old icon @elydpg. There was a point where even the old icon had a black box on Plasma iirc, and I guess the behavior got introduced again somehow. I'll look into the SVG files that are used there and see what I can find.

hwittenborn avatar Nov 19 '23 01:11 hwittenborn

Hmm on my machine running kubuntu 23.10 all I see is a black box; no icon at all even

Screenshot_20231113_181710

I'm experiencing the same issue on kubuntu 22.04

wokawoka avatar Dec 16 '23 17:12 wokawoka

The black box issue seems to be with Qt SVG, used by KDE Plasma for displaying SVG.

According to https://doc.qt.io/qt-5/svgrendering.html:

Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported.

Exporting the files with BoxySVG fixed the problem: Screenshot_20231221_124818 To make SVGs adapt to your system colors, you can follow this: https://develop.kde.org/docs/plasma/theme/theme-colors/ Screenshot_20231221_125231 Screenshot_20231221_142110

If someone wants to try it, just put these SVG files in ~/.local/share/icons/hicolor/symbolic/apps/ com.hunterwittenborn.Celeste.CelesteTrayLoading-symbolic.svg com.hunterwittenborn.Celeste.CelesteTraySyncing-symbolic.svg com.hunterwittenborn.Celeste.CelesteTrayWarning-symbolic.svg com.hunterwittenborn.Celeste.CelesteTrayDone-symbolic.svg

Clean the icon cache (~/.cache/icon-cache.kcache) and login again.

Tray icon should follow your system colors

kuunha avatar Dec 21 '23 15:12 kuunha

Hey @kturques, thanks for finding a fix! I don't think the issue is solely with QT's SVG engine, I'm pretty sure the current icons are just not adhering to some spec for tray icons as well (that was the issue with Celeste's previous tray icons at least).

I'm pretty sure https://github.com/hwittenborn/celeste/blob/develop/assets/celeste-symbolics-source.svg needs to be fixed (I guess just by running it through that program you used), and then all the icons should be able to just be re-exported and ready to go. If you know the workflow for that feel free to get it done, otherwise I'll try to tackle it soon.

hwittenborn avatar Dec 26 '23 21:12 hwittenborn

I'm getting the same black box tray icon for Celeste as a few others are. Running KDE Plasma 6 on wayland on Arch Linux. I tried the fix that @kuunha mentioned but I didn't even have a /symbolic/apps folder under .local/share/icons/hicolor. I created that, added the files and cleared the icon cache but still seeing a black box. I installed via flatpak so maybe that's why? 2024-04-01_13-40

Retrograde-i486 avatar Apr 01 '24 17:04 Retrograde-i486

Perhaps add "black box in tray (Plasma)" to the issue's title, it took me quite a while to find it. kuunha's files work perfectly!

savetier avatar Apr 02 '24 11:04 savetier