Author Topic: No dark mode?  (Read 4838 times)

MyEyeballsAreSuffering

  • Guest
No dark mode?
« on: August 02, 2022, 09:07:34 am »
In the year 2022 AD I cannot comprehend how anyone can still expect people to stare at an all white screen for hours at a time. Why not just point the business end of a propane torch directly into users' eyeballs? Can anybody actually work like this??

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: No dark mode?
« Reply #1 on: August 02, 2022, 09:25:25 am »
I assume you are using windows?
Blame microsoft for not providing dark mode for win32 applications... We use native controls of windows and they do not support dark mode officially at the moment...
You always can use linux where dark mode is no problem ;)
There are black themes for the code editor...

Offline Krice

  • Almost regular
  • **
  • Posts: 150
Re: No dark mode?
« Reply #2 on: August 04, 2022, 07:01:54 am »
Can anybody actually work like this??

Yes. In fact I can only use light themes which is strange I guess. I like dark and also solarized themes, they look cool, but my eyes hurt if I try to use them. I have a long, long background in programming. I started with 8- and 16-bit computers back in 1980's and those had "dark" themes by default, although some computers like Commodore 64 has blue background. Then I got PC and used Turbo C++ default for years, it also has a dark blue background. But now I can't use anything else than light themes. My monitor settings are also not typical I think, I barely have any brightness, it's on very low value. That's how you don't have to stare at bright screen which is bad for your eyes anyway. Some people just blast the brightness and contrast settings through the roof, I don't know why.

Offline New Pagodi

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: No dark mode?
« Reply #3 on: December 27, 2022, 10:38:05 pm »
A pull request adding support for dark mode on windows was just merged into wxWidgets.  I thought that was nearly impossible, but it was done somehow.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: No dark mode?
« Reply #4 on: December 27, 2022, 11:43:12 pm »
insane... I really like it....
Man i wish i have more (at least some) time to work on codeblocks.... Maybe next week it will get better  :-\ ...

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: No dark mode?
« Reply #5 on: December 28, 2022, 09:35:01 am »
This is really a good news! Thanks New Pagodi for the sharing.

One question: does Win7 support dark mode? Or it is only a Win10 feature?
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 New Pagodi

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: No dark mode?
« Reply #6 on: December 28, 2022, 03:06:08 pm »
I could be wrong, but I think it will only be able to detect the system dark mode on windows 10 and above, but a programmer can set their app to use dark mode widgets on any system.

Offline PB

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: No dark mode?
« Reply #7 on: December 28, 2022, 07:02:29 pm »
One question: does Win7 support dark mode? Or it is only a Win10 feature?

There is no darkmode API support for the common controls until Windows 10 1809, wxWidgets require Windows 10 20H1:
https://github.com/wxWidgets/wxWidgets/blob/cd48a182c9980afbb73c04266342876fb511eea3/src/msw/darkmode.cpp#L99

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: No dark mode?
« Reply #8 on: January 08, 2023, 03:58:03 am »
Thanks for your two wx exports' help!

BTW: sorry for the late reply, I just recovered from COVID-19 infection.
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.