Skip to content

Commit

Permalink
(theme) add dropdown message bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine92190 committed Mar 24, 2020
1 parent 2dea1b4 commit 1f2c6f5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ styles="{
pencil: '#9e9e9e',
checkmark: '#0696c7',
eye: '#fff',
dropdown: '#fff',
dropdownMessage: '#fff',
dropdownMessageBackground: 'rgba(0, 0, 0, 0.25)',
dropdownScroll: '#0a0a0a'
}
}"
Expand Down
4 changes: 2 additions & 2 deletions src/ChatWindow/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
v-if="isMessageActions"
@click="openOptions"
>
<svg-icon name="dropdown" />
<svg-icon name="dropdown" param="message" />
</div>

<emoji-picker
Expand Down Expand Up @@ -722,7 +722,7 @@ export default {
}
.message-options {
background: rgba(0, 0, 0, 0.25);
background: var(--chat-icon-bg-dropdown-message);
border-radius: 50%;
position: absolute;
top: 7px;
Expand Down
4 changes: 2 additions & 2 deletions src/ChatWindow/SvgIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export default {
fill: var(--chat-icon-color-eye);
}
#chat-icon-dropdown {
fill: var(--chat-icon-color-dropdown);
#chat-icon-dropdown-message {
fill: var(--chat-icon-color-dropdown-message);
}
#chat-icon-dropdown-scroll {
Expand Down
9 changes: 6 additions & 3 deletions src/themes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export const defaultThemeStyles = {
pencil: '#9e9e9e',
checkmark: '#0696c7',
eye: '#fff',
dropdown: '#fff',
dropdownMessage: '#fff',
dropdownMessageBackground: 'rgba(0, 0, 0, 0.25)',
dropdownScroll: '#0a0a0a'
}
},
Expand Down Expand Up @@ -215,7 +216,8 @@ export const defaultThemeStyles = {
pencil: '#ebedf2',
checkmark: '#f0d90a',
eye: '#fff',
dropdown: '#fff',
dropdownMessage: '#fff',
dropdownMessageBackground: 'rgba(0, 0, 0, 0.25)',
dropdownScroll: '#0a0a0a'
}
}
Expand Down Expand Up @@ -332,7 +334,8 @@ export const cssThemeVars = ({
'--chat-icon-color-pencil': icons.pencil,
'--chat-icon-color-checkmark': icons.checkmark,
'--chat-icon-color-eye': icons.eye,
'--chat-icon-color-dropdown': icons.dropdown,
'--chat-icon-color-dropdown-message': icons.dropdownMessage,
'--chat-icon-bg-dropdown-message': icons.dropdownMessageBackground,
'--chat-icon-color-dropdown-scroll': icons.dropdownScroll
}
}

0 comments on commit 1f2c6f5

Please sign in to comment.