Skip to content

Commit

Permalink
fix(dashboard): use transparent background as default for chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Dec 13, 2023
1 parent 40399d0 commit ca93a9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/dashboard/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
"showBadges": "Show badges",
"showAnnounceBadge": "Show announce badge (only for boxed style)",
"reverseMessages": "Show new messages on top, instead bottom",
"revertFont": "Reset to default",
"resetToDefault": "Reset to default",
"textShadow": "Text shadow",
"backgroundColor": "Background color"
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/dashboard/src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"description": "Встраивание оверлея чата в Ваше ПО для проведения прямых трансляций",
"hideCommands": "Скрывать команды, не отображать сообщения начинающиеся с \"!\"",
"fontSize": "Размер шрифта",
"revertFont": "Сбросить настройки",
"resetToDefault": "Сбросить настройки",
"textShadow": "Тень от текста",
"backgroundColor": "Цвет фона"
},
Expand Down
8 changes: 4 additions & 4 deletions frontend/dashboard/src/pages/overlays/chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const defaultSettings: Settings = {
reverseMessages: false,
textShadowColor: 'rgba(0,0,0,1)',
textShadowSize: 0,
chatBackgroundColor: 'rgba(16, 16, 20, 1)',
chatBackgroundColor: 'rgba(0, 0, 0, 0)',
};
const formValue = ref<Settings>(structuredClone(defaultSettings));
Expand Down Expand Up @@ -243,7 +243,7 @@ const canCopyLink = computed(() => {
@click="formValue.fontFamily = defaultFont"
>
<IconReload style="height: 15px;" />
{{ t('overlays.chat.revertFont') }}
{{ t('overlays.chat.resetToDefault') }}
</n-button>
</div>

Expand Down Expand Up @@ -282,10 +282,10 @@ const canCopyLink = computed(() => {
<span>{{ t('overlays.chat.backgroundColor') }}</span>
<n-button
size="tiny" secondary type="success"
@click="formValue.chatBackgroundColor = 'rgba(16, 16, 20, 1)'"
@click="formValue.chatBackgroundColor = defaultSettings.chatBackgroundColor"
>
<IconReload style="height: 15px;" />
{{ t('overlays.chat.revertFont') }}
{{ t('overlays.chat.resetToDefault') }}
</n-button>
</div>
<n-color-picker
Expand Down

0 comments on commit ca93a9f

Please sign in to comment.