summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2017-07-04 05:52:45 +0700
committerPoommetee Ketson <poommetee@protonmail.com>2017-07-18 09:43:16 +0700
commit668d00ff2d0d0673ae2c02310fd1cdffec4a2940 (patch)
tree3e28902adfbbf6ddb14997a56d1fb9aeed7b823d /scene/resources
parentf36cd77feb9790847c6123eccfa18be74fc89b32 (diff)
Fix ColorPicker to use theme constants
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/default_theme/default_theme.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index d70d91a17e..3e612c745f 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -761,11 +761,11 @@ void fill_default_theme(Ref<Theme> &t, const Ref<Font> &default_font, const Ref<
// colorPicker
- t->set_constant("value_height", "ColorPicker", 23 * scale);
- t->set_constant("value_width", "ColorPicker", 50 * scale);
- t->set_constant("color_width", "ColorPicker", 100 * scale);
- t->set_constant("label_width", "ColorPicker", 20 * scale);
- t->set_constant("hseparator", "ColorPicker", 4 * scale);
+ t->set_constant("margin", "ColorPicker", 4 * scale);
+ t->set_constant("sv_width", "ColorPicker", 256 * scale);
+ t->set_constant("sv_height", "ColorPicker", 256 * scale);
+ t->set_constant("h_width", "ColorPicker", 30 * scale);
+ t->set_constant("label_width", "ColorPicker", 10 * scale);
t->set_icon("screen_picker", "ColorPicker", make_icon(icon_color_pick_png));
t->set_icon("add_preset", "ColorPicker", make_icon(icon_add_png));