From facdaee43d3a581cf6486bb58972a7c71a1b5f30 Mon Sep 17 00:00:00 2001 From: Nicholas Valbusa Date: Thu, 28 Sep 2017 19:23:52 +0200 Subject: [PATCH] docs for showInheritedConfigurations --- docs/Building-themes.md | 10 ++++++++++ theme-template/theme.json | 1 + 2 files changed, 11 insertions(+) diff --git a/docs/Building-themes.md b/docs/Building-themes.md index 5b38444b..006fdf26 100644 --- a/docs/Building-themes.md +++ b/docs/Building-themes.md @@ -81,4 +81,14 @@ If you want to provide default values for the configurations of the theme you in "bodyBackground": "#FF0000" } } +``` + +### Partially showing inherited configurations + +When you inherit from one or more themes, all their configurations will be available unless `showInheritedConfigurations` is set to `false` or an array. If it's set as an array you can include the name of the configuration groups or single options you want to display to the user: + +``` +{ + "showInheritedConfigurations": ["General layouts", "introBodyBackground"] +} ``` \ No newline at end of file diff --git a/theme-template/theme.json b/theme-template/theme.json index c7099df2..9ab72bd3 100644 --- a/theme-template/theme.json +++ b/theme-template/theme.json @@ -9,6 +9,7 @@ ], "settings": { "inherits": ["com.fliplet.theme.default"], + "showInheritedConfigurations": true, "defaults": { "bodyBackground": "#EEEEEE" },