/So I deleted my other script and changed some stuff to create this one which gives you more control.
/So I deleted my other script and changed some stuff to create this one which gives you more control. You now have 3 options what to do with the bars. See Screenshot./
//System bar color changer
var defaultColor = 0xffff5722; // LL Orange
var desktop = LL.getCurrentDesktop();
var property = desktop.getProperties();
var editor = property.edit();
var choice = prompt(“1 = Use same color for both bars\n2 = Use different colors for each bar\n3 = Use Lightning Launchers Orange”, “”);
if (choice == 3)
{
editor.setInteger(“statusBarColor”, 0xffff5722);
editor.setInteger(“navigationBarColor”, 0xffff5722);
editor.commit();
Android.makeNewToast(“Excellent choice!”, true).show();
}
if (choice == null)
{
//Android.makeNewToast(“null selected”, true).show();
}
else if ((choice != 1) && (choice != 2) && (choice != 3))
{
Android.makeNewToast(“Use only 1 2 or 3”, true).show();
}
else if (choice == 1)
{
//Android.makeNewToast(“1 selected”, true).show();
var barsColor = LL.pickColor(“Statusbar and Navbar Color”, defaultColor, true);
if (barsColor != null)
{
editor.setInteger(“statusBarColor”, barsColor);
editor.setInteger(“navigationBarColor”, barsColor);
editor.commit();
}
}
else if (choice == 2)
{
Android.makeNewToast(“Statusbar color”, true).show();
var statusColor = LL.pickColor(“Statusbar Color”, defaultColor, true);
if (statusColor != null)
{
Android.makeNewToast(“Navbar color”, true).show();
editor.setInteger(“statusBarColor”, statusColor);
editor.commit();
var navbarColor = LL.pickColor(“Navbarbar Color”, defaultColor, true);
if (navbarColor != null)
{
editor.setInteger(“navigationBarColor”, navbarColor);
editor.commit();
}
}
}
]]>
< ![CDATA[
Nice
]]>
< ![CDATA[
cheers chris👍
]]>