mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
chore: Add support for dark mode logo (#7378)
This commit is contained in:
@@ -14,7 +14,7 @@ class DashboardController < ActionController::Base
|
|||||||
|
|
||||||
def set_global_config
|
def set_global_config
|
||||||
@global_config = GlobalConfig.get(
|
@global_config = GlobalConfig.get(
|
||||||
'LOGO', 'LOGO_THUMBNAIL',
|
'LOGO', 'LOGO_DARK', 'LOGO_THUMBNAIL',
|
||||||
'INSTALLATION_NAME',
|
'INSTALLATION_NAME',
|
||||||
'WIDGET_BRAND_URL', 'TERMS_URL',
|
'WIDGET_BRAND_URL', 'TERMS_URL',
|
||||||
'PRIVACY_URL',
|
'PRIVACY_URL',
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const {
|
|||||||
INSTALLATION_NAME: installationName,
|
INSTALLATION_NAME: installationName,
|
||||||
LOGO_THUMBNAIL: logoThumbnail,
|
LOGO_THUMBNAIL: logoThumbnail,
|
||||||
LOGO: logo,
|
LOGO: logo,
|
||||||
|
LOGO_DARK: logoDark,
|
||||||
PRIVACY_URL: privacyURL,
|
PRIVACY_URL: privacyURL,
|
||||||
TERMS_URL: termsURL,
|
TERMS_URL: termsURL,
|
||||||
WIDGET_BRAND_URL: widgetBrandURL,
|
WIDGET_BRAND_URL: widgetBrandURL,
|
||||||
@@ -38,6 +39,7 @@ const state = {
|
|||||||
hCaptchaSiteKey,
|
hCaptchaSiteKey,
|
||||||
installationName,
|
installationName,
|
||||||
logo,
|
logo,
|
||||||
|
logoDark,
|
||||||
logoThumbnail,
|
logoThumbnail,
|
||||||
privacyURL,
|
privacyURL,
|
||||||
termsURL,
|
termsURL,
|
||||||
|
|||||||
@@ -72,3 +72,5 @@
|
|||||||
value: self-hosted
|
value: self-hosted
|
||||||
- name: CSML_EDITOR_HOST
|
- name: CSML_EDITOR_HOST
|
||||||
value:
|
value:
|
||||||
|
- name: LOGO_DARK
|
||||||
|
value: '/brand-assets/logo-dark.svg'
|
||||||
|
|||||||
13
public/brand-assets/logo_dark.svg
Normal file
13
public/brand-assets/logo_dark.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user