Skip to content

Commit

Permalink
chore: Add support for dark mode logo (#7378)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrajs committed Jun 23, 2023
1 parent f8e631a commit 4f8ce7b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/dashboard_controller.rb
Expand Up @@ -14,7 +14,7 @@ def index; end

def set_global_config
@global_config = GlobalConfig.get(
'LOGO', 'LOGO_THUMBNAIL',
'LOGO', 'LOGO_DARK', 'LOGO_THUMBNAIL',
'INSTALLATION_NAME',
'WIDGET_BRAND_URL', 'TERMS_URL',
'PRIVACY_URL',
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/shared/store/globalConfig.js
Expand Up @@ -14,6 +14,7 @@ const {
INSTALLATION_NAME: installationName,
LOGO_THUMBNAIL: logoThumbnail,
LOGO: logo,
LOGO_DARK: logoDark,
PRIVACY_URL: privacyURL,
TERMS_URL: termsURL,
WIDGET_BRAND_URL: widgetBrandURL,
Expand All @@ -38,6 +39,7 @@ const state = {
hCaptchaSiteKey,
installationName,
logo,
logoDark,
logoThumbnail,
privacyURL,
termsURL,
Expand Down
2 changes: 2 additions & 0 deletions config/installation_config.yml
Expand Up @@ -72,3 +72,5 @@
value: self-hosted
- name: CSML_EDITOR_HOST
value:
- name: LOGO_DARK
value: '/brand-assets/logo-dark.svg'
13 changes: 13 additions & 0 deletions public/brand-assets/logo_dark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4f8ce7b

Please sign in to comment.