Skip to content

The one with the breaking change - new template system

Compare
Choose a tag to compare
@deviantfero deviantfero released this 11 Feb 05:01
· 190 commits to master since this release
5a7dc23

Templates

As I detailed in the PR #125, the format in the templates will change, to take full advantage of pywal features in this regard, some of those features are illustrated in the code section below along with disadvantages that brings with it (having to escape braces, for example).

#<COLOR8> becomes {color8}
#<COLORACT> becomes {active}
#<COLORIN> becomes {inactive}

if you have normal braces {{
   you will need to escape them like this
}}

but this means you can do things like: 
{color8}                -> #ffffff
{color8.octal}          -> #77777777
{active.rgb}            -> 255, 255, 255
{userdefinedcolor.rgb}  -> 0, 0, 0
#BA{color8.strip}       -> #BAffffff

CHANGELOG

I will list some other changes that affect this repository and wpgtk-templates in no particular order:

  • ability to reset color-schemes to their original state via the new -R flag and button in GUI
  • dark icon set that also changes colors along with the theme (for those who use light colorschemes)
  • live reload of GTK+ is now optional (enabled by default)
  • add option to automatically auto-adjust themes when adding a new wallpaper
  • use threads to apply colors to templates so it's slightly faster
  • rename flags so they make more sense.
    • -x is now -t for "templates"
    • --pywal is now --theme for preset themes
    • -y is now --link to reconnect backed up templates to their respective config files
  • add --preview flag to print the color-scheme to console thanks to pywal
  • many improvements to GTK+ theme so that it no longer depends on color8 for menu backgrounds
  • removed options for tint2 and openbox, these will reload automatically when relevant
  • add --update flag to deal with outdated custom templates, please read more on this in the wiki
  • wallpapers that don't produce enough colors will grab a random preset theme