소스 검색

remove matrix_riot_web_change_default_theme and provide sane default

pull/472/head
Guillaume Augais 5 년 전
부모
커밋
4669716b6a
2개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  1. +4
    -3
      roles/matrix-riot-web/defaults/main.yml
  2. +1
    -3
      roles/matrix-riot-web/templates/config.json.j2

+ 4
- 3
roles/matrix-riot-web/defaults/main.yml 파일 보기

@@ -76,11 +76,12 @@ matrix_riot_web_enable_presence_by_hs_url: ~
matrix_riot_web_themes_enabled: false matrix_riot_web_themes_enabled: false
matrix_riot_web_themes_repository_url: https://github.com/aaronraimist/riot-web-themes matrix_riot_web_themes_repository_url: https://github.com/aaronraimist/riot-web-themes


# Controls the default riot-web theme
matrix_riot_web_default_theme: 'light'

# 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.
# #


+ 1
- 3
roles/matrix-riot-web/templates/config.json.j2 파일 보기

@@ -11,9 +11,7 @@
"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 %}
"default_theme": {{ matrix_riot_web_default_theme|string|to_json }},
"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 }},


불러오는 중...
취소
저장