summaryrefslogtreecommitdiff
path: root/servers/display_server.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2023-01-11 19:14:43 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2023-01-12 21:42:51 +0100
commitd0e37cd04c5a5a2f3dbd15ab192a70ddd02710a0 (patch)
tree94500a37cfb31e4bc8f16341eb2cc8420e1a078c /servers/display_server.h
parent73ab51465748a15ed4d80d66a44db83bfe574bb6 (diff)
Add framework for avoidance of color flash in new windows
Diffstat (limited to 'servers/display_server.h')
-rw-r--r--servers/display_server.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/servers/display_server.h b/servers/display_server.h
index 0e4c8aa172..f8ade60aca 100644
--- a/servers/display_server.h
+++ b/servers/display_server.h
@@ -217,6 +217,16 @@ public:
virtual bool is_dark_mode() const { return false; };
virtual Color get_accent_color() const { return Color(0, 0, 0, 0); };
+private:
+ static bool window_early_clear_override_enabled;
+ static Color window_early_clear_override_color;
+
+protected:
+ static bool _get_window_early_clear_override(Color &r_color);
+
+public:
+ static void set_early_window_clear_color_override(bool p_enabled, Color p_color = Color(0, 0, 0, 0));
+
enum MouseMode {
MOUSE_MODE_VISIBLE,
MOUSE_MODE_HIDDEN,