ソースを参照

add feature to change default theme of riot-web via its config file

pull/472/head
Guillaume Augais 5年前
コミット
d5bf74ee4c
2個のファイルの変更6行の追加1行の削除
  1. +3
    -1
      roles/matrix-riot-web/defaults/main.yml
  2. +3
    -0
      roles/matrix-riot-web/templates/config.json.j2

+ 3
- 1
roles/matrix-riot-web/defaults/main.yml ファイルの表示

@@ -78,7 +78,9 @@ matrix_riot_web_themes_repository_url: https://github.com/aaronraimist/riot-web-


# Controls the `settingsDefault.custom_themes` setting of the riot-web configuration. # Controls the `settingsDefault.custom_themes` setting of the riot-web configuration.
# You can use this setting to define custom themes. # You can use this setting to define custom themes.
#
matrix_riot_web_change_default_theme: false
matrix_riot_web_default_theme: ""

# Also, look at `matrix_riot_web_themes_enabled` for a way to pull in a bunch of custom themes automatically. # Also, look at `matrix_riot_web_themes_enabled` for a way to pull in a bunch of custom themes automatically.
# If you define your own themes here and set `matrix_riot_web_themes_enabled: true`, your themes will be preserved as well. # If you define your own themes here and set `matrix_riot_web_themes_enabled: true`, your themes will be preserved as well.
# #


+ 3
- 0
roles/matrix-riot-web/templates/config.json.j2 ファイルの表示

@@ -11,6 +11,9 @@
"settingDefaults": { "settingDefaults": {
"custom_themes": {{ matrix_riot_web_settingDefaults_custom_themes|to_json }} "custom_themes": {{ matrix_riot_web_settingDefaults_custom_themes|to_json }}
}, },
{% if matrix_riot_web_change_default_theme %}
"default_theme": {{ matrix_riot_web_default_theme|string|to_json }},
{% endif %}
"permalinkPrefix": {{ matrix_riot_web_permalinkPrefix|string|to_json }}, "permalinkPrefix": {{ matrix_riot_web_permalinkPrefix|string|to_json }},
"disable_custom_urls": {{ matrix_riot_web_disable_custom_urls|to_json }}, "disable_custom_urls": {{ matrix_riot_web_disable_custom_urls|to_json }},
"disable_guests": {{ matrix_riot_web_disable_guests|to_json }}, "disable_guests": {{ matrix_riot_web_disable_guests|to_json }},


読み込み中…
キャンセル
保存