Add selectors to frontend services (#49701)

Co-authored-by: Franck Nijhof <git@frenck.dev>
pull/49715/head
tkdrob 2021-04-26 09:36:36 -04:00 committed by GitHub
parent 5b1ed44613
commit c4f0f818c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -1,14 +1,26 @@
# Describes the format for available frontend services
set_theme:
name: Set theme
description: Set a theme unless the client selected per-device theme.
fields:
name:
name: Name
description: Name of a predefined theme, 'default' or 'none'.
required: true
example: "default"
selector:
text:
mode:
description: The mode the theme is for, either 'dark' or 'light' (default).
name: Mode
description: The mode the theme is for, either 'dark' or 'light'.
default: "light"
example: "dark"
selector:
options:
- "dark"
- "light"
reload_themes:
name: Reload themes
description: Reload themes from YAML configuration.