Page 1 of 1

Changing the color of theme buttons

Posted: Wed Jan 25, 2017 12:31 am
by goldo
Hi,

I've noticed that when using a theme, Ren'py creates colored buttons on the fly turning these base grey images:

Image

into this, for instance:
Image

or this:
Image

However, changing the 'background' option in screen language does not just change the color of the buttons; it reverts them to solid blocks.

How can I do the same thing as Ren'Py does with the theme, and create various shades of colored buttons using a given theme? I could of course copy and paste the images in a paint-like program and change the colors one by one, but I'm looking for a better way?

Re: Changing the color of theme buttons

Posted: Wed Jan 25, 2017 9:08 am
by Donmai
Look for the themes section in options.rpy. You can edit the colors there, if you want.

Re: Changing the color of theme buttons

Posted: Thu Jan 26, 2017 1:07 am
by goldo
Donmai wrote:Look for the themes section in options.rpy. You can edit the colors there, if you want.
Thanks! I guess my question is, how can I get more colors for my buttons (not just one set)? I don't want to change the color of all buttons, but I want to have a way of having blue buttons on a screen, green on another, orange on yet another screen, etc.

I'm guessing I would have to set up several themes in a similar way that the original theme must be doing, but I'm not sure how that would work...

Re: Changing the color of theme buttons

Posted: Thu Jan 26, 2017 2:22 am
by philat
That's pretty complicated actually. You can see the inner workings of theme in 00theme.rpy in the common files.