Skip to content

1.2.0

Latest
Compare
Choose a tag to compare
@goeldner goeldner released this 15 Mar 21:52
· 8 commits to main since this release

This release adds two missing pieces for gradients: changing the gradient direction and using gradients also for the caption. Additionally, it supports loading options from a JSON file.

Added

  • The caption color now also supports gradients. Use the same syntax as for the background and shadow color.
  • Specify gradient directions by using an optional direction argument before the list of color arguments. This is "to-bottom" by default but can be a horizontal direction (i.e. "to-right" or "to-left"), a vertical direction (i.e. "to-bottom" or "to-top") or a diagonal direction (i.e. "to-bottom-right", "to-bottom-left", "to-top-right" or "to-top-left").
  • It is now possible to load all options from a JSON file instead of defining them on command line. Specify a path to a JSON file using the new --config option. The settings from the file are applied first and can be overridden by settings from command line. All settings have the same names as on command line, but written in camel case.

Changed

  • The CLI functionality has been refactored into a subcommand called decorate in order to support more subcommands in the future. This is the default command, so the CLI is compatible to previous versions. You can type scrscr help decorate in order to see the whole description. Internal option, config and action classes have also been refactored for reusability by other commands and actions in the future.
  • References to CGColor, CGFloat and CoreGraphics inside the public API of the library have been removed. This affects the option, config and common enum types. A new Color type has been introduced additionally to the previously introduced ColorType enum.