Board color

This commit is contained in:
yflory
2020-03-04 17:59:13 +01:00
parent 0975f253ab
commit fbf4434fc4
3 changed files with 30 additions and 3 deletions

View File

@@ -419,6 +419,7 @@
if (/color/.test(board.color)) {
// Palette color
headerBoard.classList.add('cp-kanban-palette-'+board.color);
boardNode.classList.add('cp-kanban-palette-'+board.color);
} else if (!/^[0-9a-f]{6}$/.test(board.color)) {
// "string" color (red, blue, etc.)
headerBoard.classList.add("kanban-header-" + board.color);