fix: reviewers not correctly shown on dashboard edit screen
This commit is contained in:
12
theme.go
12
theme.go
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user