Old 05-01-2013, 05:26 PM   #1
LCipher
Human being with feelings
 
LCipher's Avatar
 
Join Date: Apr 2008
Posts: 2,036
Default RGB / decimal in .ReaperTheme

Ok - stupid question but I can't find it. How do I convert hex or RGB to the col code in the .ReaperTheme file?


ie
how do I convert an RGB to the value for: docker_unselface=2500132
LCipher is offline   Reply With Quote
Old 05-02-2013, 01:21 AM   #2
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

Quote:
Originally Posted by LCipher View Post
Ok - stupid question but I can't find it. How do I convert hex or RGB to the col code in the .ReaperTheme file?


ie
how do I convert an RGB to the value for: docker_unselface=2500132
Would like to know that, too.
witti is offline   Reply With Quote
Old 05-02-2013, 01:37 AM   #3
MichaJo
Human being with feelings
 
MichaJo's Avatar
 
Join Date: Oct 2008
Location: Germany
Posts: 1,772
Default

I think it's simply a conversion from RGB to HEX and vice versa.
Whereas i don't understand the 7th digit...

Example:
RGB 37 0 19
HEX 250013


Edit: That was wrong. It's the decimal value of the HEX value.
Decimal: 2500132
HEX: 262624
RGB: 38 38 36

Last edited by MichaJo; 05-02-2013 at 01:45 AM.
MichaJo is offline   Reply With Quote
Old 05-02-2013, 02:02 AM   #4
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

Thank you !
witti is offline   Reply With Quote
Old 05-02-2013, 02:40 AM   #5
MichaJo
Human being with feelings
 
MichaJo's Avatar
 
Join Date: Oct 2008
Location: Germany
Posts: 1,772
Default

If you don't want to use converters you can do a little math:

R*256*256 + G*256 + B

Example:
R 38
G 38
B 36

38*256*256 + 38*256 + 36

2490368 + 9728 + 36 = 2500132
MichaJo is offline   Reply With Quote
Old 05-02-2013, 04:16 AM   #6
LCipher
Human being with feelings
 
LCipher's Avatar
 
Join Date: Apr 2008
Posts: 2,036
Default

Quote:
Originally Posted by MichaJo View Post
If you don't want to use converters you can do a little math:

R*256*256 + G*256 + B

Example:
R 38
G 38
B 36

38*256*256 + 38*256 + 36

2490368 + 9728 + 36 = 2500132
That's what I THOUGHT it would be. I used PAINT.NET to get the HEX of the RGB and then converted to dec, but the color that showed up in the theme did not match what I selected. I selected a light gray, and the color came out a dusty pink.


Also, is there a list of what all the colors go to? Some are pretty cryptically named.... I know there is a list of image/elements on the WALTER sdk page, is there on for colors?

.

Last edited by LCipher; 05-02-2013 at 04:44 AM.
LCipher is offline   Reply With Quote
Old 05-02-2013, 08:34 AM   #7
Win Conway
Human being with feelings
 
Join Date: Dec 2010
Posts: 3,826
Default

Where exactly are you finding these 7 digit color numbers in the theme file ?

set trans.status.color [255 0 0 255]

That is a Reaper color definition in the rtconfig and is just RGBA

If you are opening the .reapertheme file for editing i really have to ask why ?
Reaper has a an editor built directly into the application for that called theme colors in prefs
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
Win Conway is offline   Reply With Quote
Old 05-02-2013, 09:03 AM   #8
MichaJo
Human being with feelings
 
MichaJo's Avatar
 
Join Date: Oct 2008
Location: Germany
Posts: 1,772
Default

Quote:
Originally Posted by LCipher View Post
...I selected a light gray, and the color came out a dusty pink...
Strange. I never have built an own theme not to mention WALTERed anything. But having read about it when Reaper started using WALTER i was pretty sure those colors are calculated the way i've described.

Quote:
Originally Posted by LCipher View Post
...Also, is there a list of what all the colors go to? Some are pretty cryptically named.... I know there is a list of image/elements on the WALTER sdk page, is there on for colors?

.
See above. I don't know.
MichaJo is offline   Reply With Quote
Old 05-02-2013, 11:32 AM   #9
LCipher
Human being with feelings
 
LCipher's Avatar
 
Join Date: Apr 2008
Posts: 2,036
Default

Quote:
Originally Posted by gpunk_w View Post
If you are opening the .reapertheme file for editing i really have to ask why ?
Reaper has a an editor built directly into the application for that called theme colors in prefs

Im creating my own them, hence the ".reapertheme". I have used the 'prefs' and I can change the color to what I want, but that's not edit MY .reapertheme file -where does THAT color get written to?

Or are you saying to use the prefs to edit the colors?


Edit: ah, I see. I was not "Saving" the theme after editing in the prefs. So it's wasn't saving the value in my .reapertheme file. I'll use that - thanks.


.

Last edited by LCipher; 05-02-2013 at 12:14 PM.
LCipher is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.