Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Color Themes and Icon Sets

Reply
 
Thread Tools Display Modes
Old 02-28-2020, 08:18 PM   #1
Colox
Human being with feelings
 
Join Date: Feb 2012
Location: Sweden
Posts: 1,206
Default Theme, how make sub-layouts ignore PNGs for coded color values?

I got my nose buried in the rtconfig file right now, making a TCP layout I call 'separator'. I'll use it on empty TCP tracks so create spacings and compartmentalization in the tracklist.

I got a problem though. In my theme, I'm using PNGs as colouration for TCP tracks in general - tcp_bg.png, tcp.namebg.png etc.

So when I put into the rtconfig file that the TCP layout 'Separator' should use a different bg panel colour than the standard TCP colour (which uses PNG image for colour) then Reaper doesn't obey it. Seems the PNG colour overrides (overlays?) colour parameters in the rtconfig code. Seems it does so for all TCP styles, even if I used " clear tcp.* " or " reset tcp.* " in the code for the 'Separator' style.

Is there some way, or code, or method, to make a certain TCP Layout styles ignore these PNG images, and just use coded directions for colour, size etc?

I feel I need to make the 'separator' tracks much more different in appearance, than normal ones, but I still need to keep the original PNGs since they are central to my theme.

Thanx for any suggestions
__________________
There are only two kinds of people in the world: those who entertain, and those who are absurd.
- Britney Spears

Last edited by Colox; 02-28-2020 at 08:28 PM.
Colox is offline   Reply With Quote
Old 02-29-2020, 06:54 AM   #2
emwhy
Human being with feelings
 
Join Date: Apr 2018
Posts: 270
Default

Do you have a separate folder for the png files for the separator layout?
emwhy is offline   Reply With Quote
Old 02-29-2020, 10:08 AM   #3
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,950
Default

Quote:
Originally Posted by Colox View Post
Seems the PNG colour overrides (overlays?) colour parameters in the rtconfig code. Seems it does so for all TCP styles, even if I used " clear tcp.* " or " reset tcp.* " in the code for the 'Separator' style.

Is there some way, or code, or method, to make a certain TCP Layout styles ignore these PNG images, and just use coded directions for colour, size etc?
clear tcp.* and reset tcp.* only affect WALTER code.

Any layout (other than the root layout, obviously) inherits all the images of its parent layout. If you provide a different image in the layout's image folder, it will use that instead. If you want the appearance of 'no image' in a sub-layout, provide an image that is just a tiny png of nothing but full transparency, with the appropriate name.
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 02-29-2020, 10:23 AM   #4
Colox
Human being with feelings
 
Join Date: Feb 2012
Location: Sweden
Posts: 1,206
Default

Quote:
Originally Posted by White Tie View Post
If you provide a different image in the layout's image folder, it will use that instead.
Quote:
Originally Posted by emwhy View Post
Do you have a separate folder for the png files for the separator layout?
Thanx guys.

So aha, no I wasn't using a separate folder or separate PNG. Just one folder for everything. Sounds like a separate folder (and/or png) could be a practical solution. I just haven't crossed path with this need before, for anything in my theme, until now.

But then, I don't know off the top of my head how to make individual theme elements - or an entire sub-layout - read from an alternate folder or image file (?)
Currently, the connection between my custom images and the Reaper elements that the images are supposed to affect, is made by simply naming the image file to the element you wish it to apply to. Like "tcp_bg.png".

And just to avoid any potential misunderstanding, this is a "sub-layout" to me:

Code:
; regular tcp parameter definitions here, with no "Layout" parameter defined
set tcp.size [40 30 20 10]
; --------------------------------------

; below is a Sublayout: 
Layout "Sub-layout"
set tcp.size [10 20 30 40] ; different size than default tcp size
EndLayout ;
__________________
There are only two kinds of people in the world: those who entertain, and those who are absurd.
- Britney Spears

Last edited by Colox; 02-29-2020 at 10:46 AM.
Colox is offline   Reply With Quote
Old 02-29-2020, 10:29 AM   #5
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,950
Default

It can only be the entire sub-layout.

From the sdk: "The Layout command can take one or two parameters -- the first parameter defines the name of that layout, and the optional second parameter defines the theme image subdirectory to use for that layout. "
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 02-29-2020, 01:36 PM   #6
Colox
Human being with feelings
 
Join Date: Feb 2012
Location: Sweden
Posts: 1,206
Default

That did it. Got it working as intended, and I learned something valuable for greater flexibility


Thanx guys!
__________________
There are only two kinds of people in the world: those who entertain, and those who are absurd.
- Britney Spears
Colox 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 01:09 AM.


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