You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix CheckBox minimum size
This commit is contained in:
@@ -350,15 +350,15 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
// CheckBox
|
||||
|
||||
Ref<StyleBox> cbx_empty = memnew(StyleBoxEmpty);
|
||||
cbx_empty->set_default_margin(MARGIN_LEFT, 22 * scale);
|
||||
cbx_empty->set_default_margin(MARGIN_LEFT, 4 * scale);
|
||||
cbx_empty->set_default_margin(MARGIN_RIGHT, 4 * scale);
|
||||
cbx_empty->set_default_margin(MARGIN_TOP, 4 * scale);
|
||||
cbx_empty->set_default_margin(MARGIN_BOTTOM, 5 * scale);
|
||||
cbx_empty->set_default_margin(MARGIN_BOTTOM, 4 * scale);
|
||||
Ref<StyleBox> cbx_focus = focus;
|
||||
cbx_focus->set_default_margin(MARGIN_LEFT, 4 * scale);
|
||||
cbx_focus->set_default_margin(MARGIN_RIGHT, 22 * scale);
|
||||
cbx_focus->set_default_margin(MARGIN_RIGHT, 4 * scale);
|
||||
cbx_focus->set_default_margin(MARGIN_TOP, 4 * scale);
|
||||
cbx_focus->set_default_margin(MARGIN_BOTTOM, 5 * scale);
|
||||
cbx_focus->set_default_margin(MARGIN_BOTTOM, 4 * scale);
|
||||
|
||||
theme->set_stylebox("normal", "CheckBox", cbx_empty);
|
||||
theme->set_stylebox("pressed", "CheckBox", cbx_empty);
|
||||
|
||||
Reference in New Issue
Block a user