Skip to content

Commit

Permalink
Conversations have blue avatar backgrounds if no image provided
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Oct 18, 2018
1 parent 4514152 commit f21f83a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/models/conversations.js
Expand Up @@ -1375,7 +1375,7 @@

getColor() {
if (!this.isPrivate()) {
return null;
return 'signal-blue';
}

const { migrateColor } = Util;
Expand Down
3 changes: 3 additions & 0 deletions stylesheets/_modules.scss
Expand Up @@ -2036,6 +2036,9 @@
background-color: $color-conversation-grey;
}

.module-avatar--signal-blue {
background-color: $color-signal-blue;
}
.module-avatar--red {
background-color: $color-conversation-red;
}
Expand Down
7 changes: 7 additions & 0 deletions ts/components/Avatar.md
Expand Up @@ -60,6 +60,13 @@
### All colors

```jsx
<Avatar
size={28}
color="signal-blue"
name="Group"
conversationType="group"
i18n={util.i18n}
/>
<Avatar
size={28}
color="red"
Expand Down

0 comments on commit f21f83a

Please sign in to comment.