Merge branch 'fix-themes-colors' of https://github.com/ethanwu10/kitty

This commit is contained in:
Kovid Goyal 2024-07-09 19:19:05 +05:30
commit fd716b5753
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -451,10 +451,11 @@ func (self *handler) draw_theme_demo() {
if intense {
s = "bright-" + s
}
if len(s) > trunc {
s = s[:trunc]
sTrunc := s
if len(sTrunc) > trunc {
sTrunc = sTrunc[:trunc]
}
buf.WriteString(self.lp.SprintStyled("fg="+s, s))
buf.WriteString(self.lp.SprintStyled("fg="+s, sTrunc))
buf.WriteString(" ")
}
text := strings.TrimSpace(buf.String())