<?xml version="1.0"?>
<xwidget>
	<!-- widget info -->
	<info>
		<name>mini电池</name>
		<version>200</version>
		<author>pigboat</author>
		<authorLogo>pigboat.jpg</authorLogo>
		<copyright>2007</copyright>
		<category2>5</category2>
		<minimumVersion>200</minimumVersion>
		<description>可以停靠到边栏的迷你小电池。 会随着电池多少而改变颜色.</description>
		<showIcon>1</showIcon>
		<scriptFile>script.js</scriptFile>
		<scriptLanguage>JavaScript</scriptLanguage>
		<updateDateTime>2007-06-05 23:54:15</updateDateTime>
		<GUID>{46BC8687-E8CF-4C62-85C7-E92494E8AC6D}</GUID>
		<tag>电池</tag>
		<linkText>blog</linkText>
		<linkUrl>http://hi.baidu.com/pigboat2/</linkUrl>
	</info>
	<!-- widget's main window -->
	<window>
		<EnableDockScreenRight>1</EnableDockScreenRight>
		<page name="firstPage" width="151" height="37" bgAlpha="80" bgColor="">
			<item type="text">
				<name>txtbg</name>
				<caption></caption>
				<autoSize>0</autoSize>
				<bgAlpha>80</bgAlpha>
				<bgColor>153,153,153</bgColor>
				<width>125</width>
				<height>22</height>
				<left>10</left>
				<top>3</top>
			</item>
			<item type="image">
				<name>bg</name>
				<src>bg.png</src>
				<width>144</width>
				<height>37</height>
			</item>
			<item type="image">
				<name>imgprgbg</name>
				<src>full.png</src>
				<width>60</width>
				<height>10</height>
				<alpha>30</alpha>
				<left>33</left>
				<top>11</top>
			</item>
			<item type="progressBar">
				<name>pb</name>
				<dataType>4</dataType>
				<barStyle>1</barStyle>
				<src>full.png</src>
				<borderAlpha>0</borderAlpha>
				<bgAlpha>0</bgAlpha>
				<left>33</left>
				<top>11</top>
				<percent>40</percent>
				<updateInterval>1000</updateInterval>
				<OnChanged>pbOnChanged</OnChanged>
				<visible>1</visible>
			</item>
			<item type="text">
				<name>txtp</name>
				<fontStr>clBlack/-15/Arial/11/1000</fontStr>
				<caption>100%</caption>
				<left>91</left>
				<top>10</top>
				<autoSize>0</autoSize>
				<align>1</align>
				<width>35</width>
				<height>15</height>
				<bgColor>255,255,0</bgColor>
				<bgAlpha>0</bgAlpha>
			</item>
			<item type="image">
				<name>imgno</name>
				<src>nobattery.png</src>
				<width>71</width>
				<height>15</height>
				<left>65</left>
				<top>9</top>
				<visible>0</visible>
			</item>
			<item type="image">
				<name>imgon</name>
				<src>charging_on.png</src>
				<width>8</width>
				<height>15</height>
				<left>21</left>
				<top>10</top>
				<visible>1</visible>
			</item>
		</page>
		<DockScreenRightOffset>-7</DockScreenRightOffset>
		<OnInit>widgetOnInit</OnInit>
		<OnUnDock>widgetOnUnDock</OnUnDock>
		<OnDock>widgetOnDock</OnDock>
	</window>
	<!-- widget's timers setting -->
	<timers>
		<item>
			<name>timer0</name>
			<enabled>1</enabled>
			<interval>1000</interval>
			<OnTimer>timer0OnTimer</OnTimer>
		</item>
	</timers>
	<!-- widget's menus setting -->
	<menus/>
	<!-- widget's  Setting Window -->
	<optionsWindow hideDefaultSettings="0" DefaultOptionPageIndex="2">
		<optionPage caption="窗口"/>
		<optionPage caption="电池">
			<item type="color" name="cl80">
				<caption>电池颜色(&gt;80)</caption>
				<defaultValue>86,202,0</defaultValue>
				<description>电池大于80%时候的颜色，默认为绿色</description>
			</item>
			<item type="color" name="cl50">
				<caption>电池颜色(&gt;50)</caption>
				<defaultValue>86,202,0</defaultValue>
				<description>电池大于50%时候的颜色，默认为绿色</description>
			</item>
			<item type="color" name="cl20">
				<caption>电池颜色(&gt;20)</caption>
				<defaultValue>255,204,0</defaultValue>
				<description>电池大于20%时候的颜色，默认为黄色</description>
			</item>
			<item type="color" name="cl0">
				<caption>电池颜色(&lt;20)</caption>
				<defaultValue>255,60,0</defaultValue>
				<description>电池小于20%时候的颜色，默认为红色</description>
			</item>
			<item type="color" name="clno">
				<caption>电池颜色(无)</caption>
				<defaultValue>153,153,153</defaultValue>
				<description>无电池时候的颜色，默认为灰色</description>
			</item>
		</optionPage>
	</optionsWindow>
	<!-- widget's html panel -->
	<htmlPanel/>
	<!-- widget's wmp panel -->
	<wmpPanel/>
	<!-- widget's float tool panel -->
	<toolFloatPanel>
		<top>-5</top>
		<topDocked>-5</topDocked>
	</toolFloatPanel>
	<flashPanel/><ppsPanel/></xwidget>
