Skip to content

Commit 9bda882

Browse files
committed
(theme) add emoji colors
1 parent cb2e0aa commit 9bda882

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

src/ChatWindow/EmojiPicker.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,25 @@ export default {
8181
.regular-input {
8282
padding: 0.5rem 1rem;
8383
border-radius: 3px;
84-
border: 1px solid #ccc;
84+
border: var(--chat-border-style);
8585
width: 20rem;
8686
height: 12rem;
8787
outline: none;
8888
}
8989
90-
.regular-input:focus {
91-
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
92-
}
93-
9490
.emoji-picker {
9591
position: absolute;
9692
bottom: 50px;
9793
right: 10px;
9894
z-index: 1;
99-
border: 1px solid #ccc;
95+
border: var(--chat-border-style);
10096
width: 15rem;
10197
height: 20rem;
10298
overflow: scroll;
10399
padding: 1rem;
104100
box-sizing: border-box;
105101
border-radius: 0.5rem;
106-
background: #fff;
107-
box-shadow: 1px 1px 8px #c7dbe6;
102+
background: var(--chat-emoji-bg-color);
108103
}
109104
110105
.emoji-picker__search {
@@ -114,9 +109,11 @@ export default {
114109
.emoji-picker__search > input {
115110
flex: 1;
116111
border-radius: 10rem;
117-
border: 1px solid #ccc;
112+
border: var(--chat-border-style);
118113
padding: 0.5rem 1rem;
119114
outline: none;
115+
background: var(--chat-bg-color-input);
116+
color: var(--chat-color);
120117
}
121118
122119
.emoji-picker h5 {
@@ -145,7 +142,7 @@ export default {
145142
}
146143
147144
.emoji-picker .emojis span:hover {
148-
background: #ececec;
145+
background: var(--chat-sidemenu-bg-color-hover);
149146
cursor: pointer;
150147
}
151148
</style>

src/themes/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export const defaultThemeColors = {
5959
colorTimestamp: '#a2aeb8'
6060
},
6161

62+
emoji: {
63+
background: '#fff',
64+
},
65+
6266
icons: {
6367
search: '#9ca6af',
6468
add: '#1976d2',
@@ -139,6 +143,10 @@ export const defaultThemeColors = {
139143
colorTimestamp: '#6c7278'
140144
},
141145

146+
emoji: {
147+
background: '#343740',
148+
},
149+
142150
icons: {
143151
search: '#596269',
144152
add: '#fff',
@@ -170,6 +178,7 @@ export const cssThemeVars = ({
170178
dropdown,
171179
message,
172180
room,
181+
emoji,
173182
icons
174183
}) => {
175184
return {
@@ -224,6 +233,9 @@ export const cssThemeVars = ({
224233
'--chat-room-color-message': room.colorMessage,
225234
'--chat-room-color-timestamp': room.colorTimestamp,
226235

236+
// emoji
237+
'--chat-emoji-bg-color': emoji.background,
238+
227239
// icons
228240
'--chat-icon-color-search': icons.search,
229241
'--chat-icon-color-add': icons.add,

0 commit comments

Comments
 (0)