XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 May 29日 23:14

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2013年 Sep 20日 16:19 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4462
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!


Attachments:
days.png
days.png [ 162.1 KiB | Viewed 1699 times ]

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/
Top
 Profile  
 
PostPosted: 2013年 Sep 20日 20:48 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 267
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.


Top
 Profile  
 
PostPosted: 2013年 Sep 21日 00:01 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 352
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?

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: 2013年 Sep 21日 01:48 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4462
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! :)

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2013年 Sep 22日 01:19 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 352
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:
File comment: Example widget
clock2.XWidgetPkg [10.2 KiB]
Downloaded 101 times

Attachment:
File comment: Screenshot
screenshot.jpg
screenshot.jpg [ 12.09 KiB | Viewed 1680 times ]

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: 2013年 Sep 22日 02:50 
Online
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4462
Thanks digigamer!!! :D
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!

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2013年 Sep 22日 22:52 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 352
jimking wrote:
Thanks digigamer!!! :D
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, :mrgreen: I never thought about non-english locales! %Week in my locale is similar to %WeekEn.

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group