summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-07-26 18:55:31 +0200
committerGitHub <noreply@github.com>2019-07-26 18:55:31 +0200
commit39579d2a6d1a59edfd49d054804f173f0d25d900 (patch)
treed867148b284847913843e6d9c0693b69d7fa05e4 /editor/editor_node.cpp
parent67ce3f7424250907681e50e3340a3950b000ca95 (diff)
parent6f6a9d9c09c0cca1afc8701cccbf504c52054aad (diff)
downloadredot-engine-39579d2a6d1a59edfd49d054804f173f0d25d900.tar.gz
Merge pull request #30839 from Calinou/simplify-dim-editor-settings
Simplify editor settings related to window dimming
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 5705629c56..e9a28368bf 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2615,7 +2615,7 @@ void EditorNode::_exit_editor() {
// Dim the editor window while it's quitting to make it clearer that it's busy.
// No transition is applied, as the effect needs to be visible immediately
- float c = 1.0f - float(EDITOR_GET("interface/editor/dim_amount"));
+ float c = 0.4f;
Color dim_color = Color(c, c, c);
gui_base->set_modulate(dim_color);
@@ -5051,9 +5051,8 @@ void EditorNode::_start_dimming(bool p_dimming) {
void EditorNode::_dim_timeout() {
_dim_time += _dim_timer->get_wait_time();
- float wait_time = EditorSettings::get_singleton()->get("interface/editor/dim_transition_time");
-
- float c = 1.0f - (float)EditorSettings::get_singleton()->get("interface/editor/dim_amount");
+ float wait_time = 0.08f;
+ float c = 0.4f;
Color base = _dimming ? Color(1, 1, 1) : Color(c, c, c);
Color final = _dimming ? Color(c, c, c) : Color(1, 1, 1);