Skip to content

Commit 9e266d9

Browse files
Update README.md
1 parent 17d96f4 commit 9e266d9

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

README.md

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="200" src="plugin/demo/icon.png?raw=true" alt="plugin icon">
2+
<img width="200" src="SystemBarColorChanger/icon.png?raw=true" alt="plugin icon">
33
</p>
44

55
# Android System Bar Color Changer [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/syntaxerror247)
@@ -14,12 +14,11 @@ Steps:
1414
- enable the plugin via the `Plugins` tab of `Project->Project Settings...` menu, in the Godot Editor.
1515

1616
## How to use
17-
1. Turn on gradle build in your project.
18-
- Follow instructions on the following page to create an [Android gradle build](https://docs.godotengine.org/en/stable/tutorials/export/android_gradle_build.html).
17+
1. Make the system bar visible
18+
- Disable `immersive_mode` in the Android export settings, **or**
19+
- Use [`window_set_mode`](https://docs.godotengine.org/en/stable/classes/class_displayserver.html#class-displayserver-method-window-set-mode) to toggle it at runtime.
1920

20-
2. Turn off immersive_mode in Android exprot settings (to make system bar visible).
21-
22-
3. Add `SystemBarColorChanger` node to your scene and reference it in a variable named SystemBarColorChanger.
21+
3. Call the required methods anywhere in your project:
2322
- To change status bar color
2423
```
2524
SystemBarColorChanger.set_status_bar_color(color)
@@ -28,15 +27,6 @@ Steps:
2827
```
2928
SystemBarColorChanger.set_navigation_bar_color(color)
3029
```
31-
- If you want to have light status bar eg. WHITE (Note: You will have to call set_status_bar_color() to update changes)
32-
```
33-
SystemBarColorChanger.lightStatusBar = true
34-
```
35-
- If you want to have light navigation bar eg. WHITE (Note: You will have to call set_navigation_bar_color() to update changes)
36-
```
37-
SystemBarColorChanger.lightNavigationBar = true
38-
```
39-
4. Enable/disable Translucent system bars.
4030
- To enable translucent system bars
4131
```
4232
SystemBarColorChanger.set_translucent_system_bars(true)
@@ -48,7 +38,7 @@ Steps:
4838

4939
---
5040
## Demo Project
51-
***You can try this plugin using demo project: [Demo Project](plugin/demo)***
41+
***You can try this plugin using demo project: [Demo Project](demo)***
5242

5343
https://github.com/user-attachments/assets/7e87834b-de21-4dec-9b8a-60a2d0b95beb
5444

0 commit comments

Comments
 (0)