Skip to content

Commit fd1d911

Browse files
Added README.md and LICENSE
1 parent ebf457f commit fd1d911

File tree

5 files changed

+66
-6
lines changed

5 files changed

+66
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Gradle files
22
.gradle/
33
build/
4+
gradle/
45

56
# Local configuration file (sdk path, etc)
67
local.properties

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 syntaxerror247
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Android System Bar Color Changer
2+
3+
This Plugin enables to dynamically change the system bar colors (status bar and navigation bar) of your godot android app.
4+
5+
## Installation
6+
Steps:
7+
- download latest release from Github [releases](https://github.com/syntaxerror247/godot-android-system-bar-color-changer/releases)
8+
- unzip the release archive
9+
- copy addon to your Godot project's root directory
10+
- enable the plugin via the `Plugins` tab of `Project->Project Settings...` menu, in the Godot Editor
11+
12+
## How to use
13+
1. Turn on gradle build in your project
14+
- Follow instructions on the following page to create an Android gradle build
15+
[Create Android gradle build](https://docs.godotengine.org/en/stable/tutorials/export/android_gradle_build.html)
16+
17+
2. Turn off immersive_mode in Android exprot present (to make system bar visible)
18+
3. open themes.xml ```[project root]/android/build/res/values/themes.xml```
19+
- add this in GodotAppMainTheme style
20+
```
21+
<item name ="android:windowDrawsSystemBarBackgrounds">true</item>
22+
```
23+
24+
4. Add `SystemBarColorChanger` node to your scene
25+
- To change status bar color
26+
```
27+
$SystemBarColorChanger.set_status_bar_color(color)
28+
```
29+
- To change navigation bar color
30+
```
31+
$SystemBarColorChanger.set_navigation_bar_color(color)
32+
```
33+
- If you want to have light status bar eg. WHITE
34+
```
35+
$SystemBarColorChanger.lightStatusBar = true
36+
```
37+
---
38+
## Demo Project
39+
***You can try this plugin using demo project: [Demo Project](plugin/demo)***
40+
41+
https://github.com/user-attachments/assets/7e87834b-de21-4dec-9b8a-60a2d0b95beb
42+
43+
## Credits
44+
**Developed By: Anish [syntaxerror247](https://github.com/syntaxerror247)**

gradle/wrapper/gradle-wrapper.jar

-57.8 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

-6
This file was deleted.

0 commit comments

Comments
 (0)