5 pad_col_sep: 0 if not self.pad_cols else self.parent.pad_x
8 y: (self.parent.top-self.parent.y) - (self.row) * self.parent.key_size - (self.row - 1) * self.parent.key_sep
9 x: (self.col - 1) * self.parent.key_size + int(self.col - 1) * self.parent.key_sep + self.pad_col_sep
11 line_color: 120/255, 120/255, 120/255, 1
20 width: self.key_width * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
21 height: self.key_height * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
32 rounded_rectangle: self.x + self.line_width, self.y + self.line_width, self.width - 2 * self.line_width, self.height - 2 * self.line_width, 10
33 width: self.line_width
36 font_name: h.path() + "fonts/Ubuntu-B.ttf"
37 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size))
39 text: self.parent.key_sym
40 text_size: self.parent.width,self.font_size
44 center_x: self.parent.x + self.texture_size[0] /2 + 5
45 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
47 id: key_description_title
48 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
49 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
51 text: self.parent.description_title
52 text_size: self.parent.width - 2*self.parent.line_width, self.font_size
55 center_x: self.parent.x + self.texture_size[0] /2
56 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
59 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
60 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
62 text: "\n".join(self.parent.description)
63 text_size: 2 * self.parent.width,self.parent.height - key_label.font_size
66 pos: self.parent.x + 2 * self.parent.line_width + 2, self.parent.y
68 size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size
73 rgba: 229/255, 228/255, 226/255, 1
76 size: self.width, self.height
78 key_size: int( (3 * self.width - 16) / 56)
79 key_sep: int( self.key_size / 24)
80 key_pad_sep: int( self.key_size / 7) + 1
82 border: (self.width - self.key_size * 18 - self.key_sep * 16 - self.key_pad_sep)/ 2
84 mapping_height: self.key_size * 6 + self.key_sep * 5
85 mapping_width: self.key_size * 18 + self.key_sep * 16 + self.key_pad_sep
86 mapping_x: self.border
87 mapping_y: self.top - self.mapping_height - self.border
88 action_list_height: self.height - self.mapping_height - 3 * self.border
89 action_list_width: 3 * self.width / 4
90 action_list_x: self.border
91 action_list_y: self.border
92 play_list_height: self.action_list_height
93 play_list_width: self.width - self.action_list_width - 3* self.border
94 play_list_y: self.border
95 play_list_x: self.action_list_width + 2 * self.border
99 pos: self.parent.mapping_x, self.parent.mapping_y
100 size: self.parent.mapping_width, self.parent.mapping_height
102 key_size: self.parent.key_size
103 key_sep: self.parent.key_sep
104 key_pad_sep: self.parent.key_pad_sep
105 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
108 pos: self.parent.action_list_x, self.parent.action_list_y
109 size: self.parent.action_list_width, self.parent.action_list_height
112 pos: self.parent.play_list_x, self.parent.play_list_y
113 size: self.parent.play_list_width, self.parent.play_list_height
116 size_hint: None, None
119 rgba: 250./255, 250./255, 250./255, 1
122 size: self.width, self.height
124 id: action_list_title
125 font_name: h.path() + "fonts/Ubuntu-B.ttf"
126 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
128 text: self.parent.action_title
129 text_size: None, self.parent.height
132 size_hint: None, None
133 size: self.texture_size[0], self.parent.height
135 id: action_list_icons
136 font_name: h.path() + "fonts/Symbola.ttf"
137 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
138 line_height: 1.2 # FIXME: Donner la bonne taille de label
140 text: "\n".join(map(lambda x: x[0], self.parent.action_list))
141 text_size: None, self.parent.height
144 size_hint: None, None
145 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
147 id: action_list_names
148 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
149 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
151 text: "\n".join(map(lambda x: x[1], self.parent.action_list))
152 text_size: None, self.parent.height
155 size_hint: None, None
157 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
160 size_hint: None, None
163 rgba: 250./255, 250./255, 250./255, 1
166 size: self.width, self.height
169 font_name: h.path() + "fonts/Symbola.ttf"
170 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
171 line_height: 1.2 # FIXME: Donner la bonne taille de label
173 text: "\n".join(map(lambda x: x[0], self.parent.playlist))
174 text_size: None, self.parent.height
177 size_hint: None, None
178 size: self.texture_size[0], self.parent.height
181 font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours
182 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
184 text: "\n".join(map(lambda x: x[1], self.parent.playlist))
185 text_size: None, self.parent.height
188 size_hint: None, None
190 size: self.texture_size[0], self.parent.height
193 size_hint: None, None
200 rgba: 250./255, 250./255, 250./255, 1
203 size: self.width, self.height