From 0f0fa1d7a3feb4e86c8478bbe65256b460ac45bc Mon Sep 17 00:00:00 2001 From: akiyosi Date: Thu, 17 Apr 2025 21:53:17 +0900 Subject: [PATCH] Minor fixes for text underline thickness --- Untitled | 1 + editor/window.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Untitled diff --git a/Untitled b/Untitled new file mode 100644 index 0000000..98c057e --- /dev/null +++ b/Untitled @@ -0,0 +1 @@ +asdfasdfasdf diff --git a/editor/window.go b/editor/window.go index f75f698..082a328 100644 --- a/editor/window.go +++ b/editor/window.go @@ -3062,7 +3062,7 @@ func drawUnderline(p *gui.QPainter, font *Font, color *gui.QColor, row int, star } descent := float64(font.height) - font.ascent - weight := int(math.Ceil(float64(font.height) / 16.0)) + weight := int(math.Ceil(float64(font.height) / 18.0)) if weight < 1 { weight = 1 }