fix: reviewers not correctly shown on dashboard edit screen

This commit is contained in:
2026-07-30 11:26:21 +02:00
parent bcad515698
commit e045bd39b2
7 changed files with 549 additions and 15 deletions

View File

@@ -231,6 +231,18 @@ func foregroundSequence(color string) string {
)
}
func darkenColor(color lipgloss.Color) lipgloss.Color {
value, err := strconv.ParseUint(strings.TrimPrefix(string(color), "#"), 16, 24)
if err != nil {
return color
}
const numerator, denominator = uint64(3), uint64(4)
red := ((value >> 16) & 0xff) * numerator / denominator
green := ((value >> 8) & 0xff) * numerator / denominator
blue := (value & 0xff) * numerator / denominator
return lipgloss.Color(fmt.Sprintf("#%02X%02X%02X", red, green, blue))
}
func builtinThemePalettes() map[string]themePalette {
dark := palette(
"dark", "#F0B72F", "#777777", "#D7DAE8", "#FFFFFF", "#3B4261",