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

41 lines
1.5 KiB
XML

<button>
<style name="round" border_color="#a0a0a0" text_color="black" round_radius="8">
<normal bg_color="#f0f0f0" />
<pressed bg_color="#c0c0c0" x_offset="1" y_offset="1"/>
<over bg_color="#e0e0e0" />
<disable bg_color="gray" text_color="#d0d0d0" />
</style>
<style name="icon" icon="earth" border_color="#a0a0a0" text_color="black">
<normal bg_color="#f0f0f0" />
<pressed bg_color="#c0c0c0" x_offset="3" y_offset="3" />
<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">
<normal bg_image="red_btn_n" />
<pressed bg_image="red_btn_p" x_offset="3" y_offset="3"/>
<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" />
</style>
<style name="close" border_color="#a0a0a0" text_color="black" self_layout="default(x=center,y=bottom:50,w=50%,h=30)">
<normal bg_color="#f0f0f0" />
<pressed bg_color="#c0c0c0" x_offset="1" y_offset="1"/>
<over bg_color="#e0e0e0" />
<focused bg_color="#e0e0e0" />
<disable bg_color="gray" text_color="#d0d0d0" />
</style>
</button>
<column>
<style name="buttons" children_layout="default(row=4,col=1,spacing=10)" self_layout="default(x=center,y=10,w=50%,h=148)">
<normal />
</style>
</column>