[RTL] Add options to override underline color and default alpha.

This commit is contained in:
Pāvels Nadtočajevs
2025-05-12 11:18:07 +03:00
parent 978b38797b
commit 332352d37f
6 changed files with 113 additions and 33 deletions

View File

@ -1190,6 +1190,9 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("text_highlight_h_padding", "RichTextLabel", Math::round(3 * scale));
theme->set_constant("text_highlight_v_padding", "RichTextLabel", Math::round(3 * scale));
theme->set_constant("underline_alpha", "RichTextLabel", 50);
theme->set_constant("strikethrough_alpha", "RichTextLabel", 50);
// Containers
theme->set_icon("h_grabber", "SplitContainer", icons["hsplitter"]);