yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
As you all know June update limits choices for the color of navigation bar. But underlying settings can be still set to arbitrary values using adb shell.

- No root access needed

- No extra applications needed

- No changing themes needed

- Change is persistent after reboot.

Relevant settings are under global/navigationbar_current_color and global/navigationbar_color.

For example by running this you'll get a dark shade:

adb shell settings put global navigationbar_color -317057255
adb shell settings put global navigationbar_current_color -317057255
adb shell settings put global navigationbar_use_theme_default 0

You can change the number value to get different colors. Default is "-986896"

Pay attention to minus sign if result of calculation is negative, it is significant.

Color picker

To pick colors easily and calculate their values automatically you can use the color picker

Example colors

• Opaque black: -16777216

• Transparent black: 65793 (this is not true black - rgb (0,0,0), but almost black - rgb (1,1,1)-)

• Transparent gray: 8421504

You can use the color picker linked above to calculate values for arbitrary colors of your choice.

Caveats

• Don't use transparent colors if you don't want navigation bar color to change with different apps (ex. keyboard)

• Some applications may set custom colors for navigation bar. This setting only changes default color of the bar, it doesn't override application specific colors.

• Fully transparent navigation bar is not possible except few builtin applications (eg. Gallery or app switcher). You can specify transparency but it just specifies how the nav. bar. color will render on top of the applications color, it doesn't mean the application will render under the navigation bar

• For some reason fully transparent true black shows up as opaque white in most applications. Workaround is using almost black colors instead of true black.

Details for manually calculating values:

Value format is ARGB hex color code converted to signed decimal. (Thanks Acoustichayes for pointing it out.)

1. Pick a color and find out its RGB hex code using a color picker (such as http://htmlcolorcodes.com/). For example you should get.

2. If you want transparency you must prepend transparency value to the color value. 00 is fully transparent, ff is fully opaque, inbetween are varying degrees of transparency.

3. Convert this value to decimal

4. If the resulting value is larger than 2147483647, subtract 4294967296 from it.

Example:

1. Hex value of desired color is #4826bf

2. We want 10% transparency, thus using e6 as the hex value for transparency. Prepend to color value and the number becomes e64826bf

3. Convert to decimal: 3863488191

4. 3863488191 is greater than 2147483647 (max signed int), thus our value wraps and become

3863488191 - 4294967296 = -431479105

5. Run

adb shell settings put global navigationbar_color -431479105
adb shell settings put global navigationbar_current_color -431479105
[Samsung Galaxy S8 Themes, Apps, and Mods] sunwee:
Does it stick after a reboot?
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Yes it does.
[Samsung Galaxy S8 Themes, Apps, and Mods] MishaalRahman:
Was going to post about this, but you beat me to it ;)
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
If you figure out the meaning of values please share with us :)
[Samsung Galaxy S8 Themes, Apps, and Mods] Mikegasm:
Hello, newbie here and I am not happy with the new update. If its okay, can you put a step by step on how to do this? I've never tried doing this kimd of things but I would if there's an instruction. Thanks!!
[Samsung Galaxy S8 Themes, Apps, and Mods] Acoustichayes:
Are they not her values for color?

Generally, 6 digits is base color, eg: ffffff is white. Where each double digit is a representation of r, g, b.

And 8 digits adds alpha value(transparency) so the first 2 digits are the transparency and the last 6 are the color. You can Google hex color codes to look up exactly what you want
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
Any option like this to change the height of navbar?

Nice find btw :)
[Samsung Galaxy S8 Themes, Apps, and Mods] amadeusz.odi:
.... check here in first post https://xdaforums.com/showthread.php?t=3604341
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
You have to install "adb" in your computer and connect the phone to pc with usb cable. You can search for adb guides on Google for detailed steps. It is a general android topic and not S8 specific so you can find plenty of guides.
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Wow thanks this must be it. I'll check it out.
[Samsung Galaxy S8 Themes, Apps, and Mods] RuggedHunter:
Confirmed hex codes. I needed root to run in shell. Maybe not required for USB though.
[Samsung Galaxy S8 Themes, Apps, and Mods] sunwee:
So what are the best codes to use?

