1 from __future__
import absolute_import
, division
, print_function
, 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)
23 titlebar_spacing
= scale(8)
24 button_spacing
= scale(12)
26 cursor_width
= scale(2)
27 handle_width
= scale(4)
28 tool_button_height
= scale(28)
30 default_icon
= scale(16)
31 small_icon
= scale(12)
32 medium_icon
= scale(48)
33 large_icon
= scale(96)
34 huge_icon
= scale(192)
36 max_size
= scale(4096)
38 border
= max(1, scale(0.5))
44 radio_border
= max(1, scale(1.0 - (1.0 / math
.pi
)))