Change Navigation bar colors without root or extra apps/themes

Mr6P

Senior Member
Dec 21, 2015
58
17
0
put the icons in internal storage, then use this (for new firmware with immersive dot) :
Code:
 settings put secure sysui_nav_bar ";space[0.4],pin[1.0],key(120:file:///storage/emulated/0/navbar/ss.png)[1.4],key(187:file:///storage/emulated/0/navbar/recent.png)[1.6],key(3:file:///storage/emulated/0/navbar/home.png)[2.0],key(4:file:///storage/emulated/0/navbar/back.png)[1.6],key(26:file:///storage/emulated/0/navbar/power.png)[1.4],menu_ime[0.8],home[0.1],recent[0.1],back[0.1];"
Why do you (have to) add "home[0.1],recent[0.1],back[0.1]" at the end? Is this because of the immersive dot or do you really have to add it? It's not mentioned in your linked article
Thank you
 

crayonyes

Senior Member
Jul 3, 2010
1,054
1,136
0
Why do you (have to) add "home[0.1],recent[0.1],back[0.1]" at the end? Is this because of the immersive dot or do you really have to add it? It's not mentioned in your linked article
Thank you
in latest firmware the original buttons must be exists to avoid error.
so I just hide them far2 on the right (off screen)
 
  • Like
Reactions: Mr6P

wingzfan

Senior Member
May 14, 2008
660
109
0
I just wanted a static black navbar all the time. Someone said the value for fully opaque black is: −16777216

Tried that, but it didn't work, the navbar was still Samsung white. I added two leading zeros and just used the first code and it works perfectly fine all the time. So the code is:
adb shell settings put global navigationbar_color -0016777216

EDIT 1: I mentioned it won't stick after a reboot :(((
No matter what I do, if I reboot the navbar reverts to Samsung's white navbar ?
As mentioned here you can also run the command to change navbar color with the Tasker plugin AutoTools and its secure settings options, which allows you to run custom strings. So I still can change the navbar color without the need of a computer, but still it's not the best solution.

Anyone know why a reboot reverts the color (in my case)?

EDIT 2: I'm just using GBoard as my keyboard, but I accidentally opened Samsung keyboard, which is white and turns the navbar white. After that the navbar stayed white for me, so I had to run the command again to make it pitch black again --> don't use Samsung's keyboard xD
I used the same color code:
adb shell settings put global navigationbar_color -16777216
adb shell settings put global navigationbar_current_color -16777216
I use the Samsung keyboard and mine stays black even after opening the keyboard or a reboot.
 

Mr6P

Senior Member
Dec 21, 2015
58
17
0
I used the same color code. I use the Samsung keyboard and mine stays black even after opening the keyboard or a reboot.
Hmm maybe it's because of the Samsung keyboard, but I don't know why the coloring would reset after a reboot. Maybe Snapdragon and international version, maybe something else which kills/resets the setting :(

It doesn't stick after the reboot for me either :/
Maybe we can collect all infos and see what we have in common what other don't have

I'm using an S8+ international version with Exynos in Europe with the recent Android version and GBoard all the time. I use the black Theme "Material Black" from Samsung theme store and set the value to "apply from theme". When I disable to apply from theme and select any color there and then run the command and restart, then the navbar is black all the time, but not when the keyboard is open (it will be white). Still don't how to make it stick all the time.
 
  • Like
Reactions: apsis

krisu253

Senior Member
Nov 12, 2014
193
45
0
I'm using the s8+ with exynos. All the newest updates are installed. Stock theme. Plus I installed two themes from the other thread to shrink the height of the navbar and make the buttons Pixel-like.
 

wingzfan

Senior Member
May 14, 2008
660
109
0
Im using a T-Mobile Snapdragon version. No other mods, theme store theme, Samsung keyboard. Ive rebooted a few times and havent had the nav bar revert back to the white color yet. The only time it changes is in the Samsung browser, which is how its always done, but once I exit that it goes back to black.
 

crayonyes

Senior Member
Jul 3, 2010
1,054
1,136
0
How do i make the navbar background to always be black inside apps (not on homescreen) and white navbar icons.
For always black background try this:

adb shell settings put global navigationbar_use_theme_default 0
adb shell settings put global navigationbar_color -16777216

Edited. calculated it in wrong website
 
Last edited:

haksancan

Senior Member
Jun 20, 2013
95
112
0
How do i make the navbar background to always be black inside apps (not on homescreen) and white navbar icons.

-16777216 for fully opaque black
0 for fully transparent black
-2147483648 for half transparent black

You can use the color picker & value calculator linked in the OP

crayonyes said:
2566914048
This is not a valid integer :)
 
  • Like
