[2.0.64] Rich text icons get underlined
Posted: Wed Aug 13, 2025 1:19 am
consider this relatively unremarkable label style:
styles.tt_clickable_label = {
type = 'label_style',
parent = 'semibold_label',
underlined = true,
font_color = default_color,
hovered_font_color = hovered_color,
clicked_font_color = hovered_color,
}
When rendering a rich text with this style as a label, it looks like this:
The ugly part is this:
The oil rich text icon gets the same underline as the text.
This might be opening a can of worms but this should only underline "regular" text. Any rich text should not be underlined (and probably whitespace surrounding the rich text should not either.
styles.tt_clickable_label = {
type = 'label_style',
parent = 'semibold_label',
underlined = true,
font_color = default_color,
hovered_font_color = hovered_color,
clicked_font_color = hovered_color,
}
When rendering a rich text with this style as a label, it looks like this:
The ugly part is this:
The oil rich text icon gets the same underline as the text.
This might be opening a can of worms but this should only underline "regular" text. Any rich text should not be underlined (and probably whitespace surrounding the rich text should not either.