|
@@ -30,21 +30,25 @@
|
|
|
|
|
|
#include "color_picker.h"
|
|
|
|
|
|
-#include "core/input/input.h"
|
|
|
#include "core/io/image.h"
|
|
|
-#include "core/math/color.h"
|
|
|
+#include "scene/gui/aspect_ratio_container.h"
|
|
|
#include "scene/gui/color_mode.h"
|
|
|
+#include "scene/gui/grid_container.h"
|
|
|
+#include "scene/gui/label.h"
|
|
|
+#include "scene/gui/line_edit.h"
|
|
|
#include "scene/gui/margin_container.h"
|
|
|
+#include "scene/gui/menu_button.h"
|
|
|
+#include "scene/gui/option_button.h"
|
|
|
+#include "scene/gui/popup_menu.h"
|
|
|
+#include "scene/gui/slider.h"
|
|
|
+#include "scene/gui/spin_box.h"
|
|
|
+#include "scene/gui/texture_rect.h"
|
|
|
#include "scene/resources/image_texture.h"
|
|
|
#include "scene/resources/style_box_flat.h"
|
|
|
#include "scene/resources/style_box_texture.h"
|
|
|
#include "scene/theme/theme_db.h"
|
|
|
-#include "servers/display_server.h"
|
|
|
#include "thirdparty/misc/ok_color_shader.h"
|
|
|
|
|
|
-List<Color> ColorPicker::preset_cache;
|
|
|
-List<Color> ColorPicker::recent_preset_cache;
|
|
|
-
|
|
|
void ColorPicker::_notification(int p_what) {
|
|
|
switch (p_what) {
|
|
|
case NOTIFICATION_ENTER_TREE: {
|
|
@@ -159,10 +163,6 @@ void ColorPicker::_update_theme_item_cache() {
|
|
|
theme_cache.base_scale = get_theme_default_base_scale();
|
|
|
}
|
|
|
|
|
|
-Ref<Shader> ColorPicker::wheel_shader;
|
|
|
-Ref<Shader> ColorPicker::circle_shader;
|
|
|
-Ref<Shader> ColorPicker::circle_ok_color_shader;
|
|
|
-
|
|
|
void ColorPicker::init_shaders() {
|
|
|
wheel_shader.instantiate();
|
|
|
wheel_shader->set_code(R"(
|