From ced4247fc2a94dfc099b034e4ca34810404dbaac Mon Sep 17 00:00:00 2001 From: David Jennes Date: Tue, 30 May 2017 23:47:29 +0200 Subject: [PATCH] Update documentation --- CHANGELOG.md | 3 +++ Documentation/Colors.md | 14 ++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c322c0b..11e3a81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,9 @@ Due to the removal of legacy code, there are a few breaking changes in this new * Added support for multiple string tables. [David Jennes](https://github.com/djbe) [#41](https://github.com/SwiftGen/templates/issues/41) +* Added support for multiple color palettes. + [David Jennes](https://github.com/djbe) + [#41](https://github.com/SwiftGen/templates/issues/40) ### Internal Changes diff --git a/Documentation/Colors.md b/Documentation/Colors.md index 8dbc9d5..494361a 100644 --- a/Documentation/Colors.md +++ b/Documentation/Colors.md @@ -13,9 +13,11 @@ The colors parser supports multiple input file types: The output context has the following structure: - - `colors`: `Array` — list of colors: - - `name` : `String` — name of the color - - `red` : `String` — hex value of the red component - - `green`: `String` — hex value of the green component - - `blue` : `String` — hex value of the blue component - - `alpha`: `String` — hex value of the alpha component + - `palettes`: `Array` of: + - `name` : `String` — name of the palette + - `colors`: `Array` of: + - `name` : `String` — name of each color + - `red` : `String` — hex value of the red component + - `green`: `String` — hex value of the green component + - `blue` : `String` — hex value of the blue component + - `alpha`: `String` — hex value of the alpha component