summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-05-12 09:40:24 +0200
committerGitHub <noreply@github.com>2018-05-12 09:40:24 +0200
commitfb8f71fe54d32487e6ac6fa90b783b7fa74d7170 (patch)
treee9bfedd563c9be06874b060758d7c90ae6d3e197
parentd5a0d653c8936b8439a8ab978bdf7495337ec557 (diff)
parenta081507be7bec45400fd52f75c0476d4e713a4dc (diff)
Merge pull request #18788 from Chaosus/fixblackpreviews
Fix black script previews
-rw-r--r--editor/plugins/editor_preview_plugins.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/editor/plugins/editor_preview_plugins.cpp b/editor/plugins/editor_preview_plugins.cpp
index 8542296bde..d76c515c1f 100644
--- a/editor/plugins/editor_preview_plugins.cpp
+++ b/editor/plugins/editor_preview_plugins.cpp
@@ -467,15 +467,6 @@ Ref<Texture> EditorScriptPreviewPlugin::generate(const RES &p_from) {
Color text_color = EditorSettings::get_singleton()->get("text_editor/highlighting/text_color");
Color symbol_color = EditorSettings::get_singleton()->get("text_editor/highlighting/symbol_color");
- if (EditorSettings::get_singleton()->get("text_editor/theme/color_theme") == "Adaptive") {
- Ref<Theme> tm = EditorNode::get_singleton()->get_theme_base()->get_theme();
-
- bg_color = tm->get_color("text_editor/highlighting/background_color", "Editor");
- keyword_color = tm->get_color("text_editor/highlighting/keyword_color", "Editor");
- text_color = tm->get_color("text_editor/highlighting/text_color", "Editor");
- symbol_color = tm->get_color("text_editor/highlighting/symbol_color", "Editor");
- }
-
img->lock();
if (bg_color.a == 0)