style: dpi fixes for spinner and slider.

This commit is contained in:
Mathieu Virbel 2013-08-12 10:37:24 +02:00
parent 38668a4ea3
commit 92e0255223
1 changed files with 3 additions and 3 deletions

View File

@ -52,8 +52,8 @@
rgb: 1, 1, 1 rgb: 1, 1, 1
BorderImage: BorderImage:
border: (0, 18, 0, 18) if self.orientation == 'horizontal' else (18, 0, 18, 0) 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 - sp(18), self.y + self.padding) 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(37)) if self.orientation == 'horizontal' else (sp(37), self.height - self.padding * 2) 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 '') source: 'atlas://data/images/defaulttheme/slider{}_background{}'.format(self.orientation[0], '_disabled' if self.disabled else '')
Rectangle: 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)) 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))
@ -490,7 +490,7 @@
<SpinnerOption>: <SpinnerOption>:
size_hint_y: None size_hint_y: None
height: 44 height: '48dp'
<Spinner>: <Spinner>:
background_normal: 'atlas://data/images/defaulttheme/spinner' background_normal: 'atlas://data/images/defaulttheme/spinner'