Changing the color of theme buttons

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
goldo
Regular
Posts: 63
Joined: Mon Jan 23, 2017 8:23 am
Contact:

Changing the color of theme buttons

#1 Post by goldo » Wed Jan 25, 2017 12:31 am

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?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Changing the color of theme buttons

#2 Post by Donmai » Wed Jan 25, 2017 9:08 am

Look for the themes section in options.rpy. You can edit the colors there, if you want.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

goldo
Regular
Posts: 63
Joined: Mon Jan 23, 2017 8:23 am
Contact:

Re: Changing the color of theme buttons

#3 Post by goldo » Thu Jan 26, 2017 1:07 am

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...

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Changing the color of theme buttons

#4 Post by philat » Thu Jan 26, 2017 2:22 am

That's pretty complicated actually. You can see the inner workings of theme in 00theme.rpy in the common files.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]