Is it possible to make it transparent using this method?
[Samsung Galaxy S8 Themes, Apps, and Mods] Leeum:
Yes i would also like to know if transparency is possible?
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
Woah, thanks man!

---------- Post added at 01:02 PM ---------- Previous post was at 12:50 PM ----------

Anyone figured out how to achieve the same transparent navbar as it looks when it is set up on auto-hide? Black semi-transparent background and white buttons?

Thanks ?
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
-2140904348 should be good enough
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
Thanks, will try it at home :)
[Samsung Galaxy S8 Themes, Apps, and Mods] RuggedHunter:
You can just use the hex code without converting to decimal. I just made it white with ffffffff and black with ff000000.
[Samsung Galaxy S8 Themes, Apps, and Mods] m7ixalis:
Because am little confusing ,can please someone tell me whats the value for black color ?

Thank you .
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Nope it doesn't work on my phone.

Can you please try ffff0000 and see if it turns red?
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
-16777216 is fully opaque black.
[Samsung Galaxy S8 Themes, Apps, and Mods] m7ixalis:
[MENTION=5318157]haksancan[/MENTION]

Thank you I will test it later.

And it works very well ,thank you again .

Send from my galaxy s8
[Samsung Galaxy S8 Themes, Apps, and Mods] themasv:
−13320900 just makes it white
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
-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.
[Samsung Galaxy S8 Themes, Apps, and Mods] hilla_killa:
So if i just want black navbar all i need is the black hex code and my buttons will stay white?
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Fully opaque black is −16777216 ( ff 00 00 00 = 4278190080 , substract 4294967296 so it becomes −16777216)
[Samsung Galaxy S8 Themes, Apps, and Mods] chungdae:
Great post, however the navigation bar with Samsung Browser turns to white whenever I open it. Anyway to fix that?
[Samsung Galaxy S8 Themes, Apps, and Mods] trungquan_it:
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?
[Samsung Galaxy S8 Themes, Apps, and Mods] Xxk1ll3rxX:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] MarkerBeanXDA:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] DivijKaura:
How did you get option to hide the navbar? I dont have it in my settings.
[Samsung Galaxy S8 Themes, Apps, and Mods] trungquan_it:
You have to update to latest firmware AQF7.
[Samsung Galaxy S8 Themes, Apps, and Mods] DivijKaura:
Yes mine is AQF7 Batman Rom.
[Samsung Galaxy S8 Themes, Apps, and Mods] trungquan_it:
I'm still using stock rom, but you can go to Settings -> Display -> Navigation Bar and check again.
[Samsung Galaxy S8 Themes, Apps, and Mods] MarkerBeanXDA:
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?
[Samsung Galaxy S8 Themes, Apps, and Mods] difference:
How the hell did Samsung think when removing the option to have black navigation bar? Idiots.
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] thedicemaster:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] jknut:
What is the ADB command to reset back to normal?
[Samsung Galaxy S8 Themes, Apps, and Mods] thedicemaster:
no need for ADB to revert to a normal color.

settings>display>navigation bar>tap any color
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
same command as above with value -986896.
[Samsung Galaxy S8 Themes, Apps, and Mods] Roobwz:
If I change the nav to be completely black, does it stay black on the home screen or does it remain transparent as before ?
[Samsung Galaxy S8 Themes, Apps, and Mods] Tigerhoods:
Hey cool thread I've been putting in work trying to get notifications with white text I've done way past everything I should have to done to get them white with no luck do you think there maybe a solution to that with this type of workaround.
[Samsung Galaxy S8 Themes, Apps, and Mods] RuggedHunter:
You need to decompile and modify the line "notification_text_color" in /system/framework/framework.apk/res/values/colors.xml
[Samsung Galaxy S8 Themes, Apps, and Mods] Tigerhoods:
Thanks bro i know that, im doing this in my overlay trying to make it work on non rooted device i have added the value already..
[Samsung Galaxy S8 Themes, Apps, and Mods] MarkerBeanXDA:
How to make the navbar background always transparent without PC,?
[Samsung Galaxy S8 Themes, Apps, and Mods] poczynek:
I'm still a bit confused! I am rooted - what is the best way to make the nav bar transparent?
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
If you are rooted you can run the same command (without the adb shell part) in your phone using a terminal emulator.

