• Amministratore
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Trying to get color in AOD

Topics related to the creation, development, and designing of the watch faces.

Moderatori: asoo, Watchmens

Regole del forum
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [Bip U]
All communication in this branch should only be in English.
Rispondi
Avatar utente
frankh93
Messaggi: 37
Iscritto il: 20 giu 2025, 00:32
Località: CDMX
Has thanked: 23 times
Been thanked: 3 times
Contatta:

Trying to get color in AOD

Messaggio da 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.
Allegati
Dotted Clock.zip
(608.42 KiB) Scaricato 86 volte
you should be doing something productive instead of reading this caption :lol:
Avatar utente
asoo
Messaggi: 2147
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 414 times
Been thanked: 2073 times

Messaggio da asoo »

frankh93 ha scritto: 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.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Avatar utente
frankh93
Messaggi: 37
Iscritto il: 20 giu 2025, 00:32
Località: CDMX
Has thanked: 23 times
Been thanked: 3 times
Contatta:

Messaggio da frankh93 »

asoo ha scritto: 21 nov 2025, 00:44
frankh93 ha scritto: 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:

Codice: Seleziona tutto

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

Codice: Seleziona tutto

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
you should be doing something productive instead of reading this caption :lol:
Avatar utente
asoo
Messaggi: 2147
Iscritto il: 03 gen 2019, 01:48
Località: ͼͽ Thailand ͼͽ
Has thanked: 414 times
Been thanked: 2073 times

Messaggio da asoo »

frankh93 ha scritto: 21 nov 2025, 18:06
asoo ha scritto: 21 nov 2025, 00:44
frankh93 ha scritto: 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:

Codice: Seleziona tutto

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

Codice: Seleziona tutto

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
Immagine
Dotted-Clock_Switch_ON_AOD.zip
(534.92 KiB) Scaricato 75 volte

Immagine
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) Scaricato 84 volte

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.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Avatar utente
frankh93
Messaggi: 37
Iscritto il: 20 giu 2025, 00:32
Località: CDMX
Has thanked: 23 times
Been thanked: 3 times
Contatta:

Messaggio da frankh93 »

thank you so much @asoo got it working now
you should be doing something productive instead of reading this caption :lol:
Rispondi

Torna a “Watchfaces discussion”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite