Even if it's fixed in wxWidgets, to won't help Code::Blocks much because it will take ages for the change to make it to stable distributions. On top of that, distros refuse to package wx 3.1 because the API is not stable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry. I forgot the patch.
@bluehazzard Is this patch OK?
Probably, I'll apply it soon.
This doesn't work for wxGTK wx-master and gtk2. The link colour is black for me.
What is the version of wxGTK and GTK you're using?
Last edit: Teodor Petrov 2020-04-17
It is not surprising given the code in src/gtk/settings.cpp in wx-master looks like this:
@fuscated Sorry. I tested it only on GTK3 where the color is as expected. Will it be OK to set
wxBLUE
for GTK2 andwxSYS_COLOUR_HOTLIGHT
for GTK3?Someone should check the situation on the other two platforms - MSW and Cocoa.
Or someone should patch wxWidgets, to fix GTK there...
Last edit: Teodor Petrov 2020-04-18
In MSW 10 the change works OK, no difference
Ok, it seems it is not too hard to fix https://github.com/wxWidgets/wxWidgets/pull/1805
Even if it's fixed in wxWidgets, to won't help Code::Blocks much because it will take ages for the change to make it to stable distributions. On top of that, distros refuse to package wx 3.1 because the API is not stable.
This is true. On wxCocoa the color returned by this is white when using the dark theme. So it seems broken there, too. :(