From e1e39c308e74fb3043361022cb339aa5c0119ca6 Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Tue, 5 Aug 2025 16:16:28 +0530 Subject: [PATCH 1/2] Disable changing status bar visibility --- src/autoload/Configs.gd | 2 +- src/autoload/HandlerGUI.gd | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/autoload/Configs.gd b/src/autoload/Configs.gd index 13324c2..1f882de 100644 --- a/src/autoload/Configs.gd +++ b/src/autoload/Configs.gd @@ -44,7 +44,7 @@ func check_orientation(): if new_orientation != current_orientation: current_orientation = new_orientation orientation_changed.emit() - HandlerGUI.toogle_status_bar(new_orientation == orientation.PORTRAIT) + #HandlerGUI.toogle_status_bar(new_orientation == orientation.PORTRAIT) const savedata_path = "user://savedata.tres" var savedata: SaveData: diff --git a/src/autoload/HandlerGUI.gd b/src/autoload/HandlerGUI.gd index 0542d4f..29cb311 100644 --- a/src/autoload/HandlerGUI.gd +++ b/src/autoload/HandlerGUI.gd @@ -98,7 +98,7 @@ func _ready() -> void: android_runtime = Engine.get_singleton("AndroidRuntime") set_system_bar_color(ThemeUtils.base_color, true) - toogle_status_bar(Configs.current_orientation == Configs.orientation.PORTRAIT) + #toogle_status_bar(Configs.current_orientation == Configs.orientation.PORTRAIT) var version = JavaClassWrapper.wrap("android.os.Build$VERSION") if version: Configs.current_sdk = version.SDK_INT @@ -113,10 +113,10 @@ func _ready() -> void: get_tree().root.add_child.call_deferred(overlay_ref) overlay_ref.add_child(tabs_panel) -func _notification(what: int) -> void: - if what == NOTIFICATION_APPLICATION_RESUMED: - if not status_bar_visible: - toogle_status_bar(false, true) +#func _notification(what: int) -> void: + #if what == NOTIFICATION_APPLICATION_RESUMED: + #if not status_bar_visible: + #toogle_status_bar(false, true) # Drag-and-drop of files. func _on_files_dropped(files: PackedStringArray) -> void: From 9e177c84e2612f21a6af4a3f0af5bb818bfa816b Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Tue, 5 Aug 2025 16:20:48 +0530 Subject: [PATCH 2/2] Disable system bar color change --- src/autoload/HandlerGUI.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autoload/HandlerGUI.gd b/src/autoload/HandlerGUI.gd index 29cb311..ca0b1bc 100644 --- a/src/autoload/HandlerGUI.gd +++ b/src/autoload/HandlerGUI.gd @@ -97,7 +97,7 @@ func _ready() -> void: update_ui_scale() android_runtime = Engine.get_singleton("AndroidRuntime") - set_system_bar_color(ThemeUtils.base_color, true) + #set_system_bar_color(ThemeUtils.base_color, true) #toogle_status_bar(Configs.current_orientation == Configs.orientation.PORTRAIT) var version = JavaClassWrapper.wrap("android.os.Build$VERSION") if version: Configs.current_sdk = version.SDK_INT