Skip to content

Advanced configuration

kelvinhall05 edited this page Jun 1, 2021 · 2 revisions

Commands

You can add commands that run before or after the SmartFrame image generation:

  • These commands will be run by the same user that runs SmartFrame.py; if SmartFrame.py is running as administrator or superuser, so will the commands running before or after
    • On a new line, type one or two commands to run
      • If you type one command, it will be run after generating photos for all specified resolutions
      • If you type type two commands, the first one will be run after generating/saving all photos, and the second will be run before generating the first photo
  • You can also have SmartFrame delete the generated image when finished running commands, by adding a new line that simply says delete

Do not delete the instruction text in the config file, as it will break the file. I know that this is stupid and my interpreter should interpret better. This will be changed in the future when I start polishing the project further.


Theming

To change the appearance of your SmartFrame, edit the colors.txt and Fonts/font1.ttf file. Do note that not all plugins will respect these choices.

Colors

Use Adobe Color or some other method to get the RGB values of four colors for colors.txt. Proper syntax is explained in the file itself.

Each of the four colors has its own unique purpose:

  • Primary color: used for date text
  • Secondary color: used for clock text
  • Tertiary color: used for any extra text
  • Background color: used for background of date/time plugin These colors need to be in RGB form, as they appear in the file.

Fonts

Simply take your favorite TTF font and copy it into the Fonts/ folder, then rename it to font1.ttf. The default font is 8-bit Operator, available here.