aboutsummaryrefslogtreecommitdiff
path: root/editor/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
authortoger52017-08-04 21:41:31 +0200
committertoger52017-08-05 01:33:46 +0200
commitf035e4a24abf9e7c8e72ffdf3c5e6c2968c4393c (patch)
tree8322c428feb70f85063a5990c0e8e1d2a2eba09f /editor/asset_library_editor_plugin.cpp
parentf79a5c464b95bdd274a4e9e5ff4713c7de2be011 (diff)
downloadgodot-f035e4a24abf9e7c8e72ffdf3c5e6c2968c4393c.tar.gz
godot-f035e4a24abf9e7c8e72ffdf3c5e6c2968c4393c.tar.zst
godot-f035e4a24abf9e7c8e72ffdf3c5e6c2968c4393c.zip
fixed loading old theme styleboxes
Diffstat (limited to 'editor/asset_library_editor_plugin.cpp')
-rw-r--r--editor/asset_library_editor_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/asset_library_editor_plugin.cpp b/editor/asset_library_editor_plugin.cpp
index f92b70d0c..559a0db57 100644
--- a/editor/asset_library_editor_plugin.cpp
+++ b/editor/asset_library_editor_plugin.cpp
@@ -281,7 +281,7 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {
description = memnew(RichTextLabel);
description->connect("meta_clicked", this, "_link_click");
desc_bg->add_child(description);
- desc_bg->add_style_override("panel", get_stylebox("normal", "TextEdit"));
+ desc_bg->add_style_override("panel", EditorNode::get_singleton()->get_gui_base()->get_stylebox("normal", "TextEdit"));
preview = memnew(TextureRect);
preview->set_custom_minimum_size(Size2(640, 345));
@@ -290,7 +290,7 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {
PanelContainer *previews_bg = memnew(PanelContainer);
vbox->add_child(previews_bg);
previews_bg->set_custom_minimum_size(Size2(0, 85));
- previews_bg->add_style_override("panel", get_stylebox("normal", "TextEdit"));
+ previews_bg->add_style_override("panel", EditorNode::get_singleton()->get_gui_base()->get_stylebox("normal", "TextEdit"));
previews = memnew(ScrollContainer);
previews_bg->add_child(previews);
@@ -1362,7 +1362,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
PanelContainer *library_scroll_bg = memnew(PanelContainer);
library_main->add_child(library_scroll_bg);
- library_scroll_bg->add_style_override("panel", get_stylebox("normal", "TextEdit"));
+ library_scroll_bg->add_style_override("panel", EditorNode::get_singleton()->get_gui_base()->get_stylebox("bg", "Tree"));
library_scroll_bg->set_v_size_flags(SIZE_EXPAND_FILL);
library_scroll = memnew(ScrollContainer);