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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user