diff options
author | SaracenOne <SaracenOne@gmail.com> | 2022-04-29 07:06:48 +0100 |
---|---|---|
committer | SaracenOne <SaracenOne@gmail.com> | 2022-08-23 23:16:13 +0100 |
commit | dd814a0dca13d28edf20d71c79bb0a0d99954685 (patch) | |
tree | 07f0db834590cc7c16630fc52cdd918d3f52bdfd /editor/editor_themes.cpp | |
parent | 34aa6b06a7002469ee54541067ce3c39bf42815a (diff) | |
download | redot-engine-dd814a0dca13d28edf20d71c79bb0a0d99954685.tar.gz |
Disable editing properties in foreign resources
from imported scenes or objects returning
true from a function named '_is_read_only' and
disable resaving imported resources.
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r-- | editor/editor_themes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 0c17469e86..742813666f 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -518,8 +518,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { Color warning_color = Color(1, 0.87, 0.4); Color error_color = Color(1, 0.47, 0.42); Color property_color = font_color.lerp(Color(0.5, 0.5, 0.5), 0.5); - Color readonly_color = property_color.lerp(dark_theme ? Color(0, 0, 0) : Color(1, 1, 1), 0.5); - Color readonly_warning_color = error_color.lerp(dark_theme ? Color(0, 0, 0) : Color(1, 1, 1), 0.5); + Color readonly_color = property_color.lerp(dark_theme ? Color(0, 0, 0) : Color(1, 1, 1), 0.25); + Color readonly_warning_color = error_color.lerp(dark_theme ? Color(0, 0, 0) : Color(1, 1, 1), 0.25); if (!dark_theme) { // Darken some colors to be readable on a light background |