Merge pull request #98428 from pafuent/fixing_color_picker_closing_popup_on_mouse_click

Fix `ColorPickerButton` close popup on mouse click
This commit is contained in:
Thaddeus Crews
2025-11-20 16:47:08 -06:00
2 changed files with 23 additions and 0 deletions

View File

@ -514,6 +514,7 @@ class ColorPickerButton : public Button {
Color color;
bool edit_alpha = true;
bool edit_intensity = true;
bool popup_was_open = false;
struct ThemeCache {
Ref<StyleBox> normal_style;
@ -533,6 +534,7 @@ class ColorPickerButton : public Button {
protected:
void _notification(int);
static void _bind_methods();
virtual void gui_input(const Ref<InputEvent> &p_event) override;
public:
void set_pick_color(const Color &p_color);