( folder: NoteFolder, subpath: string, folderColors: Record<string, FolderColorId> )
| 36 | |
| 37 | /** The chosen color for a folder, or null when none is set (default tint). */ |
| 38 | export function resolveFolderColorId( |
| 39 | folder: NoteFolder, |
| 40 | subpath: string, |
| 41 | folderColors: Record<string, FolderColorId> |
| 42 | ): FolderColorId | null { |
| 43 | return folderColors[folderIconKey(folder, subpath)] ?? null |
| 44 | } |
| 45 | |
| 46 | /** The glyph text-color class for a folder, or null when no color is set. */ |
| 47 | export function resolveFolderColorGlyphClass( |
no test coverage detected