From 629ae58a8064e30860dcf83f71a1abe9560cc59c Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 29 Aug 2022 11:24:48 +0300 Subject: Add support for system dark mode and accent color detection (macOS and Windows). Add support for dark mode title bar on Windows. --- servers/display_server.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'servers/display_server.h') diff --git a/servers/display_server.h b/servers/display_server.h index 0b162fe491..453b6d4f86 100644 --- a/servers/display_server.h +++ b/servers/display_server.h @@ -210,6 +210,10 @@ public: virtual void tts_set_utterance_callback(TTSUtteranceEvent p_event, const Callable &p_callable); virtual void tts_post_utterance_event(TTSUtteranceEvent p_event, int p_id, int p_pos = 0); + virtual bool is_dark_mode_supported() const { return false; }; + virtual bool is_dark_mode() const { return false; }; + virtual Color get_accent_color() const { return Color(0, 0, 0, 0); }; + enum MouseMode { MOUSE_MODE_VISIBLE, MOUSE_MODE_HIDDEN, -- cgit v1.2.3