FORUMS

[Guide][LP] How to Tint Navbar Color to StatusBar Color

130 posts
Thanks Meter: 412
 
By idid idamrep, Senior Member on 17th August 2015, 02:44 PM
Post Reply Email Thread
Hi xda

I found very simple way to get tinted navbar color to status bar color in some popular apps like Gmail, YouTube, DropBox. This not affect to all apps.
And I'm sorry if this is repost

Requirements:
- Know how to decompile recompile
- ApkTool
- Java installed
- Notepad++
- framework-res.apk

Steps:
1. Decompile framework-res.apk
2. Open res/values/styles.xml
3. Search
Code:
<style name="Theme">
scroll down until you find
Code:
<item name="statusBarColor">@color/black</item>
<item name="navigationBarColor">@color/black</item>
change it to
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">?colorPrimaryDark</item>

4. Search
Code:
<style name="Theme.Material" parent="@style/Theme">
scroll down until you find
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">@color/black</item>
change it to
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">?colorPrimaryDark</item>

5. Search
Code:
<style name="Theme.Material.Light" parent="@style/Theme.Light">
scroll down until you find
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">@color/black</item>
change it to
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">?colorPrimaryDark</item>

6. Recompile, sign, push it to system.

ONLY TESTED ON CM12, CM12.1, RR, PA. BUT I THINK IT'LL WORK ALSO ON STOCK ROM

KNOWN ISSUES:
- Only work in portrait mode
- Navbar color went black when keyboard opened


BEFORE

AFTER
The Following 47 Users Say Thank You to idid idamrep For This Useful Post: [ View ] Gift idid idamrep Ad-Free
18th August 2015, 06:02 AM |#3  
Senior Member
Flag thanh hóa
Thanks Meter: 38
 
More
thank bro
The Following User Says Thank You to Quoclam851995 For This Useful Post: [ View ] Gift Quoclam851995 Ad-Free
18th August 2015, 07:53 AM |#4  
eymentuna's Avatar
Senior Member
Flag Osmaniye
Thanks Meter: 54
 
More
Angry
request



Navbar Color to StatusBar Color

xperia z3 compact 5.0.2


framework-res.apk

sytem/framework/ framework-res.apk/rw--r--r--
18th August 2015, 01:11 PM |#6  
MarcoReckless's Avatar
Senior Member
Flag Viadana
Thanks Meter: 42
 
Donate to Me
More
Quote:
Originally Posted by idid idamrep

Hi xda

I found very simple way to get tinted navbar color to status bar color in some popular apps like Gmail, YouTube, DropBox. This not affect to all apps.
And I'm sorry if this is repost

Requirements:
- Know how to decompile recompile
- ApkTool
- Java installed
- Notepad++
- framework-res.apk

Steps:
1. Decompile framework-res.apk
2. Open res/values/styles.xml
3. Search

Code:
<style name="Theme">
scroll down until you find
Code:
<item name="statusBarColor">@color/black</item>
<item name="navigationBarColor">@color/black</item>
change it to
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">?colorPrimaryDark</item>

4. Search
Code:
<style name="Theme.Material" parent="@style/Theme">
scroll down until you find
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">@color/black</item>
change it to
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">?colorPrimaryDark</item>

5. Search
Code:
<style name="Theme.Material.Light" parent="@style/Theme.Light">
scroll down until you find
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">@color/black</item>
change it to
Code:
<item name="statusBarColor">?colorPrimaryDark</item>
<item name="navigationBarColor">?colorPrimaryDark</item>

6. Recompile, sign, push it to system.

ONLY TESTED ON CM12, CM12.1, RR, PA. BUT I THINK IT'LL WORK ALSO ON STOCK ROM

BEFORE

AFTER

Cool guide, but i have 2 questions, how did u get that carrier logo, and is there a way to do the tint, but for all apps? (like Lolistat)
20th August 2015, 09:44 AM |#7  
OP Senior Member
Thanks Meter: 412
 
More
Quote:
Originally Posted by Syzew

Cool guide, but i have 2 questions, how did u get that carrier logo, and is there a way to do the tint, but for all apps? (like Lolistat)

it's resurrection remix carrier logo, I changed it to xperia :v
yes, there is. to get tinted in all apps, need to add smali to SystemUI, add package name and hex code to smali.
go here http://forum.xda-developers.com/andr...g-app-t3048978
21st August 2015, 03:45 PM |#8  
Araib93's Avatar
Senior Member
Flag Rawalpindi
Thanks Meter: 210
 
More
There is a problem with this mod, though it works fine but in messaging app it chooses color of main screen and keeps it through out other conversations (image attached for explanation)

Edit: Also navbar is black when keyboard is opened.. Thought it would be same color as status bar..
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-08-21-19-40-24.png
Views:	1444
Size:	38.1 KB
ID:	3446778   Click image for larger version

Name:	Screenshot_2015-08-21-19-47-53.png
Views:	1416
Size:	70.3 KB
ID:	3446780  
23rd August 2015, 03:45 AM |#9  
Rajeev's Avatar
Recognized Contributor
Flag Chennai , I N D I A
Thanks Meter: 26,587
 
Donate to Me
More
Quote:
Originally Posted by Araib93

There is a problem with this mod, though it works fine but in messaging app it chooses color of main screen and keeps it through out other conversations (image attached for explanation)

Edit: Also navbar is black when keyboard is opened.. Thought it would be same color as status bar..

http://forum.xda-developers.com/cros...rials-t3173217
23rd August 2015, 09:03 AM |#10  
Araib93's Avatar
Senior Member
Flag Rawalpindi
Thanks Meter: 210
 
More
Quote:
Originally Posted by Rajeev

http://forum.xda-developers.com/cros...rials-t3173217

Not using Official Sony Android so nope that guide doesn't work (for AOSP, since the strings he ask to search are not present in AOSP in the first place)
23rd August 2015, 01:08 PM |#11  
Nicklas Van Dam's Avatar
Senior Member
Flag Tangerang
Thanks Meter: 1,382
 
Donate to Me
More
Thanks !!! , worked correctly on Xperia M (Nicki) running with ArchiDroid v 3.1.1
The Following User Says Thank You to Nicklas Van Dam For This Useful Post: [ View ] Gift Nicklas Van Dam Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes