– automatic change of setup / layout –
– automatic change of setup / layout –
I have the following question: I like light screens with white background(s) but during evening this is not really comfortable and a dark setup would be more convenient for the eyes…
is there a (easy) possibility to change this automatically “from white to black”?
I have the wallpaper as well as my zooper widget in both variants available…
]]>« I have tried many launchers and during KitKat moved to LLX and now Lollipop 5.0.2 without looking back (Previous Post)
(Next Post) V10.7b3 android 4.4.4 »
< ![CDATA[
Pierre Hébert where is the value for the theme stored?
]]>
< ![CDATA[
In the global configuration file (name “config”) in a field called “appStyle”. Possible values are DARK and LIGHT.
]]>
< ![CDATA[
Heiko G it is possible to script this. I’ll try that soon.
]]>
< ![CDATA[
wow, THX a lot in advance!!!
]]>
< ![CDATA[
Pierre Hébert as it seems to me the field is either DARK or not set at all.
]]>
< ![CDATA[
Heiko G And here it is! Restarts the launcher in the process.
]]>
< ![CDATA[
LL.bindClass(“java.io.FileReader”);
LL.bindClass(“java.io.BufferedReader”);
LL.bindClass(“java.io.FileWriter”);
LL.bindClass(“java.io.File”);
LL.bindClass(“java.lang.System”);
var file=new File(“data/data/net.pierrox.lightning_launcher_extreme/files/config”);//this file contains properties
var r=new BufferedReader(new FileReader(file));
var s=””;
var l;
while((l=r.readLine())!=null)s+=l;
var data=JSON.parse(s);
data.appStyle=data.appStyle==”DARK”?”LIGHT”:”DARK”;
var w=new FileWriter(file);
w.write(JSON.stringify(data));
w.flush();
w.close();
System.runFinalization();
System.exit(0);
]]>
< ![CDATA[
I have stored my layouts into backups as well as into templates,
do I have to take these instead of DARK and LIGHT?
]]>
< ![CDATA[
As a first version, this only changes the theme of LL itself, so the settings. Sadly you can’t apply backups or templates automatically, so I’ll have to find a way around this.
]]>
< ![CDATA[
first of all I will save my setup to themes and see what happens, I will come back to you on the weekend 😉
]]>