okosuno / pywal-steam

a pywal recolor for the dracula steam skin
1 stars 0 forks source link

templates #3

Open okosuno opened 1 year ago

okosuno commented 1 year ago

because the templates (e.g. steam.styles) provided inside of Dracula formatted pretty chaotically (random spaces, tabs, etc), regex parsing will end up being more difficult to maintain than just making our own writable copy of the template. for steam.styles this is taking the first 340 lines of that document and slotting in values with tags, for instance:

ButtonFace={%ButtonFace%}
...
Friends.InGameColor {%Friends.InGameColor%}

will merge the templates branch once i've mapped and copied all of the templates (steam.styles, gameoverlay.styles, customroot.css to start) and outputting modified templates works.

eylles commented 1 year ago

sorry, i've been busy with other things and now i got the objective of putting out the release tag 3.4.0 for pywal16 by october the 30th, once i'm done with that i will put some more time in here.

as an aside while documenting the changes on pywal since 3.3.0 it was a nice surprise to find that at export time most of the functions from utils.py can be used on the templates altho with some caveats, please take a look at the pr for 3.4.0 when you got some time.