Skip to content

Commit

Permalink
docs for showInheritedConfigurations
Browse files Browse the repository at this point in the history
  • Loading branch information
squallstar committed Sep 28, 2017
1 parent b4e42b0 commit facdaee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/Building-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
```
1 change: 1 addition & 0 deletions theme-template/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"settings": {
"inherits": ["com.fliplet.theme.default"],
"showInheritedConfigurations": true,
"defaults": {
"bodyBackground": "#EEEEEE"
},
Expand Down

0 comments on commit facdaee

Please sign in to comment.