Page 1 of 1

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

Posted: Thu May 23, 2024 6:58 pm
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

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

Posted: Thu May 23, 2024 7:16 pm
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".

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

Posted: Thu May 23, 2024 7:22 pm
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

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

Posted: Thu May 23, 2024 7:36 pm
by AZJIO

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

Posted: Thu May 23, 2024 7:42 pm
by PBJim
Thanks, I have the colour now.

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

Posted: Thu May 23, 2024 7:58 pm
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 :(

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

Posted: Thu May 23, 2024 9:33 pm
by infratec

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

Posted: Thu May 23, 2024 10:53 pm
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.

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

Posted: Thu May 23, 2024 11:40 pm
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.

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

Posted: Fri May 24, 2024 12:28 am
by AZJIO
I'm using a reg file to change the color

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

Posted: Fri May 24, 2024 8:18 am
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)) 

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

Posted: Fri May 24, 2024 10:27 am
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

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

Posted: Fri May 24, 2024 11:07 am
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

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

Posted: Sun May 26, 2024 11:50 pm
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.