You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Add method to get "base" system UI color (macOS/Windows) and system theme change callback.
This commit is contained in:
@@ -275,6 +275,10 @@ bool DisplayServerWayland::is_dark_mode() const {
|
||||
}
|
||||
}
|
||||
|
||||
void DisplayServerWayland::set_system_theme_change_callback(const Callable &p_callable) {
|
||||
portal_desktop->set_system_theme_change_callback(p_callable);
|
||||
}
|
||||
|
||||
Error DisplayServerWayland::file_dialog_show(const String &p_title, const String &p_current_directory, const String &p_filename, bool p_show_hidden, FileDialogMode p_mode, const Vector<String> &p_filters, const Callable &p_callback) {
|
||||
WindowID window_id = MAIN_WINDOW_ID;
|
||||
// TODO: Use window IDs for multiwindow support.
|
||||
|
||||
Reference in New Issue
Block a user