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

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
NekoNyandereUwU
Newbie
Posts: 3
Joined: Tue Dec 15, 2020 12:01 am
Projects: A Novel
itch: nekonyandere
Contact:

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

#1 Post by NekoNyandereUwU » Fri Oct 22, 2021 2:17 pm

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.
Last edited by NekoNyandereUwU on Sun Oct 24, 2021 12:07 pm, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

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

#2 Post by Imperf3kt » Sat Oct 23, 2021 11:37 pm

Make sure you save a copy of your changes as they will be lost when you update.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

NekoNyandereUwU
Newbie
Posts: 3
Joined: Tue Dec 15, 2020 12:01 am
Projects: A Novel
itch: nekonyandere
Contact:

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

#3 Post by NekoNyandereUwU » Sun Oct 24, 2021 12:06 pm

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

User avatar
Moshibit
Regular
Posts: 48
Joined: Wed Oct 16, 2019 1:58 pm
Location: Mexico
Contact:

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

#4 Post by Moshibit » 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

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

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

#5 Post by Imperf3kt » Tue Oct 26, 2021 4:02 pm

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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Post Reply

Who is online

Users browsing this forum: No registered users