Dark mode

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 280
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Dark mode

Post by le_magn »

Please add dark mode for all windows, including the various debugger windows, Preferences etc..., light windows bother my eyes and I think many other users would prefer to have all parts of the windows with dark colors, thank you
Image
BarryG
Addict
Addict
Posts: 4160
Joined: Thu Apr 18, 2019 8:17 am

Re: Dark mode

Post by BarryG »

Can't be done because Win32 exes (which PureBasic creates) don't support dark mode. You can thank Microsoft.

The closest you'd get is if someone could show how to use the window magnifier API to make a window a realtime negative of itself, which I've seen other products do.
User avatar
jacdelad
Addict
Addict
Posts: 2000
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Dark mode

Post by jacdelad »

Shouldn't it be "easy" to integrate ChrisR's ObjectTheme into the editor?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
NicTheQuick
Addict
Addict
Posts: 1511
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Dark mode

Post by NicTheQuick »

I've got Darkmode in Linux. Just switch to the "Dark Mode" color scheme in the IDE settings. And of course also enabled your preferred dark mode in Linux too.
Isn't the same possible on Windows?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 280
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: Dark mode

Post by le_magn »

NicTheQuick wrote: Tue May 20, 2025 11:07 am I've got Darkmode in Linux. Just switch to the "Dark Mode" color scheme in the IDE settings. And of course also enabled your preferred dark mode in Linux too.
Isn't the same possible on Windows?
Yes, it change the editor color, tool panel color etc.. but all other part of the windows(windows border, menu, toolbar etc...) remain white/lightGrey, preferences windows remain of a lighter color, same for debugger windows, until a few years ago I never had a problem with light colors, but complicit with advancing age my eyes are not what they used to be and light colors bother me, and I don't think it's impossible to make windows appear dark colored, there must be a way through windows api
Image
User avatar
minimy
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Dark mode

Post by minimy »

Yes in linux work with dark theme too.
I put this post in whishlist section saying same (may 7)...

viewtopic.php?t=86881
If translation=Error: reply="Sorry, Im Spanish": Endif
threedslider
Enthusiast
Enthusiast
Posts: 393
Joined: Sat Feb 12, 2022 7:15 pm

Re: Dark mode

Post by threedslider »

+1 I would like to have a blue dark theme :shock: .
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 671
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Dark mode

Post by Kurzer »

I was just about to search for Dark mode in PB Editor (for Windows) as well.
So, I would like to echo that request and give a...

+1
PB 6.12 x64, OS: Win 11 24H2 x64, Desktopscaling: 150%, CPU: I7 12700 H, RAM: 32 GB, GPU: Intel(R) Iris(R) Xe Graphics | NVIDIA GeForce RTX 3070, User age in 2025: 57y
"Happiness is a pet." | "Never run a changing system!"
User avatar
Skipper
User
User
Posts: 44
Joined: Thu Dec 19, 2024 1:26 pm
Location: NW-Europe

Re: Dark mode

Post by Skipper »

As long as I'm not forced to use dark mode.... :wink:
User avatar
mk-soft
Always Here
Always Here
Posts: 6230
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Dark mode

Post by mk-soft »

Windows Standard Controls Not Supported Dark-Mode. Only DotNet Framework. Thanks Microsoft ...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
AZJIO
Addict
Addict
Posts: 2156
Joined: Sun May 14, 2017 1:48 am

Re: Dark mode

Post by AZJIO »

Is it about the IDE?
User avatar
kenmo
Addict
Addict
Posts: 2034
Joined: Tue Dec 23, 2003 3:54 am

Re: Dark mode

Post by kenmo »

Does any of this help? Microsoft article "Support Dark and Light themes in Win32 apps" from 2024...
https://learn.microsoft.com/en-us/windo ... ows-themes

It monitors the system colors and performs a basic "is this color dark" check to detect a dark theme.
This is something I've sort of done before, for example here: https://github.com/kenmo-pb/includes/bl ... STheme.pbi

Then you can apply a dark title bar, if appropriate, with DwmSetWindowAttribute(), something I've never done before.

Then... it pretty much ends there, they don't discuss ways to apply a dark theme to Win32 controls.
It seems roughly 1/3 to 1/2 of PB Gadget types support SetGadgetColor(), so a PB module could automatically adapt some gadgets, but not all, without some custom drawing it seems.
BarryG
Addict
Addict
Posts: 4160
Joined: Thu Apr 18, 2019 8:17 am

Re: Dark mode

Post by BarryG »

Good old Microsoft. What's the point of having a dark title bar only for Win32 apps, and not the entire window? Pointless.
Fred
Administrator
Administrator
Posts: 18167
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Dark mode

Post by Fred »

Properly supporting darkmode for Win32 is very difficult, I don't know why MS doesn't do it out of the box. The best way IMHO is to use a third party tool like https://github.com/ChGen/DarkEnforcer . This project has a DLL named DarkDll.dll which seems to do the hard job with a hook, may be it's possible to load it from a PB program and use it to add dark support.
Rinzwind
Enthusiast
Enthusiast
Posts: 685
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: Dark mode

Post by Rinzwind »

MS messed up big time with their GUI framework. Apple knows how to update and maintain its UI and keep it consistent across the OS and apps. MS? Nope. Every modern framework is an over-engineered inefficient mess. WinUI3 also goes nowhere and is not even usable from plain C.
Post Reply