Skip to content

syntaxerror247/godot-android-system-bar-color-changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin icon

Android System Bar Color Changer

This Plugin enables to dynamically change the system bar colors (status bar and navigation bar) of your godot android app.

Installation

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 of Project->Project Settings... menu, in the Godot Editor.

How to use

  1. Make the system bar visible

    • Disable immersive_mode in the Android export settings, or
    • Use window_set_mode to toggle it at runtime.
  2. Call the required methods anywhere in your project:

    • To change status bar color
      SystemBarColorChanger.set_status_bar_color(color)
    
    • To change navigation bar color
      SystemBarColorChanger.set_navigation_bar_color(color)
    
    • To enable translucent system bars
       SystemBarColorChanger.set_translucent_system_bars(true)
    
    • To disable translucent system bars
       SystemBarColorChanger.set_translucent_system_bars(false)
    

Demo Project

You can try this plugin using demo project: Demo Project

demopreview.mp4

Credits

Developed By: Anish syntaxerror247