( card: HTMLElement, effectiveStatus: string, plugin: TaskNotesPlugin )
| 48 | } |
| 49 | |
| 50 | export function applyTaskCardStatusColors( |
| 51 | card: HTMLElement, |
| 52 | effectiveStatus: string, |
| 53 | plugin: TaskNotesPlugin |
| 54 | ): void { |
| 55 | const statusConfig = plugin.statusManager.getStatusConfig(effectiveStatus); |
| 56 | if (statusConfig?.color) { |
| 57 | card.style.setProperty("--current-status-color", statusConfig.color); |
| 58 | } else { |
| 59 | card.style.removeProperty("--current-status-color"); |
| 60 | } |
| 61 | |
| 62 | const nextStatus = plugin.statusManager.getNextStatus(effectiveStatus); |
| 63 | const nextStatusConfig = plugin.statusManager.getStatusConfig(nextStatus); |
| 64 | if (nextStatusConfig?.color) { |
| 65 | card.style.setProperty("--next-status-color", nextStatusConfig.color); |
| 66 | } else { |
| 67 | card.style.removeProperty("--next-status-color"); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | export function applyTaskCardPriorityColor( |
| 72 | card: HTMLElement, |
no test coverage detected