Page 1 of 1

How to make a custom theme for the Ren'Py Launcher!

Posted: Fri Oct 22, 2021 2:17 pm
by NekoNyandereUwU
Hey!

Wanna know why there's a "Custom Theme" on the Ren'Py Preferences?
Well you can make a
✨ Custom Theme for the Ren'Py Launcher! ✨

This is usually easy!
I don't know if there's a small guide for it, but here I go anyways.

Now open your file explorer and find the path on where you installed Ren'Py! (Whether it'd be on the program files, your desktop) and make sure the path has:
"C:\(any location where you installed Ren'Py)\renpy-7.4.9-sdk\launcher\game (the latest version just in case!)
Path example:
C:\Users\USER\Desktop\Every folder\resource folder\RENPY\renpy-7.4.9-sdk\launcher\game


Now look at the two files called "preferences.rpy" and "style.rpy"!
https://imgur.com/gallery/Rfpg2oS
The preferences.rpy is used for the preferences on the launcher! You can press CTRL+F and search for "Custom Theme!"
You can change the persistent of it and edit the name for the theme! eg: Dark-Pink Theme

Now the main focus here is the style.rpy

It may look complicated at first
but then if you search for:
elif persistent.theme == "custom"
It may look different if it includes the skin.rpy, but that can be changed to this and it will work just fine!

Now here's the definitions of the said code!

You can change most of them to a color of a hex code!
Say you wanna change the text string to black.
You can change "custom_text" to turn into "#000000"

It works the same for almost everything (except I did not use a png, it was untested) except the pattern!

You can change the pattern png (did not, it remained the same!)

Now if you managed to figure out your colors
Put it on the dedicated strings that you want,
which is:
TEXT = custom_text -> TEXT = "insert a hex code"

And now you are done with the custom theme!

Here's the example for the theme!

ADDITIONAL INFO:
Imperf3kt wrote:
Sat Oct 23, 2021 11:37 pm
Make sure you save a copy of your changes as they will be lost when you update.

Re: How to make a custom theme for the Ren'Py Launcher!

Posted: Sat Oct 23, 2021 11:37 pm
by Imperf3kt
Make sure you save a copy of your changes as they will be lost when you update.

Re: How to make a custom theme for the Ren'Py Launcher!

Posted: Sun Oct 24, 2021 12:06 pm
by NekoNyandereUwU
Imperf3kt wrote:
Sat Oct 23, 2021 11:37 pm
Make sure you save a copy of your changes as they will be lost when you update.
I forgot to mention this! Thank you for adding that information ^^

Re: How to make a custom theme for the Ren'Py Launcher!

Posted: Tue Oct 26, 2021 6:52 am
by Moshibit
It is in documentation.
https://www.renpy.org/doc/html/skins.html
you won't lose your customization when updating if you add skin.rpy

Re: How to make a custom theme for the Ren'Py Launcher!

Posted: Tue Oct 26, 2021 4:02 pm
by Imperf3kt
Moshibit wrote:
Tue Oct 26, 2021 6:52 am
It is in documentation.
https://www.renpy.org/doc/html/skins.html
you won't lose your customization when updating if you add skin.rpy
The only thing I see in there is this
Skins are specific to the Ren'Py version in use, and can't be expected to be forward or backwards compatible
Which doesn't really tell us anything.
Its been a long time since I edited the launcher, so maybe things have changed, but it did at one point overwrite any changes you made when you updated.