|
30 | 30 |
|
31 | 31 | #include "color_picker.h" |
32 | 32 |
|
33 | | -#include "core/input/input.h" |
34 | 33 | #include "core/io/image.h" |
35 | | -#include "core/math/color.h" |
| 34 | +#include "scene/gui/aspect_ratio_container.h" |
36 | 35 | #include "scene/gui/color_mode.h" |
| 36 | +#include "scene/gui/grid_container.h" |
| 37 | +#include "scene/gui/label.h" |
| 38 | +#include "scene/gui/line_edit.h" |
37 | 39 | #include "scene/gui/margin_container.h" |
| 40 | +#include "scene/gui/menu_button.h" |
| 41 | +#include "scene/gui/option_button.h" |
| 42 | +#include "scene/gui/popup_menu.h" |
| 43 | +#include "scene/gui/slider.h" |
| 44 | +#include "scene/gui/spin_box.h" |
| 45 | +#include "scene/gui/texture_rect.h" |
38 | 46 | #include "scene/resources/image_texture.h" |
39 | 47 | #include "scene/resources/style_box_flat.h" |
40 | 48 | #include "scene/resources/style_box_texture.h" |
41 | 49 | #include "scene/theme/theme_db.h" |
42 | | -#include "servers/display_server.h" |
43 | 50 | #include "thirdparty/misc/ok_color_shader.h" |
44 | 51 |
|
45 | | -List<Color> ColorPicker::preset_cache; |
46 | | -List<Color> ColorPicker::recent_preset_cache; |
47 | | - |
48 | 52 | void ColorPicker::_notification(int p_what) { |
49 | 53 | switch (p_what) { |
50 | 54 | case NOTIFICATION_ENTER_TREE: { |
@@ -159,10 +163,6 @@ void ColorPicker::_update_theme_item_cache() { |
159 | 163 | theme_cache.base_scale = get_theme_default_base_scale(); |
160 | 164 | } |
161 | 165 |
|
162 | | -Ref<Shader> ColorPicker::wheel_shader; |
163 | | -Ref<Shader> ColorPicker::circle_shader; |
164 | | -Ref<Shader> ColorPicker::circle_ok_color_shader; |
165 | | - |
166 | 166 | void ColorPicker::init_shaders() { |
167 | 167 | wheel_shader.instantiate(); |
168 | 168 | wheel_shader->set_code(R"( |
|
0 commit comments