XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Show txt / image on a certain day? https://www.bbs.xwidget.com/viewtopic.php?f=8&t=3557 |
Page 1 of 1 |
Author: | Jimking [ September 20th, 2013, 4:19 pm ] | ||
Post subject: | Show txt / image on a certain day? | ||
I have this png and I would like to make a clock with it. How can I make a text, in this case the days of the week, that will shown up only in the corrisponding day? For example: On Monday will appear the "Mon" in blue colour, on Tuesday "Tues" etc.... Can someone help me with the script code?? Thanks!
|
Author: | meme [ September 20th, 2013, 8:48 pm ] |
Post subject: | Re: Show txt / image on a certain day? |
Is the text Mon Tue etc. seperate to the image ? I assume not... What about creating 7 different png files with each day of the week selected in blue, make each one a seperate layer, place them all in the same position, then only the one that matches the correct day of the week is made visible in code. Can assit if you think this is OK. |
Author: | digigamer [ September 21st, 2013, 12:01 am ] |
Post subject: | Re: Show txt / image on a certain day? |
Making text appear is simple but you will need separate png's for each days as meme said above. Or a different approach will be to use a background image and recolour the text. So what do you have, single image or multiple ones? |
Author: | Jimking [ September 21st, 2013, 1:48 am ] |
Post subject: | Re: Show txt / image on a certain day? |
This is actually an Android widget from TSF shell launcher: https://play.google.com/store/apps/deta ... dget.alarm I can easily separate the pngs for each day but I'm thinking to keep the design and make a widget with flip function like the original. On the Android version is used as an alarm clock but for XWidget I'll made it as a secondary alternative back clock. This is what I'm thinking to do: First clean up the images (delete the txt) and on the top re-add manually txt with the days. Then add an extra txt that it will be actually the same in the exactly same position, but with blue clolour. And this text will appear only in the corrisponding day. So the blue txt will appear on the top and give the efferct of current day in blue! We need a script code that will work with TXT.. I hope to be clear guys! ![]() |
Author: | digigamer [ September 22nd, 2013, 1:19 am ] |
Post subject: | Re: Show txt / image on a certain day? |
You could change the colour, that would be better Arrange your txt's properly and give them a reasonable name. I've got a small text-only widget here. Feel free to customize! Attachment: Attachment:
File comment: Screenshot
screenshot.jpg [ 12.09 KiB | Viewed 5729 times ] |
Author: | Jimking [ September 22nd, 2013, 2:50 am ] |
Post subject: | Re: Show txt / image on a certain day? |
Thanks digigamer!!! ![]() Just waiting for your answer to complete the widget! At the begging the widget didn't work as the screenshot.. I had to change the "%Week" to "%WeekEn" in the script. Now it's ok! ![]() Really appreciated all your help and disponibility! ps: and meme's help of course! |
Author: | digigamer [ September 22nd, 2013, 10:52 pm ] |
Post subject: | Re: Show txt / image on a certain day? |
jimking wrote: Thanks digigamer!!! ![]() Just waiting for your answer to complete the widget! At the begging the widget didn't work as the screenshot.. I had to change the "%Week" to "%WeekEn" in the script. Now it's ok! ![]() Really appreciated all your help and disponibility! ps: and meme's help of course! Aww, ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |