1
0

feat: improve colorIsDark helper

(also improve contrast of white label text)
This commit is contained in:
Dominik Pschenitschni
2022-05-21 00:09:41 +02:00
committed by Gitea
parent 72925fb938
commit 297d283090
2 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@ export default class LabelModel extends AbstractModel {
if (this.hexColor.substring(0, 1) !== '#') {
this.hexColor = '#' + this.hexColor
}
this.textColor = colorIsDark(this.hexColor) ? '#4a4a4a' : '#e5e5e5'
this.textColor = colorIsDark(this.hexColor) ? '#4a4a4a' : '#fff'
this.createdBy = new UserModel(this.createdBy)
this.created = new Date(this.created)