For transparent try 0 for transparent black and 16777215 for transparent white.
[Samsung Galaxy S8 Themes, Apps, and Mods] poczynek:
Cool thanks. So get to su in terminal emulator and then this?

adb shell settings put global navigationbar_color 0

adb shell settings put global navigationbar_current_color 0
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Yes but don't type the adb shell part
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
Tried using adb but did not work to get transparent...

any other sugestions?
[Samsung Galaxy S8 Themes, Apps, and Mods] thedicemaster:
transparency only works in a few apps, and you'll need to reopen the current app if it supports it.

apps don't actually draw under the navigation bar normally, only a few apps support it and will only actually draw there if the navigation bar is transparent when the app is opened.
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Which value did you use?
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
I tried 0 for transparent..

Worked for black though..but it would be nice to have transparent.. :)
[Samsung Galaxy S8 Themes, Apps, and Mods] Pastorelli's:
Is there a command to change the icons colour in the navbar to white again.
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
is there an ADB command to increase auto hide time? Because now I think it hides after 3 seconds but I would like to increase this time.. I know there are ADB commands to change color of navbar so I hope there is some way to change this too..
[Samsung Galaxy S8 Themes, Apps, and Mods] Pastorelli's:
I now have the fully opaque black navbar −16777216 using the adb commands. I discovered that icons appear to be grey. Depending on the app you use, it is more or less grey or closer to white if you look close enough. All since the last june software update. I like the icons to be totally white again how it was before.
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
For transparent you must calculate the value. Formula is explained in above posts.
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
No-one has achieved transparent so far, that is why I'm sceptical...
[Samsung Galaxy S8 Themes, Apps, and Mods] thedicemaster:
-0 is fully transparent, but you can't see it because most apps don't draw anything under the navigation bar.

the gallery app is actually the only one i know that draws actual content under the navigation bar, but it only draws under it if the navigation bar was already transparent when the app is launched.
[Samsung Galaxy S8 Themes, Apps, and Mods] rendyyonathan:
Whats the difference between value -0 and just 0 ??

It's transparent butnon some state the color become white again and I must to reconnect to PC again and set the color again
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
Transparency is definitely possible but it is not the kind of transparency you want to have. The bar is still fixed in position and apps don't render underneath it if this is what you want to achieve. It just makes the color blend in with the background color of the app.

Otherwise Just make sure the calculation is right and note that some applications will disregard system settings and set their own colors instead.
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
They are same, fully transparent black.

Try 16777215 for fully transparent white, contrary to name it is the color you should use if you want black bar on black bacgrounds and white bar on white backgrounds.
[Samsung Galaxy S8 Themes, Apps, and Mods] CrazyCypher:
Anyone knows for ADB solution to increase auto-hide timeout when immersive mode is active?
[Samsung Galaxy S8 Themes, Apps, and Mods] rendyyonathan:
Beside change thennavbar color, is there other command to change the color the navbutton it self ???
[Samsung Galaxy S8 Themes, Apps, and Mods] saywhat4118:
Second that. The buttons are always grey. Can we change them to white? Thanks.
[Samsung Galaxy S8 Themes, Apps, and Mods] miyavi1216:
In Japan, there is RRO apk which add black color in navigation settings.

Is it already shared in XDA?
[Samsung Galaxy S8 Themes, Apps, and Mods] businka19:
Any idea on why they removed the color picker?
[Samsung Galaxy S8 Themes, Apps, and Mods] BurakSsl:
I've been using a Black Transparent Navigation bar for more than a week and I haven't had any issues with it so far. It also blends in with the dark apps as you can see in the screenshot below:

