Created attachment 177131 [details] Screenshot of part of the panel with time(normal) and date(black) on January 5th. SUMMARY Date of month in the calendar widget cannot be seen when using left side black panel. STEPS TO REPRODUCE 1. Put you panel on the left side of the screen. 2. Choose Breeze Dark or any other Plasma theme where the panel is dark. 3. Put the calendar widget on this panel and select "Show day of the month" OBSERVED RESULT Black text of day of the month on dark panel. EXPECTED RESULT White text of day of the month on dark panel. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Linux 41 Kinoite KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.9.0 Qt Version: 6.8.1 ADDITIONAL INFORMATION
This seems to be a combination of a bug and set of imperfect assumptions: Bug: the digit it too big; it should be scaled down to fit in the icon Imperfect assumption: the icon will not always have a large open white area in it since it's themable, which means a hardcoded black digit isn't ideal.
what icon theme is it?
i can reproduce black text over black icon with the papyrus icon theme, tough the day number seems to be always well sized and positioned
instead of an icon it should probably use custom graphics
it actually does, it's using a file called mini-calendar.svgz shipped by the applet itself. but yet the icon theme replaces it anyways: i suspect is an issue with Kirigami.Icon with absolute paths
It is the Kora Icon theme. You are right, with Breeze Icon theme it works perfectly, and shows the day correctly. It started about 3 month ago, so I suspected a KDE Bug.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1699
indeed, it is supposed to be a fixed svg that always make sense with it, but Kirigami::Icon was broken
Git commit b4e730c8fd7aaf514ee96b0b19217c88ee2188b5 by Marco Martin. Committed on 09/01/2025 at 15:01. Pushed by mart into branch 'master'. Icon: fix absolute icon paths QIcon::fromTheme() tries very hard to find an icon in the theme, even if is an absolute path, like /usr/share/myapp/foo.svgz, it will search in the current theme an icon called "foo" which is now what's expected when an abcolute path is passed. now when a file:// source or a qrc:// source are passed, build the QIcon with QIcon(path) instead of QICon::fromTheme(path) so the actual file is loaded M +5 -2 src/primitives/icon.cpp https://invent.kde.org/frameworks/kirigami/-/commit/b4e730c8fd7aaf514ee96b0b19217c88ee2188b5
That got reverted; re-opening. But it'll be fixed again in a better way once https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5064 is merged.
Git commit b647267e68a8b59daef4f9f6687805c088772781 by Marco Martin. Committed on 14/01/2025 at 09:21. Pushed by mart into branch 'master'. applets/calendar: Use KSvg for the calendar icon Kirigami::Icon will always be themed, even with absolute paths in this case we only want the svg shipped with the applet, so use KSvg directly M +8 -5 applets/calendar/package/contents/ui/main.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/b647267e68a8b59daef4f9f6687805c088772781
Git commit 6a23620c5efa93c88f5ef8e3916d44ba7db155ab by Marco Martin. Committed on 14/01/2025 at 09:44. Pushed by mart into branch 'Plasma/6.3'. applets/calendar: Use KSvg for the calendar icon Kirigami::Icon will always be themed, even with absolute paths in this case we only want the svg shipped with the applet, so use KSvg directly (cherry picked from commit b647267e68a8b59daef4f9f6687805c088772781) 4e0298e9 applets/calendar: Use KSvg for the calendar icon 1491a86f round to icon sizes Co-authored-by: Marco Martin <notmart@gmail.com> M +8 -5 applets/calendar/package/contents/ui/main.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/6a23620c5efa93c88f5ef8e3916d44ba7db155ab