change style of slider + button using borderimage

This commit is contained in:
Mathieu Virbel 2010-11-10 17:16:35 +01:00
parent 96e53d22cb
commit 527ff4b8f0
3 changed files with 9 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

View File

@ -21,13 +21,12 @@
<Slider>:
canvas:
Color:
rgb: (.3, .3, .3)
Rectangle:
pos: self.pos
size: self.size
Color:
rgb: (.7, .2, .5)
Rectangle:
pos: self.value_pos
size: (20,self.height)
rgb: 1, 1, 1
BorderImage:
pos: self.pos
size: self.size
source: 'data/images/slider-background.png'
BorderImage:
pos: self.value_pos
size: (20, self.height)
source: 'data/images/button.png'