[themes] refactoring: renameing the attribute 'root_sheet' to 'root_theme'

This commit is contained in:
Vinicius Moreira
2020-12-01 12:11:02 -03:00
parent 6c22de15bb
commit 372f19f84b
5 changed files with 11 additions and 11 deletions

View File

@@ -276,7 +276,7 @@ environment:
- name: name that will be displayed on the interface. It supports translations by adding additional `name` keys with brackets and the language code (e.g: `name[es]=Mi tema`)
- description: theme's description that will be displayed on the interface. It supports translations like `name` (e.g: description[es] = Mi tema).
- version: theme's version. It just works as information at the moment. (e.g: 1.0)
- root_sheet: optional attribute that points to a theme that must be preloaded before the theme. It supports the default theme keys (e.g: default, light, ...) or a file path (e.g: `/path/to/root/file.qss`).
- root_theme: optional attribute that points to a theme that must be loaded before the theme. It supports the bauh's default theme keys (e.g: default, light, ...) or a file path (e.g: `/path/to/root/file.qss`).
- **my_theme.vars**: optional file defining `key=value` pairs of variables that will be available for the .qss file (can be referenced through the symbol **@**. e.g `@my_var`). Full example: [light.vars](https://raw.githubusercontent.com/vinifmor/bauh/qss/bauh/view/resources/style/light/light.vars)
- common theme variables available:
- **style_dir**: path to the .qss file directory. Example: @style_dir/my_icon.svg