• 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.
     

Sunset Sunrise icons

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

Moderators: asoo, Watchmens

Forum rules
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [GTR 3 Pro]
All communication in this branch should only be in English.
Post Reply
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Sunset Sunrise icons

Post by SPLESHER »

Hey,
I wanted to make sunrise sunset icons changing according to "numeric values (sunrise / sunset) in watchface editor, but I don't understand how these icons are supposed to work.
I used images element in sunrise/sunset and put two images, first one for sunrise, second one for sunset.
But when applying watchface on watch icon is always for sunset, even when value is showing sunrise
Spoiler
Image
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

You should at least specify the model of the watch.
For sunrise/sunset images you need 2 files, but only one (daytime) is displayed. Usually if you want the image to change and not just appear, the second image is drawn on the background.

Sometimes the image change is delayed. This is a feature of the standard widget. If you are not satisfied with it, you need to write your own code instead of the standard widget, which will check the time and change the image.
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 18 Nov 2024, 16:09
You should at least specify the model of the watch.
For sunrise/sunset images you need 2 files, but only one (daytime) is displayed. Usually if you want the image to change and not just appear, the second image is drawn on the background.

Sometimes the image change is delayed. This is a feature of the standard widget. If you are not satisfied with it, you need to write your own code instead of the standard widget, which will check the time and change the image.
Sorry, watch model is GTR3.
I tried putting one on background as permanent one but it works really weird, currently its showing sunset icon and 06:56 value which indicates sunrise, not the sunset.
I also tried puting 2 images but still acts very weird
Attachments
2024-11-19 11_01_44-assets — Eksplorator plików.png
2024-11-19 11_01_44-assets — Eksplorator plików.png (1.77 KiB) Viewed 5376 times
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

If you use 2 images to display sunrise/sunset, the first image will be displayed during the day. So you need to put the second image on the background.
I don't know what your watch face should look like in the end, but according to the images they should be swapped.
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 20 Nov 2024, 22:15
If you use 2 images to display sunrise/sunset, the first image will be displayed during the day. So you need to put the second image on the background.
I don't know what your watch face should look like in the end, but according to the images they should be swapped.
I tried what you said, but still it's messed up,
What I want achieve is that whenever value is at morning, for e.g. 6:45 to show icon which indicates sunrise, (one with arrow pointing up) and when value under icon shows e.g. 16:10 which indicates sunset to show icon for sunset (one with arrow pointing down)
here is preview of watchface, you might understand it better
Attachments
2024-11-21 14_14_55-Preview.png
2024-11-21 14_14_55-Preview.png (35.61 KiB) Viewed 5335 times
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

Unfortunately, this option didn't work. I tried for a very long time and in the end i always figured it out with a still icon. The icon will not change depending on the time change.
What icon for both sunrise and sunset did you use then? Could you give me any idea?
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

I meant something like this
Attachments
Test sunrise.zip
(8.74 KiB) Downloaded 110 times
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 21 Nov 2024, 18:19
I meant something like this
Just tried it, but still shows sunset icon while value shows 6:59 which is sunrise, I guess I will just make it as sun icon without any arrows
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 21 Nov 2024, 18:19
I meant something like this
It's just as i said, picture function is not working. You can solve it with putting in one-picture background.
Right, doesn't work as it should sadly
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

I have 2 test dials installed right now. One has only a set of images on it. And it displays the sunrise image. The second one has sunrise and sunset times as well. And this one is not working correctly. It still shows sunrise time (although it should have switched to sunset time 2 hours ago) and does not show the sunrise image, only the background image.
SPLESHER
Posts: 29
Joined: 08 Dec 2020, 12:11
Location: Poland
Has thanked: 1 time
Contact:

Post by SPLESHER »

SashaCX75 wrote: 22 Nov 2024, 07:20
I have 2 test dials installed right now. One has only a set of images on it. And it displays the sunrise image. The second one has sunrise and sunset times as well. And this one is not working correctly. It still shows sunrise time (although it should have switched to sunset time 2 hours ago) and does not show the sunrise image, only the background image.
Thats how its showing for me right now, sunrise icon and time of sunset
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

I'll observe more this weekend. But in any case it's not a good solution. Switching sunrise / sunset often works with a delay. The most reliable way is to write the code yourself. Check the sunrise and sunset times and change the image depending on the current time.
Post Reply

Return to “Watchfaces discussion”

Who is online

Users browsing this forum: No registered users and 1 guest