http://i.imgur.com/P1SO8xs.png

The adb commands I used to achieve this look were;

adb shell settings put global navigationbar_color -1291845632

adb shell settings put global navigationbar_current_color -1291845632
[Samsung Galaxy S8 Themes, Apps, and Mods] jwl12345:
tbh you guys should probably use a decimal-hex 32 bit signed int converter instead of calculating the overflow yourself, lol

also, anyone know what navigationbar_theme_color and navigationbar_use_theme_default do?
[Samsung Galaxy S8 Themes, Apps, and Mods] Tatsch:
What is the difference between "color" and "current_color"?

What happens if set to different colors?
[Samsung Galaxy S8 Themes, Apps, and Mods] Bec de Xorbin:
This seems like the pre-June update default, amirite?
[Samsung Galaxy S8 Themes, Apps, and Mods] Harekicker:
So I just tried this on my GS8+, latest update, and got my full black nav bar

But for some reason, the navbar icons including home, back and recent turn grey

On the home screen, the nav bar has full white icons

Inside an app, the navbar stays black, but icons go grey

when keyboard is pulled up, the icons turn into a darker grey

screenshots below Is there any adb commands to force the navbar icons to always stay white? Thanks

http://imgur.com/a/rmQnr
[Samsung Galaxy S8 Themes, Apps, and Mods] Bobaroo:
Is there a to basically bleed the background color into the navbar? though nothing will render underneath, it does give the transparent looks
[Samsung Galaxy S8 Themes, Apps, and Mods] crayonyes:
from my experience, I never get any transparent navbar using prefix of FF (check in samsung gallery app)

the alpha prefix that works are only digits ( 11 to 99, where 11 is most transparent, and 99 most solid color)

don't know about 00, you can try.

You can check the changes in samsung gallery , where navbar will be transparent or not when viewing images thumbnails.
[Samsung Galaxy S8 Themes, Apps, and Mods] Mr6P:
Offtopic: how did you modify the navbar like that? :confused: :eek:
[Samsung Galaxy S8 Themes, Apps, and Mods] Mr6P:
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
[Samsung Galaxy S8 Themes, Apps, and Mods] bamse84:
Hi. Would you please write the exact command in adb so i can get that transparent navbar. Thanks
[Samsung Galaxy S8 Themes, Apps, and Mods] crayonyes:
just a rewrite to sysui_nav_bar

https://www.xda-developers.com/add-custom-buttons-to-nav-bar-on-samsung-galaxy-s8-galaxy-s8/

put the icons in internal storage, then use this (for new firmware with immersive dot) :

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];"

I'm using transparent orchid color though ..

settings put global navigationbar_color 865678028
[Samsung Galaxy S8 Themes, Apps, and Mods] Mr6P:
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
[Samsung Galaxy S8 Themes, Apps, and Mods] crayonyes:
in latest firmware the original buttons must be exists to avoid error.

so I just hide them far2 on the right (off screen)
[Samsung Galaxy S8 Themes, Apps, and Mods] wingzfan:
I used the same color code:

I use the Samsung keyboard and mine stays black even after opening the keyboard or a reboot.
[Samsung Galaxy S8 Themes, Apps, and Mods] krisu253:
It doesn't stick after the reboot for me either :/
[Samsung Galaxy S8 Themes, Apps, and Mods] Mr6P:
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 :(

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.
[Samsung Galaxy S8 Themes, Apps, and Mods] krisu253:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] wingzfan:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] MarkerBeanXDA:
How do i make the navbar background to always be black inside apps (not on homescreen) and white navbar icons.
[Samsung Galaxy S8 Themes, Apps, and Mods] crayonyes:
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
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
-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 :)
[Samsung Galaxy S8 Themes, Apps, and Mods] crayonyes:
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.
[Samsung Galaxy S8 Themes, Apps, and Mods] thedicemaster:
most apps don't draw under the navigation bar, so if it's set to transparent they'll just draw a solid color.
[Samsung Galaxy S8 Themes, Apps, and Mods] haksancan:
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.