Author Topic: Dark Mode  (Read 1880 times)

Offline bad_terminal

  • Single posting newcomer
  • *
  • Posts: 6
Dark Mode
« on: November 09, 2025, 04:03:44 pm »
I've no idea how many people use dark mode for programming, but lately i've noticed my eyes are getting strained by staring at the constant white glare from my screen while using codeblocks. Is there a Dark Mode switch in 25.03?

Offline Михаил Агарков

  • Single posting newcomer
  • *
  • Posts: 7
  • Highly sensitive programmer.
    • Codeberg
Re: Dark Mode
« Reply #1 on: November 09, 2025, 04:12:47 pm »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6118
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Dark Mode
« Reply #2 on: November 09, 2025, 04:45:15 pm »
That github repo has the latest changes in 2 years ago. I'm not sure the current status. Currently the official wx 3.3.1 is already released for months.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline bad_terminal

  • Single posting newcomer
  • *
  • Posts: 6
Re: Dark Mode
« Reply #3 on: November 10, 2025, 10:25:23 am »
So no button then.  :(

Not that it matters much anyway, i've uninstalled 25.03 as it was using so much cpu my PC fans kept ramping up.

So that it doesn't appear that i'm spamming the forum, i'll ask another question in here:- On 20.03 I enable code completion in toolbar, and remove browsetracker, then I save everything, save workspace, but upon restart, browsetracker is back in toolbar, and code completion is not. Very frustrating. I there a fix?

edit:So I managed to do this by editing a file in user/codeblocks dir named browsetracker. For some reason it then saved 'code completion' on the toolbar. Weird. All I have to do now is make it remember my preferred zoom (font size). Unfortunatley every time I've tried it in the past, it fails, and also changes the font in the editor. I can then never find the default font that codeblocks uses. Does anyone know what the default font is?

btw ollydbg, I like your bit of advice in your sig, i'll have to remember it!
Thanks.
« Last Edit: November 10, 2025, 10:54:17 am by bad_terminal »

Offline FrankPeelo

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Dark Mode
« Reply #4 on: Yesterday at 02:22:02 pm »
I got editing with a dark background. There is still a lot of white or light grey on the screen - menu bars etc. - but if the editing window is dark at least I can hope that the light is not being focussed on my macula. Especially if I double-click the editor file tab to make the editor window bigger.

Biggest problem is, to know what you want. Last time I coded with a dark background, the text was green because that was the colour of the phosphor, so figuring out what colours I wanted was awkward. (In the end I copied some of Notepad++.)

First thing I tried, not sure I needed to do this but... it was the advice at
https://stackoverflow.com/questions/69165313/how-to-change-or-add-dark-theme-to-codeblocks
So that starts with downloading a color_themes.conf from
https://gist.github.com/yzhong52/6852140faa233408de67
and installing it.

After that, I was able to select a theme in Settings | Editor | Syntax highlighting.

But then I went changing colours that I didn't like... in the end, I think I changed most of the colours which is why I'm not sure that I needed the color_themes.conf file. I had Notepad++ on another machine, and I mostly copied the colours from the theme I was using there. I had the GIMP (Other Apps Are Available) to pick colours off the screen and tell me what they were in hex. In C::B, in the syntax highlighting settings, I click Default or Comment or whatever it is, click the Foreground colour on the right, click Custom, put the hex number in.

Maybe there would be an easier way that experts would know, but that was enough for me. I'm on Linux so I don't think the "experimental dark IDE for Windows" link would be for me.