diff options
author | Rindbee <idleman@yeah.net> | 2022-08-13 13:46:07 +0800 |
---|---|---|
committer | 风青山 <idleman@yeah.net> | 2024-01-18 22:57:22 +0800 |
commit | f29a7d302e0de7eb4b10f57c849d369210c1be55 (patch) | |
tree | 28554abc3f53ad2f7e4e51b9989c1a3d3ca23e75 /platform/linuxbsd/export/export.cpp | |
parent | 107f2961ccfac179af7682eb5f6e7ea91e80040c (diff) | |
download | redot-engine-f29a7d302e0de7eb4b10f57c849d369210c1be55.tar.gz |
Make the drawing logic clearer in `Button`
The drawing logic follows the calculation logic in `Button::get_minimum_size`.
According to the order of `stylebox`, `icon`, and `text`, and follow properties
such as alignment mode, to fill the display space of the button.
Add a `Button::_set_h_separation_is_valid_when_no_text` for Button derived
classes (like `OptionButton`) that expects a `h_separation` between `icon`
and theme icon even if the `text` is empty.
Diffstat (limited to 'platform/linuxbsd/export/export.cpp')
0 files changed, 0 insertions, 0 deletions