Add support for syncing colors
// FREEBIE
This commit is contained in:
parent
141cdef2a4
commit
53f20640af
3 changed files with 11 additions and 7 deletions
|
@ -355,15 +355,17 @@
|
|||
}
|
||||
|
||||
var title = this.get('name');
|
||||
var color;
|
||||
if (this.isPrivate()) {
|
||||
if (title) {
|
||||
color = COLORS[Math.abs(this.hashCode()) % 15];
|
||||
var color = this.get('color');
|
||||
if (!color) {
|
||||
if (this.isPrivate()) {
|
||||
if (title) {
|
||||
color = COLORS[Math.abs(this.hashCode()) % 15];
|
||||
} else {
|
||||
color = 'grey';
|
||||
}
|
||||
} else {
|
||||
color = 'grey';
|
||||
color = 'default';
|
||||
}
|
||||
} else {
|
||||
color = 'default';
|
||||
}
|
||||
|
||||
if (this.avatarUrl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue