mirror of https://github.com/kivy/kivy.git
change style of slider + button using borderimage
This commit is contained in:
parent
96e53d22cb
commit
527ff4b8f0
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 |
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue