awtk/demos/assets/raw/styles/button.xml

20 lines
698 B
XML
Raw Normal View History

2018-06-28 16:01:28 +08:00
<button>
2018-07-17 11:27:14 +08:00
<style name="icon" icon="earth" border_color="#a0a0a0" text_color="black">
2018-06-28 16:01:28 +08:00
<normal bg_color="#f0f0f0" />
2018-11-08 14:11:41 +08:00
<pressed bg_color="#c0c0c0" x_offset="3" y_offset="3" />
2018-06-28 16:01:28 +08:00
<over bg_color="#e0e0e0" />
<disable bg_color="gray" text_color="#d0d0d0" />
</style>
<style name="red_btn" bg_image_draw_type="patch3_x" text_color="blue">
2018-06-28 16:01:28 +08:00
<normal bg_image="red_btn_n" />
2018-11-08 14:11:41 +08:00
<pressed bg_image="red_btn_p" x_offset="3" y_offset="3"/>
2018-06-28 16:01:28 +08:00
<over bg_image="red_btn_o" />
</style>
<style name="image" text_color="blue">
<normal icon="play_n" />
<pressed icon="play_p" x_offset="1" y_offset="1"/>
<over icon="play_o" />
2018-06-28 16:01:28 +08:00
</style>
</button>