Old 12-05-2014, 02:40 PM   #1
Andrii
Human being with feelings
 
Join Date: Dec 2014
Location: Ukraine
Posts: 5
Default .reapertheme colours

Hi guys! I nead some help with .reapertheme colours. I can't understand how they work. E.g. "region_lane_text=2434847". How do those nombers create a dark grey colour? WALTER uses red-grean-blue-alpha method, but .reapertheme seams like it doesn't
Can anybody explain how those numbers create particular color?
Andrii is offline   Reply With Quote
Old 12-05-2014, 03:34 PM   #2
Mr. Data
Human being with feelings
 
Mr. Data's Avatar
 
Join Date: Sep 2008
Location: Location
Posts: 5,328
Default

Hi Andrii and welcome to the forums!

The number is the decimal equivalent of a hexadecimal value that describes the color. If you convert the decimal number '2434847' to a hex value, you get 0x25271F. (The '0x' indicates, that the following number is a hex-value.)
This hex-value 0x25271F describes the color in three bytes, where the first byte (0x25) describes the brightness of the blue color portion, the middle byte (0x27) describes the green color portion's brightness and the last (right) byte (0x1F) is for the red part of the color. Since all bytes don't differ too much from each other and at the same time are quite low (values range from 0x0 to 0xFF), you get a dark grey that might have a very slight touch of cyan ie. green, (but that might not even be visible).

If you for instance would change the number 0x25271F into 0x2527FF and convert it to decimal, you'd get 2435071, which would color the element bright red.

The easiest way to change the colors would be to set them in "Options -> Preferences -> Appearance -> Theme Editor" though.


-Data
__________________
German Language Pack for REAPER? Get it here! ... Donate? Yeah!! | Are you nuts? | Maybe
Deutsche Sprachdatei für REAPER? Hier zu haben! ... Spenden? Klar! | Spinnst wohl!? | Vielleicht
Mr. Data is offline   Reply With Quote
Old 12-06-2014, 01:35 AM   #3
Andrii
Human being with feelings
 
Join Date: Dec 2014
Location: Ukraine
Posts: 5
Default

Quote:
Originally Posted by Mr. Data View Post
Hi Andrii and welcome to the forums!

The number is the decimal equivalent of a hexadecimal value that describes the color. If you convert the decimal number '2434847' to a hex value, you get 0x25271F. (The '0x' indicates, that the following number is a hex-value.)
This hex-value 0x25271F describes the color in three bytes, where the first byte (0x25) describes the brightness of the blue color portion, the middle byte (0x27) describes the green color portion's brightness and the last (right) byte (0x1F) is for the red part of the color. Since all bytes don't differ too much from each other and at the same time are quite low (values range from 0x0 to 0xFF), you get a dark grey that might have a very slight touch of cyan ie. green, (but that might not even be visible).

If you for instance would change the number 0x25271F into 0x2527FF and convert it to decimal, you'd get 2435071, which would color the element bright red.

The easiest way to change the colors would be to set them in "Options -> Preferences -> Appearance -> Theme Editor" though.


-Data
Thanks man! You are awesome
Andrii is offline   Reply With Quote
Old 12-07-2014, 01:00 PM   #4
Andrii
Human being with feelings
 
Join Date: Dec 2014
Location: Ukraine
Posts: 5
Default

Quote:
Originally Posted by Mr. Data View Post

The easiest way to change the colors would be to set them in "Options -> Preferences -> Appearance -> Theme Editor" though.


-Data
When I do that, my .reapertheme file isn't saved. I press "Save theme" in the Theme editor and it doesn't work. There is no new .reapertheme file
Help!!! PLEASE!!!
Andrii is offline   Reply With Quote
Old 12-07-2014, 01:34 PM   #5
xpander
Human being with feelings
 
xpander's Avatar
 
Join Date: Jun 2007
Location: Terra incognita
Posts: 4,705
Default

What do you mean by it not working? Don't you get the Save Theme window where you get to decide with what name and where you will save your edited theme?
xpander is online now   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 10:44 AM.


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