From 58fc21ec379493bc82344a4f45dc7b3b042f34ed Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 8 Mar 2016 08:57:44 +0100 Subject: [PATCH] add missing Slider to style.kv --- gui/kivy/data/style.kv | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gui/kivy/data/style.kv b/gui/kivy/data/style.kv index 90c2a634f..927e5059b 100644 --- a/gui/kivy/data/style.kv +++ b/gui/kivy/data/style.kv @@ -46,6 +46,20 @@ background_disabled_down: 'atlas://data/images/defaulttheme/bubble_btn_pressed' border: (0, 0, 0, 0) +: + canvas: + Color: + rgb: 1, 1, 1 + BorderImage: + border: (0, 18, 0, 18) if self.orientation == 'horizontal' else (18, 0, 18, 0) + pos: (self.x + self.padding, self.center_y - sp(18)) if self.orientation == 'horizontal' else (self.center_x - 18, self.y + self.padding) + size: (self.width - self.padding * 2, sp(36)) if self.orientation == 'horizontal' else (sp(36), self.height - self.padding * 2) + source: 'atlas://data/images/defaulttheme/slider{}_background{}'.format(self.orientation[0], '_disabled' if self.disabled else '') + Rectangle: + pos: (self.value_pos[0] - sp(16), self.center_y - sp(17)) if self.orientation == 'horizontal' else (self.center_x - (16), self.value_pos[1] - sp(16)) + size: (sp(32), sp(32)) + source: 'atlas://data/images/defaulttheme/slider_cursor{}'.format('_disabled' if self.disabled else '') + : canvas.before: PushMatrix