Reactions: Vordx and crayonyes

crayonyes

Senior Member
Jul 3, 2010
1,054
1,136
0
-16777216 for fully opaque black
0 for fully transparent black
-2147483648 for half transparent black

You can use the color picker & value calculator linked in the OP



This is not a valid integer :)
changing between -16777216 and 0 ...
my result is the same . both fully opaque black ?


Lol I just put some random invalid value like 22000 and my navbar in gallery becomes fully transparent.
 

Attachments

Last edited:

haksancan

Senior Member
Jun 20, 2013
95
112
0
changing between -16777216 and 0 ...
my result is the same . both fully opaque black ?


Lol I just put some random invalid value like 22000 and my navbar in gallery becomes fully transparent.
22000 is valid and it's transparent so it's transparent in gallery as expected.

In a related note I tried fully transparent colors from white transparent white to gray to black in gallery app. When navbar color is White, gray and almost black is the navbar looks transparent and gallery app draws under navbar as expected. Absolute Black on the other hand, renders as non transparent totally white. I'll study it further to see if my calculation is wrong or a special case is involved.
 

crayonyes

Senior Member
Jul 3, 2010
1,054
1,136
0
22000 is valid and it's transparent so it's transparent in gallery as expected.

In a related note I tried fully transparent colors from white transparent white to gray to black in gallery app. When navbar color is White, gray and almost black is the navbar looks transparent and gallery app draws under navbar as expected. Absolute Black on the other hand, renders as non transparent totally white. I'll study it further to see if my calculation is wrong or a special case is involved.
22000 is not fully transparent in calculation but my navbar becomes fully transparent.,,
and 0 is fully transparent in calculation but makes my navbar fully black opaque.
so I'm still lost here..
 

crayonyes

Senior Member
Jul 3, 2010
1,054
1,136
0
Can you show your transparent navbar inside other apps like gmail?
you can't / hard to see the icons because I'm using always white navbar icon lol.
hey, using overlay can work for your case. attach your overlay apk on that thread and I'll try to make it for you.
 

Attachments

haksancan

Senior Member
Jun 20, 2013
95
112
0
22000 is not fully transparent in calculation but my navbar becomes fully transparent.,,
and 0 is fully transparent in calculation but makes my navbar fully black opaque.
so I'm still lost here..
22000 is 0:alpha, 0: red, 85:green and 240:blue. So it is fully transparent.

0 is acting strange as already mentioned. I don't know the reason. As a workaround you can use anything close but not 0 (such as 1).
 
  • Like
Reactions: crayonyes

crayonyes

Senior Member
Jul 3, 2010
1,054
1,136
0
22000 is 0:alpha, 0: red, 85:green and 240:blue. So it is fully transparent.

0 is acting strange as already mentioned. I don't know the reason. As a workaround you can use anything close but not 0 (such as 1).
Thanks, got it.
so just put anything with 00 prefix and you'll get transparent navbar, except 0 ( 00000000 )
I see that you've update the first post, nice! :good:
 

thedicemaster

Senior Member
May 10, 2009
1,747
852
133
use tasker to trigger a custom secure settings value through autotools.
this will not work with transparency though, as apps determine whether or not to draw under the nav bar before tasker can trigger the change.