Dark Mode Signal's icon

Dark Mode Signal 1.0.0 Scripts 4.0 Community

Submitted by user dmgsoftware; MIT; 2025-01-30

Provides a global DarkMode singleton node which generates a signal when dark mode is turned on or off. Dark mode is checked every 1 second by default.

Connect to the signal as follows:
DarkMode.dark_mode_changed.connect(func(is_dark_mode):
print("Is dark mode: ", is_dark_mode)
)

Provides an alternative to DisplayServer.is_dark_mode() with:
DarkMode.is_dark_mode()

Polling can be updated either via inspecting the global DarkMode node or:
DarkMode.polling_interval = 2.0 # check every 2 seconds


View files Download Submit an issue Recent Edits