Skip to content

Commit 1f2c6f5

Browse files
committed
(theme) add dropdown message bg color
1 parent 2dea1b4 commit 1f2c6f5

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ styles="{
293293
pencil: '#9e9e9e',
294294
checkmark: '#0696c7',
295295
eye: '#fff',
296-
dropdown: '#fff',
296+
dropdownMessage: '#fff',
297+
dropdownMessageBackground: 'rgba(0, 0, 0, 0.25)',
297298
dropdownScroll: '#0a0a0a'
298299
}
299300
}"

src/ChatWindow/Message.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
v-if="isMessageActions"
139139
@click="openOptions"
140140
>
141-
<svg-icon name="dropdown" />
141+
<svg-icon name="dropdown" param="message" />
142142
</div>
143143

144144
<emoji-picker
@@ -722,7 +722,7 @@ export default {
722722
}
723723
724724
.message-options {
725-
background: rgba(0, 0, 0, 0.25);
725+
background: var(--chat-icon-bg-dropdown-message);
726726
border-radius: 50%;
727727
position: absolute;
728728
top: 7px;

src/ChatWindow/SvgIcon.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ export default {
173173
fill: var(--chat-icon-color-eye);
174174
}
175175
176-
#chat-icon-dropdown {
177-
fill: var(--chat-icon-color-dropdown);
176+
#chat-icon-dropdown-message {
177+
fill: var(--chat-icon-color-dropdown-message);
178178
}
179179
180180
#chat-icon-dropdown-scroll {

src/themes/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export const defaultThemeStyles = {
105105
pencil: '#9e9e9e',
106106
checkmark: '#0696c7',
107107
eye: '#fff',
108-
dropdown: '#fff',
108+
dropdownMessage: '#fff',
109+
dropdownMessageBackground: 'rgba(0, 0, 0, 0.25)',
109110
dropdownScroll: '#0a0a0a'
110111
}
111112
},
@@ -215,7 +216,8 @@ export const defaultThemeStyles = {
215216
pencil: '#ebedf2',
216217
checkmark: '#f0d90a',
217218
eye: '#fff',
218-
dropdown: '#fff',
219+
dropdownMessage: '#fff',
220+
dropdownMessageBackground: 'rgba(0, 0, 0, 0.25)',
219221
dropdownScroll: '#0a0a0a'
220222
}
221223
}
@@ -332,7 +334,8 @@ export const cssThemeVars = ({
332334
'--chat-icon-color-pencil': icons.pencil,
333335
'--chat-icon-color-checkmark': icons.checkmark,
334336
'--chat-icon-color-eye': icons.eye,
335-
'--chat-icon-color-dropdown': icons.dropdown,
337+
'--chat-icon-color-dropdown-message': icons.dropdownMessage,
338+
'--chat-icon-bg-dropdown-message': icons.dropdownMessageBackground,
336339
'--chat-icon-color-dropdown-scroll': icons.dropdownScroll
337340
}
338341
}

0 commit comments

Comments
 (0)