Page 1 of 1

button change background watchface

Posted: 28 Apr 2024, 08:28
by Anoniem
I made a watchface with a button to change to background of the watchface,

Is it possible to also change the AOD background together with the normal watchface or
is it possible make a button to only change the AOD background?

Re: button change background watchface

Posted: 28 Apr 2024, 16:12
by asoo
Anoniem wrote: 28 Apr 2024, 08:28
I made a watchface with a button to change to background of the watchface,

Is it possible to also change the AOD background together with the normal watchface or
is it possible make a button to only change the AOD background?
if you want to change the AOD background together with the normal watchface. , you must to use something like this

Code: Select all

hmFS.SysProSetInt('js_test_int', 123)
Variables for the home screen and AOD are separate, so data must be manually saved to memory. hmFS.SysProSetInt. to use that variable in AOD

You can read in the documentation how to use this function correctly and how to read the data afterwards
https://docs-testing.zepp.com/docs/1.0/ ... ProSetInt/

This is a sample watchface. When you select a background on the main page, when you enter AOD, the background of AOD will be the same as the background of the main page.
( select color background by click on the center screen )

This watch face is used to show examples of usage. hmFS.SysProSetInt only
Script may not be cover all function.
I recommend that you see more information at the previous link.
Download watchface example
This watchface make for "Amazfit balance" but it can convert to other device in zeppOS by use Sasha's Editor ( Version 10.4 or higher )
AODchange.zip
(32.34 KiB) Downloaded 101 times

Re: button change background watchface

Posted: 29 Apr 2024, 16:12
by Anoniem
Thanks asoo, its working,
I used your example and copy/paste it into the watchface you created for me a time ago and its working, even the hands changed in AOD

Re: button change background watchface

Posted: 29 Apr 2024, 16:36
by asoo
Anoniem wrote: 29 Apr 2024, 16:12
Thanks asoo, its working,
I used your example and copy/paste it into the watchface you created for me a time ago and its working, even the hands changed in AOD
I'm glad that the code I showed as an example can allow you to do the operations you want.
Have fun creating your work.