[RTL] Add paragraph separation theme property.

This commit is contained in:
Pāvels Nadtočajevs 2025-06-09 18:58:48 +03:00
parent fc523ec5f6
commit 1e2fc9bcad
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
5 changed files with 23 additions and 12 deletions

View file

@ -181,8 +181,8 @@ private:
}
}
_FORCE_INLINE_ float get_height(float line_separation) const {
return offset.y + text_buf->get_size().y + text_buf->get_line_count() * line_separation;
_FORCE_INLINE_ float get_height(float p_line_separation, float p_paragraph_separation) const {
return offset.y + text_buf->get_size().y + (text_buf->get_line_count() - 1) * p_line_separation + p_paragraph_separation;
}
};
@ -717,6 +717,7 @@ private:
Ref<StyleBox> progress_fg_style;
int line_separation;
int paragraph_separation;
Ref<Font> normal_font;
int normal_font_size;