ColorPicker remove unused children and fix sample bugs.

Remove an unused `VBoxContainer`.
Remove 3 unused children from grid (Label, Slider, SpinBox).
Ignore sample input when old color is not displayed.
Fix current color overbright position.
This commit is contained in:
WhalesState 2025-01-17 18:12:36 +02:00
parent 36a62d0c6a
commit 6caadd57a9
2 changed files with 9 additions and 12 deletions

View file

@ -38,6 +38,7 @@
class AspectRatioContainer;
class ColorMode;
class ColorPickerShape;
class FileDialog;
class GridContainer;
class HSlider;
class Label;
@ -49,7 +50,6 @@ class PopupMenu;
class SpinBox;
class StyleBoxFlat;
class TextureRect;
class FileDialog;
class ColorPresetButton : public BaseButton {
GDCLASS(ColorPresetButton, BaseButton);
@ -104,7 +104,7 @@ public:
SHAPE_MAX
};
static const int SLIDER_COUNT = 4;
static const int SLIDER_COUNT = 3;
private:
enum class MenuOption {