mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 12:08:45 +02:00
A new option to control when hyperlinks are underlined
While kitty is never going to underline detected URLs as the performance of that is absurd, underlining hyperlinks specifically is acceptable, since they dont require detection. See #6766
This commit is contained in:
@@ -22,6 +22,7 @@ typedef struct {
|
||||
} UrlPrefix;
|
||||
|
||||
typedef enum AdjustmentUnit { POINT = 0, PERCENT = 1, PIXEL = 2 } AdjustmentUnit;
|
||||
typedef enum UnderlineHyperlinks { UNDERLINE_ON_HOVER = 0, UNDERLINE_ALWAYS = 1, UNDERLINE_NEVER = 2 } UnderlineHyperlinks;
|
||||
|
||||
struct MenuItem {
|
||||
const char* *location;
|
||||
@@ -95,6 +96,7 @@ typedef struct {
|
||||
float val; AdjustmentUnit unit;
|
||||
} underline_position, underline_thickness, strikethrough_position, strikethrough_thickness, cell_width, cell_height, baseline;
|
||||
bool show_hyperlink_targets;
|
||||
UnderlineHyperlinks underline_hyperlinks;
|
||||
int background_blur;
|
||||
long macos_titlebar_color;
|
||||
unsigned long wayland_titlebar_color;
|
||||
|
||||
Reference in New Issue
Block a user