diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-06-08 21:03:27 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-06-08 21:03:27 -0300 |
commit | 257d3c3f39fd144d202f112c9cb08a82c174afbc (patch) | |
tree | 5908f0e7921151ade917e2a8ef98a5e107259f1f | |
parent | e5b876e92a76a6521840ccda7bb16e49967fff8d (diff) |
Bit more of visual polish
-rw-r--r-- | editor/animation_track_editor.cpp | 9 | ||||
-rw-r--r-- | editor/animation_track_editor.h | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index c37b311506..6b5dfde0b9 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -3421,6 +3421,7 @@ void AnimationTrackEditor::_notification(int p_what) { snap->set_icon(get_icon("Snap", "EditorIcons")); view_group->set_icon(get_icon(view_group->is_pressed() ? "AnimationTrackList" : "AnimationTrackGroup", "EditorIcons")); selected_filter->set_icon(get_icon("AnimationFilter", "EditorIcons")); + main_panel->add_style_override("panel", get_stylebox("bg", "Tree")); } if (p_what == NOTIFICATION_READY) { @@ -4762,8 +4763,12 @@ AnimationTrackEditor::AnimationTrackEditor() { block_animation_update = false; undo_redo = EditorNode::get_singleton()->get_undo_redo(); + + main_panel = memnew(PanelContainer); + add_child(main_panel); + main_panel->set_v_size_flags(SIZE_EXPAND_FILL); HBoxContainer *timeline_scroll = memnew(HBoxContainer); - add_child(timeline_scroll); + main_panel->add_child(timeline_scroll); timeline_scroll->set_v_size_flags(SIZE_EXPAND_FILL); VBoxContainer *timeline_vbox = memnew(VBoxContainer); @@ -4815,7 +4820,7 @@ AnimationTrackEditor::AnimationTrackEditor() { scroll->set_enable_v_scroll(true); track_vbox->add_constant_override("separation", 0); - timeline_vbox->add_child(memnew(HSeparator)); + //timeline_vbox->add_child(memnew(HSeparator)); HBoxContainer *bottom_hb = memnew(HBoxContainer); add_child(bottom_hb); bottom_hb->add_spacer(); diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h index 92caa8d408..0692c88bea 100644 --- a/editor/animation_track_editor.h +++ b/editor/animation_track_editor.h @@ -268,6 +268,7 @@ class AnimationTrackEditor : public VBoxContainer { MenuButton *edit; + PanelContainer *main_panel; HScrollBar *hscroll; ScrollContainer *scroll; VBoxContainer *track_vbox; |