feat: Add an option to use darkMode only in the widget (#7151)

This commit is contained in:
Pranav Raj S
2023-05-21 20:35:05 -07:00
committed by GitHub
parent e3f4be97c0
commit b8dae07c0f
5 changed files with 20 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ export default {
isAgentTyping: 'conversation/getIsAgentTyping',
}),
colorSchemeClass() {
return `${this.darkMode === 'light' ? 'light' : 'dark'}`;
return `${this.darkMode === 'dark' ? 'dark-scheme' : 'light-scheme'}`;
},
},
watch: {
@@ -117,10 +117,10 @@ export default {
overflow-y: auto;
color-scheme: light dark;
&.light {
&.light-scheme {
color-scheme: light;
}
&.dark {
&.dark-scheme {
color-scheme: dark;
}
}