Reduce minimum underline thickness from 2px to 1px

This commit is contained in:
Cathal Mullan 2025-08-13 19:03:55 +01:00 committed by Jeremy Soller
parent 6d920635d8
commit 555e1aeee5

View file

@ -434,7 +434,7 @@ where
}
if !metadata.flags.is_empty() {
let style_line_height = (self.glyph_font_size / 10.0).clamp(2.0, 16.0);
let style_line_height = (self.glyph_font_size / 10.0).clamp(1.0, 16.0);
let line_color = cosmic_text_to_iced_color(metadata.underline_color);