Added Thunderbird labels colors as test for #419

This commit is contained in:
the-djmaze 2022-05-30 12:58:50 +02:00
parent 30ece4b8c8
commit fe9d0da14a
2 changed files with 12 additions and 2 deletions

View file

@ -306,6 +306,9 @@ export class MessageModel extends AbstractModel {
hasUnseenSubMessage: this.hasUnseenSubMessage(),
hasFlaggedSubMessage: this.hasFlaggedSubMessage()
}, (key, value) => value && classes.push(key));
this.flags().forEach(value => {
'\\' !== value[0] && classes.push('flag-'+value);
});
return classes.join(' ');
}

View file

@ -228,7 +228,7 @@ html:not(rl-mobile) {
}
.checkboxMessage {
padding: 0 6px;
margin: 0 6px;
font-size: 16px;
}
@ -392,7 +392,7 @@ html.rl-ctrl-key-pressed .messageListItem {
.checkboxMessage {
line-height: 12px;
margin: 10px 0 -5px;
margin: 10px 6px -5px;
}
.subjectParent {
@ -444,3 +444,10 @@ html:not(.rl-mobile):not(.rl-side-preview-pane) {
}
}
}
/* Thunderbird labels */
.flag-\$label5 .checkboxMessage { background-color: #808; }
.flag-\$label4 .checkboxMessage { background-color: #00F; }
.flag-\$label3 .checkboxMessage { background-color: #080; }
.flag-\$label2 .checkboxMessage { background-color: #FA0; }
.flag-\$label1 .checkboxMessage { background-color: #F00; }