Edit of asset "Dark Mode Signal" Accepted
| Old/Current | New/Edit | |
|---|---|---|
| Title | Dark Mode Signal | Dark Mode Signal |
| Description |
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 |
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 |
| Category | Scripts | Scripts |
| License | MIT | MIT |
| Repository Provider | GitHub | GitHub |
| Repository Url | https://github.com/dmgsoftware/dark_mode | https://github.com/dmgsoftware/dark_mode |
| Issues Url | https://github.com/dmgsoftware/dark_mode/issues | https://github.com/dmgsoftware/dark_mode/issues |
| Godot version | Godot 4.0 | Godot 4.0 |
| Version String | 1.0.0 | 1.0.0 |
| Download Commit | 5c278e5a18fa4637d893ea99cfb5748e500e6bd4 | 5c278e5a18fa4637d893ea99cfb5748e500e6bd4 |
| Download Url (Computed) | https://github.com/dmgsoftware/dark_mode/archive/5c278e5a18fa4637d893ea99cfb5748e500e6bd4.zip | https://github.com/dmgsoftware/dark_mode/archive/5c278e5a18fa4637d893ea99cfb5748e500e6bd4.zip |
| Icon Url |
https://raw.githubusercontent.com/dmgsoftware/dark_mode/refs/heads/main/dark_mode_icon.png
|
https://raw.githubusercontent.com/dmgsoftware/dark_mode/refs/heads/main/dark_mode_icon.png
|