You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
This commit is contained in:
@@ -1837,7 +1837,7 @@ void CanvasItemEditor::_viewport_draw() {
|
||||
if (h_scroll->is_visible_in_tree())
|
||||
size.height -= h_scroll->get_size().height;
|
||||
|
||||
get_stylebox("EditorFocus", "EditorStyles")->draw(ci, Rect2(Point2(), size));
|
||||
get_stylebox("Focus", "EditorStyles")->draw(ci, Rect2(Point2(), size));
|
||||
}
|
||||
|
||||
Ref<Texture> lock = get_icon("Lock", "EditorIcons");
|
||||
@@ -3123,7 +3123,6 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
editor_selection->connect("selection_changed", this, "update");
|
||||
|
||||
hb = memnew(HBoxContainer);
|
||||
hb->add_style_override("bg", editor->get_gui_base()->get_stylebox("panel", "PanelContainer"));
|
||||
add_child(hb);
|
||||
hb->set_area_as_parent_rect();
|
||||
|
||||
@@ -3300,8 +3299,6 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
animation_hb->hide();
|
||||
|
||||
key_loc_button = memnew(Button("loc"));
|
||||
key_loc_button = memnew(Button("loc"));
|
||||
key_loc_button->set_flat(true);
|
||||
key_loc_button->set_toggle_mode(true);
|
||||
key_loc_button->set_pressed(true);
|
||||
key_loc_button->set_focus_mode(FOCUS_NONE);
|
||||
@@ -3310,7 +3307,6 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
key_loc_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_POS));
|
||||
animation_hb->add_child(key_loc_button);
|
||||
key_rot_button = memnew(Button("rot"));
|
||||
key_rot_button->set_flat(true);
|
||||
key_rot_button->set_toggle_mode(true);
|
||||
key_rot_button->set_pressed(true);
|
||||
key_rot_button->set_focus_mode(FOCUS_NONE);
|
||||
@@ -3319,14 +3315,13 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
|
||||
key_rot_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_ROT));
|
||||
animation_hb->add_child(key_rot_button);
|
||||
key_scale_button = memnew(Button("scl"));
|
||||
key_scale_button->set_flat(true);
|
||||
key_scale_button->set_toggle_mode(true);
|
||||
key_scale_button->set_focus_mode(FOCUS_NONE);
|
||||
key_scale_button->add_color_override("font_color", Color(1, 0.6, 0.6));
|
||||
key_scale_button->add_color_override("font_color_pressed", Color(0.6, 1, 0.6));
|
||||
key_scale_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_SCALE));
|
||||
animation_hb->add_child(key_scale_button);
|
||||
key_insert_button = memnew(ToolButton);
|
||||
key_insert_button = memnew(Button);
|
||||
key_insert_button->set_focus_mode(FOCUS_NONE);
|
||||
key_insert_button->connect("pressed", this, "_popup_callback", varray(ANIM_INSERT_KEY));
|
||||
key_insert_button->set_tooltip(TTR("Insert Keys"));
|
||||
|
||||
Reference in New Issue
Block a user