summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 13:54:46 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 13:54:46 +0200
commitf81a4b2478fb3afa24a4ff38afd62cec86e5b9cd (patch)
treedfe59a5df67ab0df11948e593664a30a22fbd14b /doc/classes
parent4fa3675ffa96b1a3c1c9e4aa46fe6f2bebcbb4f7 (diff)
parent629ae58a8064e30860dcf83f71a1abe9560cc59c (diff)
Merge pull request #65026 from bruvzg/dark_mode
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/DisplayServer.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml
index 1d225aa06e..e2b87de5d9 100644
--- a/doc/classes/DisplayServer.xml
+++ b/doc/classes/DisplayServer.xml
@@ -104,6 +104,13 @@
<description>
</description>
</method>
+ <method name="get_accent_color" qualifiers="const">
+ <return type="Color" />
+ <description>
+ Returns OS theme accent color. Returns [code]Color(0, 0, 0, 0)[/code], if accent color is unknown.
+ [b]Note:[/b] This method is implemented on macOS and Windows.
+ </description>
+ </method>
<method name="get_display_cutouts" qualifiers="const">
<return type="Rect2[]" />
<description>
@@ -670,6 +677,20 @@
<description>
</description>
</method>
+ <method name="is_dark_mode" qualifiers="const">
+ <return type="bool" />
+ <description>
+ Returns [code]true[/code] if OS is using dark mode.
+ [b]Note:[/b] This method is implemented on macOS and Windows.
+ </description>
+ </method>
+ <method name="is_dark_mode_supported" qualifiers="const">
+ <return type="bool" />
+ <description>
+ Returns [code]true[/code] if OS supports dark mode.
+ [b]Note:[/b] This method is implemented on macOS and Windows.
+ </description>
+ </method>
<method name="keyboard_get_current_layout" qualifiers="const">
<return type="int" />
<description>