Dark icons on status bar
Dark icons on status bar
can I somehow change the status bar icons to dark on a desktop? doesn't seem to be an option in the "system bars" subcategory.
Re: Dark icons on status bar
No, you need root for that. This is managed by the Android system UI, outside of the launcher scope.
- TrianguloY
- Posts: 103
- Joined: Thu Jan 24, 2019 9:46 am
Re: Dark icons on status bar
It seems there is a way to tell android to draw dark icons, either from a theme attribute or programmatically, with this script:
However it doesn't work for me, and it seems it doesn't work on a lot of devices, but...you can try.
[Note: this only works on android M and above]
Code: Select all
bindClass("android.view.View");
getHomeScreen().getContext().getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
[Note: this only works on android M and above]
Re: Dark icons on status bar
Interesting! I wasn't aware of this possibility!
Re: Dark icons on status bar
cool, works for me 

Re: Dark icons on status bar
Ok this works but soon as I open an app then go back to the launcher homescreen the icons are light again. If I press the home button they turn dark I tried setting the script in resume/load/paused but it didn't make a difference.
- TrianguloY
- Posts: 103
- Joined: Thu Jan 24, 2019 9:46 am
Re: Dark icons on status bar
As I said I can't test it, but perhaps the issue is that the script needs to be run after some other code.
What if you write it inside a setTimeout?
setTimeout(function(){
bind...
get...
},0);//or try with 1, 50, 100...
What if you write it inside a setTimeout?
setTimeout(function(){
bind...
get...
},0);//or try with 1, 50, 100...
Re: Dark icons on status bar
Works great with a timeout of 100 thanksTrianguloY wrote: ↑Mon Mar 18, 2019 5:57 pmAs I said I can't test it, but perhaps the issue is that the script needs to be run after some other code.
What if you write it inside a setTimeout?
setTimeout(function(){
bind...
get...
},0);//or try with 1, 50, 100...
Re: Dark icons on status bar
I have added these options to the next beta, thanks for the hint!