Under KDE you usually can't see the font (white font on white background) and the buttons are oversized. All in all, the IDE looks quite strange under KDE. In light mode you can see the labels again, but the display still looks strange.
I have the same problem on Fedora 42 KDE.
Under XFCE, Gnome, Cinnamon, no problem.
I tried Lazarus under some other more recent KDE distros (Neon, Kubuntu, Mageia, Manjaro, MX) without this problem.
I tried to install KDE on Fedora Worstation edition (Gnome)... same problem.
I tried to install some stable dark themes for Gtk, Qt and Plasma,... problem is still here. I suspect that coud be a problem with Plasma 6 + Wayland
The dark mode of KDE has no problem under other soft. No problem on old GTK interface like the one of GNATstudio or Dia or LibreCAD.
NOTE:
on Fedora scientific KDE version 39, Lazarus ignores the dark theme. So on version 42 its a little bit better, but pretty unusable.
I tried to use Wayland and X11 on verion 39: no differences.
So I thought that problem origin is Fedora and not Lazarus, but it seems that is more complicated.
I think that the Manjaro and Arch teams may have an explanation because apparently they have compiled Plasma with some options.
For now the only 2 options I found is
- use Fedora with XFCE.
- use Fedora KDE with ligth theme.