diff options
| author | Poommetee Ketson | 2017-07-04 05:52:45 +0700 |
|---|---|---|
| committer | Poommetee Ketson | 2017-07-18 09:43:16 +0700 |
| commit | 668d00ff2d0d0673ae2c02310fd1cdffec4a2940 (patch) | |
| tree | 3e28902adfbbf6ddb14997a56d1fb9aeed7b823d /editor/property_editor.cpp | |
| parent | f36cd77feb9790847c6123eccfa18be74fc89b32 (diff) | |
| download | godot-668d00ff2d0d0673ae2c02310fd1cdffec4a2940.tar.gz godot-668d00ff2d0d0673ae2c02310fd1cdffec4a2940.tar.zst godot-668d00ff2d0d0673ae2c02310fd1cdffec4a2940.zip | |
Fix ColorPicker to use theme constants
Diffstat (limited to 'editor/property_editor.cpp')
| -rw-r--r-- | editor/property_editor.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 8a9fd2cde..7c9420eca 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -815,16 +815,12 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: color_picker = memnew(ColorPicker); add_child(color_picker); color_picker->hide(); - color_picker->set_area_as_parent_rect(); - for (int i = 0; i < 4; i++) - color_picker->set_margin((Margin)i, 5); color_picker->connect("color_changed", this, "_color_changed"); } color_picker->show(); color_picker->set_edit_alpha(hint != PROPERTY_HINT_COLOR_NO_ALPHA); color_picker->set_pick_color(v); - set_size(Size2(307 * EDSCALE, 460 * EDSCALE)); color_picker->set_focus_on_line_edit(); /* int ofs=80; |
