Page 1 of 1

Trying to get color in AOD

Posted: 20 Nov 2025, 18:47
by frankh93
So I've been trying to make a modification to my "Dotted Clock" watchface (https://amazfitwatchfaces.com/bip/view/43990) where the choosen color gets applied to the AOD too. I have tried to add an IMG widget only showed in AOD and changing its source together with the BG for the normal watchface.

The problem seems to be the image isn't getting updated. Tried asking to some AI (lol) how to address this but it didn't help at all, so hoping a pro could help me with this. Also I'm leaving attatched the current state of the project, with the changes I made already. Thank you in advance for whoever get to read this and help.

Re: Trying to get color in AOD

Posted: 21 Nov 2025, 00:44
by asoo
frankh93 wrote: 20 Nov 2025, 18:47
So I've been trying to make a modification to my "Dotted Clock" watchface (https://amazfitwatchfaces.com/bip/view/43990) where the choosen color gets applied to the AOD too. I have tried to add an IMG widget only showed in AOD and changing its source together with the BG for the normal watchface.

The problem seems to be the image isn't getting updated. Tried asking to some AI (lol) how to address this but it didn't help at all, so hoping a pro could help me with this. Also I'm leaving attatched the current state of the project, with the changes I made already. Thank you in advance for whoever get to read this and help.
Switching between Normal and AOD modes will cause the variables you get from the buttons to disappear. Therefore, you must store the values ​​in the System property instead, which is
"SysProSetInt" "SysProGetInt" .

I haven't created a watch face that affects AOD selections, so I can't provide accurate recommendations.
This is all I can help you.. I hope this helps.

You can find more information at the link below.

search.php?keywords=SysProSetInt


PS.
The more you manage widget colors in normal mode, the more complex it becomes to store values ​​for use in AOD.

Re: Trying to get color in AOD

Posted: 21 Nov 2025, 18:06
by frankh93
asoo wrote: 21 Nov 2025, 00:44
frankh93 wrote: 20 Nov 2025, 18:47
So I've been trying to make a modification to my "Dotted Clock" watchface (https://amazfitwatchfaces.com/bip/view/43990) where the choosen color gets applied to the AOD too. I have tried to add an IMG widget only showed in AOD and changing its source together with the BG for the normal watchface.

The problem seems to be the image isn't getting updated. Tried asking to some AI (lol) how to address this but it didn't help at all, so hoping a pro could help me with this. Also I'm leaving attatched the current state of the project, with the changes I made already. Thank you in advance for whoever get to read this and help.
Switching between Normal and AOD modes will cause the variables you get from the buttons to disappear. Therefore, you must store the values ​​in the System property instead, which is
"SysProSetInt" "SysProGetInt" .

I haven't created a watch face that affects AOD selections, so I can't provide accurate recommendations.
This is all I can help you.. I hope this helps.

You can find more information at the link below.

search.php?keywords=SysProSetInt


PS.
The more you manage widget colors in normal mode, the more complex it becomes to store values ​​for use in AOD.
Thank you for answering, I've tried this but doesnt seem to be working either. Used this in the updateWatchface function:

Code: Select all

let colorIndexAOD = colorIndex + 1
hmFS.SysProSetInt('currColorAOD', colorIndexAOD)
and then this in pause_call.js

Code: Select all

bgColorWatchfaceAOD.setProperty(hmUI.prop.SRC, "bg_colors/aod/COLOR_" + hmFS.SysProGetInt('currColorAOD') + ".png");
but no look, the image isn't getting changed. Am I missing something? Thank you again

Re: Trying to get color in AOD

Posted: 21 Nov 2025, 19:23
by asoo
frankh93 wrote: 21 Nov 2025, 18:06
asoo wrote: 21 Nov 2025, 00:44
frankh93 wrote: 20 Nov 2025, 18:47
So I've been trying to make a modification to my "Dotted Clock" watchface (https://amazfitwatchfaces.com/bip/view/43990) where the choosen color gets applied to the AOD too. I have tried to add an IMG widget only showed in AOD and changing its source together with the BG for the normal watchface.

The problem seems to be the image isn't getting updated. Tried asking to some AI (lol) how to address this but it didn't help at all, so hoping a pro could help me with this. Also I'm leaving attatched the current state of the project, with the changes I made already. Thank you in advance for whoever get to read this and help.
Switching between Normal and AOD modes will cause the variables you get from the buttons to disappear. Therefore, you must store the values ​​in the System property instead, which is
"SysProSetInt" "SysProGetInt" .

I haven't created a watch face that affects AOD selections, so I can't provide accurate recommendations.
This is all I can help you.. I hope this helps.

You can find more information at the link below.

search.php?keywords=SysProSetInt


PS.
The more you manage widget colors in normal mode, the more complex it becomes to store values ​​for use in AOD.
Thank you for answering, I've tried this but doesnt seem to be working either. Used this in the updateWatchface function:

Code: Select all

let colorIndexAOD = colorIndex + 1
hmFS.SysProSetInt('currColorAOD', colorIndexAOD)
and then this in pause_call.js

Code: Select all

bgColorWatchfaceAOD.setProperty(hmUI.prop.SRC, "bg_colors/aod/COLOR_" + hmFS.SysProGetInt('currColorAOD') + ".png");
but no look, the image isn't getting changed. Am I missing something? Thank you again
I'm not sure about the script you mentioned., but judging from your script, it seems quite confusing. I'm not sure what some of the functions you created were for, however I haven't investigated them. However, I've created an example from your watch face you posted earlier, I removing some function that I think it unnecessary elements by using // and /* */ to prevent that script from running.

As far as I've tested, it can change the elements in the AOD.

There's a slight issue: when you reset the clock, the home screen returns to the first color, but the AOD remains the last color you selected. This shouldn't be a problem, as when you choose a new color, the AOD changes to reflect the home screen, so I haven't done anything further with this part.

As I mentioned, I don't make watch faces whose AOD changes elements based on the home screen, so I'm only working on what I understand.
Download
Image
Dotted-Clock_Switch_ON_AOD.zip
(534.92 KiB) Downloaded 73 times

Image
V.3 Fixed and added widgets in the AOD section to make it display as complete as possible.
Dotted-Clock_v3.zip
(574.43 KiB) Downloaded 82 times

In AOD, at certain times, the screen will move by about 1-2 pixels to maintain the screen. This causes some widgets to display out of sync.
This can cause the background to move from a specified point, resulting in the overall image having errors such as the text frame having the background color displayed.(this cannot be changed due to system requirements). If you want to fix this, you'll have to completely redesign the display, which I won't do, so I'm letting you know here.
I don't really interrest about this part. I personally don't use AOD, so I won't make any further changes. If you need to do anything further, please try to find by yourself.

Re: Trying to get color in AOD

Posted: 06 Dec 2025, 20:15
by frankh93
thank you so much @asoo got it working now