6 scale_factor
= float(os
.getenv('GIT_COLA_SCALE', '1'))
11 def scale(value
, factor
=scale_factor
):
12 return int(value
* factor
)
16 small_margin
= scale(2)
18 large_margin
= scale(12)
22 titlebar_spacing
= scale(8)
23 button_spacing
= scale(12)
25 cursor_width
= scale(2)
26 handle_width
= scale(4)
27 tool_button_height
= scale(28)
29 default_icon
= scale(16)
30 small_icon
= scale(12)
31 medium_icon
= scale(48)
32 large_icon
= scale(96)
33 huge_icon
= scale(192)
35 max_size
= scale(4096)
37 border
= max(1, scale(0.5))
43 radio_border
= max(1, scale(1.0 - (1.0 / math
.pi
)))