awtk/demos/res/raw/theme/theme.xml
2018-03-31 13:48:18 +08:00

92 lines
2.6 KiB
XML

<window>
<style name="default">
<normal bg-color="#f0f0f0"/>
</style>
<style name="1:bricks">
<normal bg-image="bricks" bg-image-draw-type="repeat"/>
</style>
</window>
<button>
<style name="default">
<normal bg-color="#f0f0f0" text-color="black" border-color="#a0a0a0" />
<pressed bg-color="#c0c0c0" text-color="black" border-color="#a0a0a0" />
<over bg-color="#e0e0e0" text-color="black" border-color="#a0a0a0" />
<disable bg-color="gray" text-color="#d0d0d0" border-color="#a0a0a0" />
</style>
<style name="1:green_btn">
<normal bg-image="green_btn_n" bg-image-draw-type="3patch_x" text-color="white"/>
<pressed bg-image="green_btn_p" bg-image-draw-type="3patch_x" text-color="white"/>
<over bg-image="green_btn_o" bg-image-draw-type="3patch_x" text-color="white"/>
</style>
<style name="2:red_btn">
<normal bg-image="red_btn_n" bg-image-draw-type="3patch_x" text-color="white"/>
<pressed bg-image="red_btn_p" bg-image-draw-type="3patch_x" text-color="white"/>
<over bg-image="red_btn_o" bg-image-draw-type="3patch_x" text-color="white"/>
</style>
</button>
<label>
<style name="default">
<normal text-color="black" />
</style>
<style name="1:green">
<normal text-color="green" />
</style>
<style name="2:left">
<normal text-color="red" text-align-h="left" border-color="#a0a0a0" margin="4" />
</style>
<style name="3:center">
<normal text-color="green" text-align-h="center" border-color="#a0a0a0" />
</style>
<style name="4:right">
<normal text-color="blue" text-align-h="right" border-color="#a0a0a0" margin="4"/>
</style>
</label>
<progress_bar>
<style>
<normal bg-color="#f0f0f0" text-color="gold" fg-color="black" border-color="#a0a0a0" />
</style>
</progress_bar>
<check_button>
<style name="default">
<checked bg-color="#f0f0f0" text-color="black" icon="checked" />
<unchecked bg-color="#f0f0f0" text-color="black" icon="unchecked" />
</style>
</check_button>
<radio_button>
<style name="default">
<checked bg-color="#f0f0f0" text-color="black" icon="radio_checked" />
<unchecked bg-color="#f0f0f0" text-color="black" icon="radio_unchecked" />
</style>
</radio_button>
<image>
<style name="1:border">
<normal border-color="#000000" bg-color="#e0e0e0"/>
</style>
</image>
<dialog_title>
<style name="default">
<normal bg-image="dialog_title" bg-image-draw-type="3patch_x" icon="info"/>
</style>
</dialog_title>
<dialog_client>
<style name="default">
<normal bg-color="#ededed" border-color="#a9a9a0" />
</style>
</dialog_client>