mirror of https://github.com/godotengine/godot
Merge pull request #95193 from Giganzo/fix-checkbox-alignment-compact-mode
Fix checkbox alignment when using compact theme spacing
This commit is contained in:
commit
01c0b39399
|
|
@ -865,7 +865,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
|
||||||
// CheckBox.
|
// CheckBox.
|
||||||
{
|
{
|
||||||
Ref<StyleBoxFlat> checkbox_style = p_config.panel_container_style->duplicate();
|
Ref<StyleBoxFlat> checkbox_style = p_config.panel_container_style->duplicate();
|
||||||
checkbox_style->set_content_margin_all(p_config.base_margin * EDSCALE);
|
checkbox_style->set_content_margin_individual((p_config.increased_margin + 2) * EDSCALE, p_config.base_margin * EDSCALE, (p_config.increased_margin + 2) * EDSCALE, p_config.base_margin * EDSCALE);
|
||||||
|
|
||||||
p_theme->set_stylebox(CoreStringName(normal), "CheckBox", checkbox_style);
|
p_theme->set_stylebox(CoreStringName(normal), "CheckBox", checkbox_style);
|
||||||
p_theme->set_stylebox(SceneStringName(pressed), "CheckBox", checkbox_style);
|
p_theme->set_stylebox(SceneStringName(pressed), "CheckBox", checkbox_style);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue