You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Merge pull request #108705 from wjt/dont-poll-system-theme
Do not poll for system theme changes
This commit is contained in:
@@ -9137,12 +9137,6 @@ EditorNode::EditorNode() {
|
|||||||
|
|
||||||
follow_system_theme = EDITOR_GET("interface/theme/follow_system_theme");
|
follow_system_theme = EDITOR_GET("interface/theme/follow_system_theme");
|
||||||
use_system_accent_color = EDITOR_GET("interface/theme/use_system_accent_color");
|
use_system_accent_color = EDITOR_GET("interface/theme/use_system_accent_color");
|
||||||
system_theme_timer = memnew(Timer);
|
|
||||||
system_theme_timer->set_wait_time(1.0);
|
|
||||||
system_theme_timer->connect("timeout", callable_mp(this, &EditorNode::_check_system_theme_changed));
|
|
||||||
add_child(system_theme_timer);
|
|
||||||
system_theme_timer->set_owner(get_owner());
|
|
||||||
system_theme_timer->set_autostart(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorNode::~EditorNode() {
|
EditorNode::~EditorNode() {
|
||||||
|
|||||||
@@ -359,7 +359,6 @@ private:
|
|||||||
|
|
||||||
Ref<Theme> theme;
|
Ref<Theme> theme;
|
||||||
|
|
||||||
Timer *system_theme_timer = nullptr;
|
|
||||||
bool follow_system_theme = false;
|
bool follow_system_theme = false;
|
||||||
bool use_system_accent_color = false;
|
bool use_system_accent_color = false;
|
||||||
bool last_dark_mode_state = false;
|
bool last_dark_mode_state = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user