This is how to get Geany into light mode using KDE. My KDE is already in light mode so I am unsure why Geany opens in dark mode. Open the KDE menu and go to geany then right click > edit. Then click Applications tab at the top. In the line 'Environmental variables' add this
GTK_THEME=Breeze