mirror of https://github.com/kivy/kivy.git
style: dpi fixes for spinner and slider.
This commit is contained in:
parent
38668a4ea3
commit
92e0255223
|
@ -52,8 +52,8 @@
|
|||
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 - sp(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)
|
||||
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))
|
||||
|
@ -490,7 +490,7 @@
|
|||
|
||||
<SpinnerOption>:
|
||||
size_hint_y: None
|
||||
height: 44
|
||||
height: '48dp'
|
||||
|
||||
<Spinner>:
|
||||
background_normal: 'atlas://data/images/defaulttheme/spinner'
|
||||
|
|
Loading…
Reference in New Issue