Changed behaviour of bold-color
parent
b90deebfb2
commit
57fdfe76bb
|
|
@ -154,15 +154,12 @@ pub const Style = struct {
|
|||
|
||||
.palette => |idx| palette: {
|
||||
if (self.flags.bold) {
|
||||
if (opts.bold) |bold| switch (bold) {
|
||||
.color => |v| break :palette v.toTerminalRGB(),
|
||||
.bright => {
|
||||
if (opts.bold) |_| {
|
||||
const bright_offset = @intFromEnum(color.Name.bright_black);
|
||||
if (idx < bright_offset) {
|
||||
break :palette opts.palette[idx + bright_offset];
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
break :palette opts.palette[idx];
|
||||
|
|
|
|||
Loading…
Reference in New Issue