

That is important, because the way themes work has slightly changed between those versions.įor applications which use Gtk-3, Gnome 3 offers a gtk-application-prefer-dark-theme-entry in it’s settings.ini-file, which tells all Gtk-3 apps to use the dark version of the currently set theme (if available, for example the Gnome 3 default-theme, “Adwaita”). Now, the wxGTK port is not completely up to date, so it doesn’t use Gtk-3, but the (older) Gtk-2. So, on Linux, Code::Blocks uses Gtk for it’s GUI. So, to get a dark theme in Code::Blocks, you need a dark-theme for the whole desktop environment? Yes and no.Ĭode::Blocks for Linux is explicitly created with the wxGTK port, meaning that the wxWidgets API is wrapped around the Gtk API. This is equivalent to whatever the desktop environment thinks is right. That is due to the fact that (for portability) Code::Blocks GUI is build using wxWidgets, which offers a “native look & feel on every platform”. All credits go to original finder of the workaround. I will now reproduce it here, in case the link disappears. I found an answer at the following link: įor me, a Linux Mint user, the system-wide version didn't work.
