(c: Color)
| 476 | export function tabStatus(fields: TabStatusAction): string { |
| 477 | const parts: string[] = [] |
| 478 | const rgb = (c: Color) => |
| 479 | c.type === 'rgb' |
| 480 | ? `#${[c.r, c.g, c.b].map(n => n.toString(16).padStart(2, '0')).join('')}` |
| 481 | : '' |
| 482 | if ('indicator' in fields) |
| 483 | parts.push(`indicator=${fields.indicator ? rgb(fields.indicator) : ''}`) |
| 484 | if ('status' in fields) |