Merge pull request #86034 from kleonc/color_picker_alpha_slider_fix_arrow_offset

Fix `ColorPicker`'s alpha slider arrow offset
This commit is contained in:
Rémi Verschelde 2023-12-12 00:34:37 +01:00
commit 15a03ed98e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void ColorPicker::_notification(int p_what) {
sliders[i]->add_theme_constant_override(SNAME("center_grabber"), theme_cache.center_slider_grabbers);
}
alpha_label->set_custom_minimum_size(Size2(theme_cache.label_width, 0));
alpha_label->add_theme_constant_override(SNAME("center_grabber"), theme_cache.center_slider_grabbers);
alpha_slider->add_theme_constant_override(SNAME("center_grabber"), theme_cache.center_slider_grabbers);
for (int i = 0; i < MODE_BUTTON_COUNT; i++) {
mode_btns[i]->begin_bulk_theme_override();