RGB colour values of one of the Windows 10 background solid colours

For everything that's not in any way related to PureBasic. General chat etc...
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

RGB colour values of one of the Windows 10 background solid colours

Post by PBJim »

Would anyone know how I can obtain the RGB values that Microsoft has used for the marked "solid colour" background in Windows 10 below?

It isn't a programming requirement — I've been trying to get just the right colour in some documents and this forest green is the colour I want.

Image
Last edited by PBJim on Thu May 23, 2024 7:59 pm, edited 2 times in total.
User avatar
spikey
Enthusiast
Enthusiast
Posts: 769
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: RGB colour values of one of the Windows 10 background solid colours

Post by spikey »

You can capture the desktop with the PrtSc button (or possibly Alt-PrtSc, I can't remember which it is on W10 anymore).

If you have something like Paint.net or Gimp installed they will have colour picker tools which transfer the selected pixel colour from a loaded image into the colour tool. From there you should be able to read the RGB values. (They are both free to download and use if you don't have them, if you've not used either before I recommend Paint.net because I found the learning curve easier).

Alternatively, if you don't want a download, you can do something similar on the https://color.adobe.com/ website, follow the link to "Extract Themes & Gradients".
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: RGB colour values of one of the Windows 10 background solid colours

Post by PBJim »

Good point Spikey, I have Paint Shop Pro which includes that type of tool, but I couldn't think of a way of getting the image into it. Actually I find that when I use Windows Snip, it distorts colours quite a lot, so I haven't really trusted it. I'll try Alt-PrtScn then instead.

Thanks :D
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: RGB colour values of one of the Windows 10 background solid colours

Post by PBJim »

Thanks, I have the colour now.
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: RGB colour values of one of the Windows 10 background solid colours

Post by PBJim »

Following on from this, is it practical to use PureBasic to change the pixels in a PNG from one RGB to another RGB? It could save me a day's time re-doing a new colour in a batch of PNG files :(
infratec
Always Here
Always Here
Posts: 7618
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: RGB colour values of one of the Windows 10 background solid colours

Post by infratec »

AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: RGB colour values of one of the Windows 10 background solid colours

Post by AZJIO »

PBJim wrote: Thu May 23, 2024 7:58 pm Following on from this, is it practical to use PureBasic to change the pixels in a PNG from one RGB to another RGB? It could save me a day's time re-doing a new colour in a batch of PNG files :(
The question is not clear. You can use xnconvert to process multiple files by adding processing rules. Gimp has tools for changing Saturation, brightness, and tone.
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 278
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: RGB colour values of one of the Windows 10 background solid colours

Post by DeanH »

Last week I spent two days making adjustments to deal with color changes in Windows 11 vs. 10.

I do this using Paint. I keep a copy of the old MS Paint program from 2008. I'm even using it in Win 11. (The current Paint program will do, too. I just prefer using the old one.) Alt+PrtScn to grab the window with the focus or PrtScn to get the whole screen. Paste into Paint. Use the Color Picker tool (dropper) to pick up the color at a speciific spot, then open the color selection dialog. The RGB values are displayed. Using this approach, I have worked out the default color changes introduced in each version of Windows. Win 11 pushbuttons are lighter than the default Window background color, but darker in Win 10 and darker again in older versions. If I use the SetWindowColor() to change a window's background color, buttons (ButtonGadget) can show a light color rectangle around them just outside the darker border. It is the same as the standard window color, which is different in Win 11 from 10. Other gadgets can be affected this way, too.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: RGB colour values of one of the Windows 10 background solid colours

Post by AZJIO »

I'm using a reg file to change the color
User avatar
idle
Always Here
Always Here
Posts: 5896
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: RGB colour values of one of the Windows 10 background solid colours

Post by idle »

A bit late, but 3 seconds of your life

Code: Select all

hdc = GetDC_(0) 
Delay(3000)
Global pt.point,col 
GetCursorPos_(@pt) 
col = GetPixel_(hdc,pt\x,pt\y)
SetClipboardText("$"+Hex(col))
MessageRequester("color","$"+Hex(col)) 
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: RGB colour values of one of the Windows 10 background solid colours

Post by PBJim »

idle wrote: Fri May 24, 2024 8:18 am A bit late, but 3 seconds of your life
That's fantastic, thanks Idle. Not late at all, I'd already found the colour of the desktop using my old Paint Shop Pro, but this is just so easy — addictive even.

It's definitely going to be a permanent item in my toolkit. :D
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: RGB colour values of one of the Windows 10 background solid colours

Post by PBJim »

Thanks to all for the replies.
DeanH wrote: Thu May 23, 2024 11:40 pm Last week I spent two days making adjustments to deal with color changes in Windows 11 vs. 10.
DeanH, I know what you mean about colour changes — nothing to do with this really, but a system application I'm working on is console-based and I noticed when using Windows 11 that Microsoft has changed most of the console colours, completely disregarding the former colour effects chosen by developers like us. The combinations used in the application no longer look good — their new colours are watery/lacking in definition.

Image
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 278
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: RGB colour values of one of the Windows 10 background solid colours

Post by DeanH »

Yes, I saw that, too. I've been having to put in IF OSVersion()>110 to deal with it. Like this for the colour of tabs.
TABCOL=#White ;Win 10 tab panel colour
If OSVersion()>110 ;Win 11 tab panel colour
TABCOL=RGB(249,249,249)
EndIf

Same for the Window colour which went from #White to RGB(244,244,244). Pushbuttons are now 253 instead of 240, although GetSysColor_ still returns the previous values.
Post Reply