Skip to content

Commit

Permalink
fix(settings): prevent error on start
Browse files Browse the repository at this point in the history
fix colors
  • Loading branch information
ph1p committed Aug 19, 2019
1 parent 9bb8acd commit 7781044
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/assets/css/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ body {
color: #0d6540;
}

.messages .message.orange .user {
color: #865427;
}
.messages .message.orange .selection {
border-color: #865427;
color: #865427;
}

.messages .message.gray {
background-color: #4f4f4f;
}
Expand All @@ -130,18 +138,23 @@ body {
}
.messages .message.purple {
background-color: #7b61ff;
color: #433688;
}
.messages .message.green {
background-color: #1bc47d;
color: #0d6540;
}
.messages .message.lightgreen {
background-color: #6fcf97;
color: #3a8459;
}
.messages .message.red {
background-color: #f24822;
color: #842713;
}
.messages .message.orange {
background-color: #f2994a;
color: #865427;
}

.chat .footer {
Expand Down
5 changes: 4 additions & 1 deletion src/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ const init = (url = 'https://figma-chat.ph1p.dev/') => {
if (pmessage) {
if (pmessage.type === 'user-settings') {
setMainReady(true);
setUserSettings(pmessage.settings);
setUserSettings({
...userSettings,
...pmessage.settings
});

socket.emit('set user', pmessage.settings);
}
Expand Down

0 comments on commit 7781044

Please sign in to comment.