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