I use this string to present day and date: #DE# #Dd# #DMMM#
Is it possible to change the colour of #DE# depending on what day in the week it is?
I would like it to be blue om Saturdays and red on Sundays on my Gear 3 with Tizen.
I use this string to present day and date: #DE# #Dd# #DMMM#
Is it possible to change the colour of #DE# depending on what day in the week it is?
I would like it to be blue om Saturdays and red on Sundays on my Gear 3 with Tizen.
you will need to duplicate your date element two times and use conditions in opacity field to turn on and off on correct days. I will help if needed
Hi jlcash61,
Please help out. Any colour on Monday to Friday, and blue on Saturdays and red on Sundays.
Regards
Thomas
A working formula / pictures would be nice.
Take a look at this and see if it does what you want. Let me know how else I can help. Please share here with inspection open so way can take a look inside and help better.
Nice Little Tutorial coming along . The conditional you have Give here is the Fundamental of Many Formulas that make a Smart Watch Smart . Good Job I say .
Yes, trying to show right way instead of my way lol🤣
I was trying to check the example, but for some reason it seems not to be inspectable too.
odd, When I saw you post I went over to it and rocket opened up🤔 should i open oringinal file in editor and save and update?
Hello, if you would like only the #DE# part of the string to change color, you would have to split to separate layer. Anyway you would have to make 3 copies of your string - one for each color.
Then control their visibility for example with formula in opacity like
for sunday: $#DOW#==0?100:0$
for saturday: $#DOW#==6?100:0$
for the rest: $(#DOW#+5)%6<5?100:0$
I was able to Inspect your test above . Good working Example .
Check the way you share the link. It should let you mark it as inspectable by clicking the slider before copying the link:
Yes inpection is on, dont know why you cant see.
Now it works and I see, I did not need to post, its all in there
i likely would have ((#DOW#==0)*100) ie if I was doing and have grown very fond of the modu(%) function but was afraid i would confuse them
I just checked on an alternative way to hide the week days when showing Saturday and Sunday.
$#DOW#=0||#DOW#=6?0:100$
Difficult crossing Zero . That is by far and away the best and most descriptive way of doing it . Nice Little Tutorial Developing . If &&
( AND ) don’t work try ||
( OR ) .
Thanks all. I’ll try it out during the weekend