( card: HTMLElement, task: TaskInfo, plugin: TaskNotesPlugin )
| 69 | } |
| 70 | |
| 71 | export function applyTaskCardPriorityColor( |
| 72 | card: HTMLElement, |
| 73 | task: TaskInfo, |
| 74 | plugin: TaskNotesPlugin |
| 75 | ): PriorityConfig | null | undefined { |
| 76 | const priorityConfig = plugin.priorityManager.getPriorityConfig(task.priority); |
| 77 | if (priorityConfig?.color) { |
| 78 | card.style.setProperty("--priority-color", priorityConfig.color); |
| 79 | card.style.setProperty("--current-priority-color", priorityConfig.color); |
| 80 | } else { |
| 81 | card.style.removeProperty("--priority-color"); |
| 82 | card.style.removeProperty("--current-priority-color"); |
| 83 | } |
| 84 | return priorityConfig; |
| 85 | } |
| 86 | |
| 87 | export function configureStatusIndicator( |
| 88 | statusDot: HTMLElement, |
no test coverage detected