1 from __future__
import absolute_import
, division
, unicode_literals
7 scale_factor
= float(os
.getenv('GIT_COLA_SCALE', '1'))
12 def scale(value
, factor
=scale_factor
):
13 return int(value
* factor
)
17 small_margin
= scale(2)
19 large_margin
= scale(12)
24 cursor_width
= scale(2)
25 handle_width
= scale(4)
26 button_spacing
= scale(12)
27 tool_button_height
= scale(28)
29 small_icon
= scale(16)
30 medium_icon
= scale(48)
31 large_icon
= scale(96)
32 huge_icon
= scale(192)
34 max_size
= scale(4096)
36 border
= max(1, scale(0.5))
41 radio_border
= max(1, scale(1.0 - (1.0 / math
.pi
)))