clockworkpi / launcher

The launcher for GameShell
GNU General Public License v3.0
332 stars 79 forks source link

Allows for new skin config.ini format(s) #311

Closed O4k closed 4 years ago

O4k commented 4 years ago

The new code checks for a config.ini file in the Skin's folder. Then it checks for a "Font_Paths" section where it replaces the default fonts with the names of the new fonts listed in the Config. You will have to add the desired fonts to the truetype folder within the skin folder and update the config to match the fonts you have added. If you remove the existing fonts in that folder, the launcher will not load if there is a problem with the config file.

Note that the system-wide font name variables do not change, but their referenced file does.

The new Config file would look something like this:

[Font_Paths] varela = Roboto-Black veramono = Roboto-Regular noto = Roboto-Bold notocjk = Roboto-Light

[Colors] High = #f0ffff Text = #ffffff ReadOnlyText = #ffffff Front = #614f7d URL = #f0ffff Line = #614f7d TitleBg = #111013 Active = #ff70ba Disabled = #e6e6ff White = #111013 Black = #614f7d

cuu commented 4 years ago

this is a good idea, I want to change the font config,too back at that time I was coding the launcher I don't have enough time to think what is varela ,veramono ,noto fonts mainly do, I think they should rename to the real character in the launcher,like TOP_MENU_FNT, MENU_ITEM_FNT,etc...

so this is a temp solution , not good enough, either you or me to redfine the font key name or we are kind of wasting time, what u think ? :)

O4k commented 4 years ago

Okay, I agree! Changing the variable names is ideal, but I am unaware of where all these instances are and what the best way to change them would be.

Let me know what kind of could allow this to move forward. I would like to make it easy to use and available to the rest of the community.

cuu commented 4 years ago

thank you After os v0.5 released , I will try to change the variable names based on your code so please not to close the pr now and wait me a while