mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Changed behaviour of bold-color
This commit is contained in:
@ -154,15 +154,12 @@ pub const Style = struct {
|
|||||||
|
|
||||||
.palette => |idx| palette: {
|
.palette => |idx| palette: {
|
||||||
if (self.flags.bold) {
|
if (self.flags.bold) {
|
||||||
if (opts.bold) |bold| switch (bold) {
|
if (opts.bold) |_| {
|
||||||
.color => |v| break :palette v.toTerminalRGB(),
|
|
||||||
.bright => {
|
|
||||||
const bright_offset = @intFromEnum(color.Name.bright_black);
|
const bright_offset = @intFromEnum(color.Name.bright_black);
|
||||||
if (idx < bright_offset) {
|
if (idx < bright_offset) {
|
||||||
break :palette opts.palette[idx + bright_offset];
|
break :palette opts.palette[idx + bright_offset];
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break :palette opts.palette[idx];
|
break :palette opts.palette[idx];
|
||||||
|
Reference in New Issue
Block a user