This Plugin enables to dynamically change the system bar colors (status bar and navigation bar) of your godot android app.
Steps:
- download latest release from Github releases.
- unzip the release archive.
- copy addon to your Godot project's root directory.
- enable the plugin via the
Plugins
tab ofProject->Project Settings...
menu, in the Godot Editor.
-
Turn on gradle build in your project.
- Follow instructions on the following page to create an Android gradle build.
-
Turn off immersive_mode in Android exprot settings (to make system bar visible).
-
Add
SystemBarColorChanger
node to your scene and reference it in a variable named SystemBarColorChanger.- To change status bar color
SystemBarColorChanger.set_status_bar_color(color)
- To change navigation bar color
SystemBarColorChanger.set_navigation_bar_color(color)
- If you want to have light status bar eg. WHITE (Note: You will have to call set_status_bar_color() to update changes)
SystemBarColorChanger.lightStatusBar = true
- If you want to have light navigation bar eg. WHITE (Note: You will have to call set_navigation_bar_color() to update changes)
SystemBarColorChanger.lightNavigationBar = true
-
Enable/disable Translucent system bars.
- To enable translucent system bars
SystemBarColorChanger.set_translucent_system_bars(true)
- To disable translucent system bars
SystemBarColorChanger.set_translucent_system_bars(false)
You can try this plugin using demo project: Demo Project
demopreview.mp4
Developed By: Anish syntaxerror247