电脑技术学习

自己动手做喜欢的简单主题(二)

admin

在上一篇同名短文中,笔者不揣浅陋端出了自己做的简单主题,感谢论坛前辈、网友的指导和鼓励。现应网友要求,举例《登岳阳楼》将制作过程扼要解释一下。笔者实在也是菜得很,买来565后才接触智能手机,班门弄斧了,谬误之处敬请指出。

二、选择主题加以改造
    为了容易上手,同时自己不懂写,所以选择了565的自带默认方案来改造一下。呵呵,拿来主义啊…
(一)复制主题文件
    通过数据线或红外连线接565与电脑,电脑上打开ActiveSync程序(565随机光盘上有,安装即可),通过浏览(打开我的电脑),到移动设备(我的 Smartphone)的windows目录下将 windows 的默认方案主题文件 full.home.xml 复制到电脑上,然后在电脑上就可以编辑这个主题文件了。
(二)编辑改造主题文件
    这是原565的windows默认方案主题,限于篇幅我只将要改动的那一部分贴出(斜体加粗示需要改动),不变动的部分用括号省略号(……)代替:

<?xml version="1.0"?>
<home>
 <author>Microsoft Corporation</author>
 <contacturl>http://www.microsoft.com/</contacturl>
       (……)
 <title lang="0x0804">Windows 默认方案</title>

 <version>1.0</version>
 <default font-face="nina" font-size="14" font-weight="normal" padding-left="4" padding-right="4" bgcolor="transparent" fgcolor="COLOR_HOMETEXT" padding-top="2" b-border-color="COLOR_HOMERULE" b-border-width="1">
  <format state="selected" fgcolor="COLOR_HOMEHIGHLIGHTTEXT"/>
 </default>
 <background bgimage="windowsWindowsMobile.jpg" valign="bottom" bgcolor="COLOR_TRAYGRADLEFT" />
 <scheme>
  <color name="COLOR_WINDOW" value="#FFFFFF" />
    (……)
  <color name="COLOR_HOMEHIGHLIGHT" value="#003684" />
 </scheme>
 <plugin clsid="{837FC251-FE69-43ad-84E0-EBCEDEBA0884}" name="iconbar" height="20">
  <iconbar fgcolor="COLOR_TRAYTEXT"/>
  <background gradient="title" bgcolor="COLOR_TRAYGRADLEFT" b-border-color="COLOR_WINDOWFRAME" b-border-width="1"/>
 </plugin>
 <plugin clsid="{79EFB752-CB70-446d-B317-499723482B3D}" name="startmru" height="38">
  <mru y="2"/>
 </plugin>
 <plugin clsid="{E09043DF-510E-4841-B652-388316977A7A}" name="carrier" height="40">
  <label>
   <text><carrier/></text>
  </label>
  <clock>
   <time y="17"/>
   <date y="17" halign="right"/>
  </clock>
 </plugin>
 <plugin clsid="{37391041-C324-4725-BEE1-3232ED3539CA}" name="callprog" height="41">
  (……)
 </plugin>
 <plugin clsid="{0BA8ABB8-1F1D-417f-88C6-DA8530E2E7A6}" name="missedcalls" height="20">
  (……)
 </plugin>
 <plugin clsid="{2FFD93B3-0FF0-4228-A6D6-D2DF177D7D92}" name="alldayevent" height="20">
  (……) 
 </plugin>
 <plugin clsid="{865A354A-4A96-4687-B001-C155DC0DBE76}" name="calendar" height="40">
  <background>
   <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
  </background>
  <label h="16">
   <text><subject/></text>
  </label>
  <label y="17">
   <text><time/></text>
  </label>
 </plugin>
 <plugin clsid="{95976968-45D5-40c9-9779-2B859B1C2FEC}" name="profile" height="20">
  (……)
 </plugin>
 <plugin clsid="{4e822425-a00f-497c-80ff-1c554665a369}" name="cooltext" height="20">

  (……)
</home>

以下是改动后的《登岳阳楼》主题,斜体加粗部分是改动后的,不变动的部分也用括号省略号(……)代替:

<?xml version="1.0"?>
<home>
 <author>Microsoft Corporation</author>
 <contacturl>http://www.microsoft.com/</contacturl>
 <title lang="0x0804">登岳阳楼</title>
 <version>1.0</version>
 <default font-face="nina" font-size="14" font-weight="normal" padding-left="4" padding-right="2" bgcolor="transparent" fgcolor="COLOR_HOMETEXT" padding-top="1" b-border-color="COLOR_HOMERULE" b-border-width="0">
  <format state="selected" fgcolor="COLOR_HOMEHIGHLIGHTTEXT"/>
 </default>
 <background bgimage="StorageApplication DataHome登岳阳楼.jpg" valign="bottom" bgcolor="COLOR_TRAYGRADLEFT" />
 <scheme>
  <color name="COLOR_WINDOW" value="#FFFFFF" />
    (……)
  <color name="COLOR_HOMEHIGHLIGHT" value="#003684" />
 </scheme>
 <plugin clsid="{E09043DF-510E-4841-B652-388316977A7A}" name="carrier" height="200">
                <label>
   <text lang="0x0804" padding-left="14" padding-right="14" y="34">昔闻洞庭水,今上岳阳楼;吴楚东南坼,乾坤日夜浮;亲朋无一字,老病有孤舟;戎马关山北,凭轩涕泗流。</text>
                </label>
                <label>
                        <text lang="0x0804" padding-left="24" y="100">----杜甫·登岳阳楼</text>
                </label>
        </plugin>
 <plugin clsid="{837FC251-FE69-43ad-84E0-EBCEDEBA0884}" name="iconbar" height="19">
  <iconbar fgcolor="transparent"/>
  <background bgcolor="transparent" b-border-color="COLOR_WINDOWFRAME" b-border-width="0"/>
 </plugin>
        <plugin clsid="{79EFB752-CB70-446d-B317-499723482B3D}" name="startmru" height="31">
                <background b-border-width="0"/>
                <mru icon-size="16" max-butt y="10"/>
 </plugin>
 <plugin clsid="{E09043DF-510E-4841-B652-388316977A7A}" name="carrier" height="36">
                <clock>
                        <time y="0" font-size="32" padding-left="3"/>
   <date mode="long" y="8" font-weight="bold" halign="right"/>
                </clock>
        </plugin>
        <plugin clsid="{37391041-C324-4725-BEE1-3232ED3539CA}" name="callprog" height="38">
  (……)
 </plugin>
 <plugin clsid="{0BA8ABB8-1F1D-417f-88C6-DA8530E2E7A6}" name="missedcalls" height="19">
  (……)
 </plugin>
 <plugin clsid="{2FFD93B3-0FF0-4228-A6D6-D2DF177D7D92}" name="alldayevent" height="19">
  (……)
 </plugin>
 <plugin clsid="{865A354A-4A96-4687-B001-C155DC0DBE76}" name="calendar" height="31">
  <background>
   <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
  </background>
  <label h="16">
   <text><subject/></text>
  </label>
  <label y="13">
   <text><time/></text>
  </label>
 </plugin>
 <plugin clsid="{95976968-45D5-40c9-9779-2B859B1C2FEC}" name="profile" height="19">
  (……)
 </plugin>
 <plugin clsid="{4e822425-a00f-497c-80ff-1c554665a369}" name="cooltext" height="19">

  (……)
</home>

    上述改动主要的是:在信息操控界面前增加了一个空白界面,利用原来显示网络运营商名称的插件部分改为写入诗词;而在信息操控界面,将信息头改为透明,将应用程序快捷图标缩小一倍,并显示9个(这里需改动一下注册表:HKEY_CURRENT_USER/SOFTWARE/MICROSOFT/SHELL/STARTMRU,显示InitialOrder的键值,默认为纸牌、IE、日程安排、联系人、短消息这5个。按自己的意思来改变初始值,这些快捷方式都在/storage/windows/start menu/下面,支持在下级文件夹中。);数字时钟加大字体并显示星期。

    将在电脑上编辑改好的主题文件保存,重命名为自己喜欢的名(如登岳阳楼),然后再将重命名后的主题文件复制到565(我的 Smartphone)/storage/application data/home 下,先前编辑好的图片亦同样复制到该路径位置下,就可以在565的设置里找到选用它了。

三、在565上设置

    在565的设置/主屏幕的布局、色彩、背景选项框内选择,如上图左;另外在设置的/区域设置/长日期样式选项框内选择有星期显示的项,如上图右。

    至此,整个过程基本完成。