diff options
Diffstat (limited to 'editor/import_dock.cpp')
-rw-r--r-- | editor/import_dock.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 6662fa9f21..a60f5d7294 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -28,6 +28,7 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include "import_dock.h" +#include "editor_node.h" class ImportDockParameters : public Object { GDCLASS(ImportDockParameters, Object) @@ -350,6 +351,15 @@ void ImportDock::_reimport() { EditorFileSystem::get_singleton()->emit_signal("filesystem_changed"); //it changed, so force emitting the signal } +void ImportDock::_notification(int p_what) { + switch (p_what) { + + case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { + + imported->add_style_override("normal", get_stylebox("normal", "LineEdit")); + } break; + } +} void ImportDock::_bind_methods() { ClassDB::bind_method(D_METHOD("_reimport"), &ImportDock::_reimport); @@ -365,8 +375,8 @@ void ImportDock::initialize_import_options() const { ImportDock::ImportDock() { - imported = memnew(LineEdit); - imported->set_editable(false); + imported = memnew(Label); + imported->add_style_override("normal", EditorNode::get_singleton()->get_gui_base()->get_stylebox("normal", "LineEdit")); add_child(imported); HBoxContainer *hb = memnew(HBoxContainer); add_margin_child(TTR("Import As:"), hb); |