XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Jun 22日 17:40

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2012年 Nov 23日 06:21 
Offline
User avatar

Joined: 2012年 Jun 10日 05:57
Posts: 315
We can easily manage our XWidget themes in the Theme Manager.
  • change theme
    select one theme nameand then click load.
    click theme preview image will open the preview image.
  • share theme with others
    select one theme and click package to get the themeName.XThemePkg or themeName.xtp file and share it with others.
Attachment:
theme.jpg
theme.jpg [ 76.52 KiB | Viewed 6456 times ]


Top
 Profile  
 
PostPosted: 2012年 Nov 23日 06:28 
Offline
User avatar

Joined: 2012年 Jun 10日 05:57
Posts: 315
Advanced
How does XWidget manage themes? Please pay attention to the folder "Themes" and the document "Settings.ini" in the folder MyDocuments\XWidget .
Attachment:
xwidget.jpg
xwidget.jpg [ 12.65 KiB | Viewed 6454 times ]


The “Settings.ini” records the current theme and other information.
Attachment:
themepath.jpg
themepath.jpg [ 35.93 KiB | Viewed 6454 times ]


All themes are in the folder “Themes”.One theme is in one folder and the folder name is the theme name.
Attachment:
allthemes.jpg
allthemes.jpg [ 13.38 KiB | Viewed 6453 times ]


After opening one folder, we find several files. The “theme.xwt” is what we are interested in now.
It lists all the widgets used in the theme. And every widget consists of some basic information such as folderName,left,top. Some widgets have user defined variables if we used setvalue() function before.

Please read viewtopic.php?f=10&t=2316 to learn about setvalue() functions.
Attachment:
themef.jpg
themef.jpg [ 26.87 KiB | Viewed 6453 times ]

Attachment:
themexwt.jpg
themexwt.jpg [ 29.31 KiB | Viewed 6453 times ]


Attachment:
widget count.jpg
widget count.jpg [ 251 KiB | Viewed 3577 times ]


look at the last part [Theme] of theme.xwt.
'Count' tell us this theme consists of how many widgets. we can figure out that there are 4 widgets.
the information of every widget is saved in a [widget + number] part.
in this case:
the first widget is [widget 0] , so "0=0"
the second widget is [widget 2], so "1=2"
the third widget is [widget 5], so "2=5"
the last widget is [widget 1], so "3=1"


Top
 Profile  
 
PostPosted: 2012年 Nov 23日 09:45 
Offline
User avatar

Joined: 2012年 Jun 12日 11:05
Posts: 257
Location: Barcelona
Great job Qiancang!!! thanks you very much!!!


Top
 Profile  
 
PostPosted: 2014年 Apr 14日 23:51 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 352
How to include the wallpaper... I doesn't do it by default.

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


Top
 Profile  
 
PostPosted: 2014年 Apr 15日 01:12 
Offline
User avatar

Joined: 2012年 Jun 10日 05:57
Posts: 315
digigamer wrote:
How to include the wallpaper... I doesn't do it by default.


1. rename your wallpaper as WallPaper.jpg
2. open your theme package file(themename.xtp) with winrar or 7z
3. add WallPaper.jpg to Themes\themename
4. done


Top
 Profile  
 
PostPosted: 2014年 Apr 15日 21:00 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 352
Thanks a lot.
May be there should be an option to include that automatically.

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


Top
 Profile  
 
PostPosted: 2014年 Apr 15日 21:26 
Offline
User avatar

Joined: 2012年 Jun 10日 05:57
Posts: 315
digigamer wrote:
Thanks a lot.
May be there should be an option to include that automatically.


Indeed, when you package a theme, there is a option ask you whether to include the wallpaper or not.
But sometimes the wallpaper is still lost even you check that option.


Top
 Profile  
 
PostPosted: 2014年 Apr 16日 19:42 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 352
And that happens always with me :(

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


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 11 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