-
- Administrator
-
-
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.
Change minute and hour color
Forum rules
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [Falcon]
All communication in this branch should only be in English.
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [Falcon]
All communication in this branch should only be in English.
-
piotarock
- WF maker
- Posts: 40
- Joined: 22 Aug 2024, 07:53
- Location: Kenya
- Has thanked: 15 times
- Been thanked: 1 time
- Contact:
Change minute and hour color
Hello Devs,
How are you? I am trying to create a watchface where the digits on minute and hour hand change. I have followed the code implemented by @asoo but it seems I am missing a point. I have attached the screenshots of my folder and code. Please assist me on this.
How are you? I am trying to create a watchface where the digits on minute and hour hand change. I have followed the code implemented by @asoo but it seems I am missing a point. I have attached the screenshots of my folder and code. Please assist me on this.
- asoo
- Posts: 2106
- Joined: 03 Jan 2019, 01:48
- Location: ͼͽ Thailand ͼͽ
- Has thanked: 404 times
- Been thanked: 2022 times
I suggest you to also inform me how it is incorrect and what you want the script done.
And if possible, please attach the entire project. It will help to analyze the problem quickly.
From the image you attached, it seems that the display setting according to the specified folder should be fine. However, I don't have the entire project, so I can't analyze it correctly.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Please do not PM to me for requests ported watchface.
- asoo
- Posts: 2106
- Joined: 03 Jan 2019, 01:48
- Location: ͼͽ Thailand ͼͽ
- Has thanked: 404 times
- Been thanked: 2022 times
If your script is correct, when you change the color of some elements, it does not change color. You try to turn off the screen and turn it on again to refresh the color change.piotarock wrote: 14 Mar 2025, 07:11The incorrect part is that the colors of minutes and hour digits are not changing on click. All the other items are changing apart from the digital time.
In the Digital time section, if I guess right, you did not use seconds, right?
If so, when you change the color of the Digital time, you have to refresh the screen to change the color or wait for the element to change. In this case, you have to wait for the minute to change the color, or turn off the screen and turn it on again, which will also work. Or you can put a script to turn off the screen every time the color changes.
Code: Select all
const result = hmSetting.setScreenOff()Or you put seconds in. When you press to change the color, the digital time data will change every second, causing the color to change as well.
I'm not sure if this is the best way, but this is how I do it. It works for me.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Please do not PM to me for requests ported watchface.
- asoo
- Posts: 2106
- Joined: 03 Jan 2019, 01:48
- Location: ͼͽ Thailand ͼͽ
- Has thanked: 404 times
- Been thanked: 2022 times
If you don't want to publish the project yet, PM me.piotarock wrote: 14 Mar 2025, 07:02Thank you very much @asoo. I will attach the entire project once I leave my office. Should I PM you or its okay if I attach it here.
Or if you want others to help you fix it, you can attach it in the post.
PS. Others may have different and better solutions than mine.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Please do not PM to me for requests ported watchface.
-
piotarock
- WF maker
- Posts: 40
- Joined: 22 Aug 2024, 07:53
- Location: Kenya
- Has thanked: 15 times
- Been thanked: 1 time
- Contact:
Thank you very much for your response. I will try your way. If it works, I will stick to it. Thank you very much once again.asoo wrote: 14 Mar 2025, 10:56If you don't want to publish the project yet, PM me.piotarock wrote: 14 Mar 2025, 07:02Thank you very much @asoo. I will attach the entire project once I leave my office. Should I PM you or its okay if I attach it here.
Or if you want others to help you fix it, you can attach it in the post.
PS. Others may have different and better solutions than mine.
- SashaCX75
- Posts: 812
- Joined: 26 Oct 2019, 15:18
- Location: Ukraine
- Has thanked: 13 times
- Been thanked: 1007 times
- Contact:
If there are no seconds on the watch face, the image may change with a delay. For example, when the minutes and minutes change when the screen is switched on and off.
To set coordinates you use a variable related to the screen size. If you have not defined this variable earlier in the code, it may cause a problem.
To set coordinates you use a variable related to the screen size. If you have not defined this variable earlier in the code, it may cause a problem.
Who is online
Users browsing this forum: No registered users and 1 guest


