Changing the interface/theme
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.
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.
-
- Regular
- Posts: 121
- Joined: Thu Aug 12, 2010 11:47 am
- Contact:
Changing the interface/theme
Is there a way to replace the default blue 'Roundrect' theme with your own custom theme? Is the Roundrect theme consisting of just a bunch of JPG images? if so, where are they located in the RenPy project folder and how do you replace those images with your own?
Re: Changing the interface/theme
Yes, you can change the theme. It's not the most straightforward thing in the world, but it's possible. Firstly, in the most recent version of Ren'Py, there's several more options to choose from in terms of widget style.Glazed Donuts wrote:Is there a way to replace the default blue 'Roundrect' theme with your own custom theme? Is the Roundrect theme consisting of just a bunch of JPG images? if so, where are they located in the RenPy project folder and how do you replace those images with your own?
The available themes mostly are comprised of .PNG images, and you can find them in the 'common' folder inside the Ren'Py game folder, in sub-folders named things like "theme_tv". The RoundRect theme in particular is just in a folder called '_roundrect'.
If you want to make your own, you could edit one of those directories and replace the built-in theme with one of your own.
In theory, I would expect the following to work: copy the folder and give your new copy a different name, and then go into /common/00themes.rpy, find the line which calls 'roundrect_based_theme' and make a copy of the relevant line (the same one you copied the folder of) and change the name and folder name.
So if you'd copied _theme_diamond and altered all the graphics inside that folder and called it _theme_new, you'd copy this line:
Code: Select all
roundrect_based_theme("diamond", "_theme_diamond/d")
Code: Select all
roundrect_based_theme("diamond", "_theme_diamond/d")
roundrect_based_theme("new", "_theme_new/d")
Code: Select all
("Diamond", "diamond", "Colorblind"),
Code: Select all
("Diamond", "diamond", "Colorblind"),
("New", "new", "Colorblind"),
Then further down in that document, find the line setting a 'theme_templates' entry:
Code: Select all
theme_templates["diamond"] = theme_templates["roundrect"].replace("roundrect", "diamond")
Code: Select all
theme_templates["diamond"] = theme_templates["roundrect"].replace("roundrect", "diamond")
theme_templates["new"] = theme_templates["roundrect"].replace("roundrect", "new")
However, it doesn't seem to show up, for me. :/
Server error: user 'Jake' not found
-
- Regular
- Posts: 121
- Joined: Thu Aug 12, 2010 11:47 am
- Contact:
Re: Changing the interface/theme
Thank you! This is exactly what I was looking for!
Who is online
Users browsing this forum: henne