From 5baedb582666c9b99573a8a81da1435823f63df1 Mon Sep 17 00:00:00 2001 From: Volkan Gezer Date: Sat, 30 Nov 2024 19:50:53 +0100 Subject: [PATCH] add horizontal center for colorpicker buttons --- scene/gui/color_picker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index c0f679b5c3c8..41b6e28013bc 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -1850,6 +1850,7 @@ ColorPicker::ColorPicker() { real_vbox->add_child(sample_hbc); btn_pick = memnew(Button); + btn_pick->set_icon_alignment(HORIZONTAL_ALIGNMENT_CENTER); sample_hbc->add_child(btn_pick); sample = memnew(TextureRect); @@ -1863,6 +1864,7 @@ ColorPicker::ColorPicker() { sample_hbc->add_child(btn_shape); btn_shape->set_toggle_mode(true); btn_shape->set_tooltip_text(ETR("Select a picker shape.")); + btn_shape->set_icon_alignment(HORIZONTAL_ALIGNMENT_CENTER); current_shape = SHAPE_HSV_RECTANGLE;