Change Navigation bar colors without root or extra apps/themes

themasv

Senior Member
May 5, 2017
59
14
0
Tallinn
Transparency is possible by adding transparency value to beginning of hex number. It somewhat tricky to calculate because integers overflows and wraps around to negative values.

Formula is:
1. Add transparency value to beginning
2. Convert to decimal
3. Substract 4294967296 if it is greater than 2147483647

For example if you want color "34 bd 3c" and make it fully transparent you must prepend "ff" and the number becomes "ff 34 bd 3c". Convert it to decimal: 4281646396. Substract: 4281646396-4294967296=−13320900. So −13320900 is the value you want.
−13320900 just makes it white
 

haksancan

Senior Member
Jun 20, 2013
95
112
0
−13320900 just makes it white
-13320900 makes it green on my phone (see the screenshot)

First of all, my above calculation is slightly incorrect because I used "ff" as transparency value and said it is transparent even though it is indeed totally opaque. It must be 00 for transparent and ff for opaque. Using 00 makes the result 3456316 which is indeed white as you said. The reason it is white is because symbol color is white and you make the background totally transparent. So background color doesn't matter at all. On a white screen like the settings app you'll see total white. On a dark app you'll see the regular black background with white symbols.
 

Attachments

Xxk1ll3rxX

Senior Member
Jun 20, 2017
78
25
0
Is there any way to change the colours of the stock icons in the navbar? Is there is any overlay with substratum, because I want it to be a specific blue. I have a picture of the navbar icons in the blue but I'm not allowed to upload pictures on this website yet.
 

MarkerBeanXDA

Senior Member
Jan 14, 2017
339
77
0
Hey guys, just a question pop up in my mind, can we make the navbar (both background and button) completely transparent, so we can see through the navbar in any app, and the buttons are still there when we need to use? Is it possible to do it?
I'm also looking for somethinf like this. It makes perfect sense as this will give us a really full screen experience all throughout the device.
 

MarkerBeanXDA

Senior Member
Jan 14, 2017
339
77
0
Transparency is possible by adding transparency value to beginning of hex number. It somewhat tricky to calculate because integers overflows and wraps around to negative values.

Formula is:
1. Add transparency value to beginning
2. Convert to decimal
3. Substract 4294967296 if it is greater than 2147483647

For example if you want color "34 bd 3c" and make it fully transparent you must prepend "ff" and the number becomes "ff 34 bd 3c". Convert it to decimal: 4281646396. Substract: 4281646396-4294967296=−13320900. So −13320900 is the value you want.
Hi, thank you for this information. Can you help me to get the transparent navbar background without using PC? I am currently rooted. Is there any other way to do this without pc?
 

haksancan

Senior Member
Jun 20, 2013
95
112
0
Hey guys, just a question pop up in my mind, can we make the navbar (both background and button) completely transparent, so we can see through the navbar in any app, and the buttons are still there when we need to use? Is it possible to do it?
not sure if it works in all situations because some apps still may set different colors but Yes you can by Setting it to fully transparent black.(value should be 0 though I didnt confirm it)
Note that in this case you cant see buttons when the app has white background, but they'll still work.
 

thedicemaster

Senior Member
May 10, 2009
1,747
852
133
you can use autotools to change the values without ADB.
you only need to give autotools secure settings permissions through ADB once, and then you can change colors whenever you want.