comparison cagou/kv/profile_manager.kv @ 491:203755bbe0fe

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:32 +0200
parents 3c9ba4a694ef
children
comparison
equal deleted inserted replaced
490:962d17c4078c 491:203755bbe0fe
132 valign: "top" 132 valign: "top"
133 GridLayout: 133 GridLayout:
134 cols: 2 134 cols: 2
135 PMButton: 135 PMButton:
136 text: "Delete" 136 text: "Delete"
137 on_press: root.doDelete() 137 on_press: root.do_delete()
138 138
139 PMButton: 139 PMButton:
140 text: "Cancel" 140 text: "Cancel"
141 on_press: 141 on_press:
142 root.pm.screen_manager.transition.direction = 'right' 142 root.pm.screen_manager.transition.direction = 'right'
179 Button 179 Button
180 text: "Connect" 180 text: "Connect"
181 size_hint: 1, None 181 size_hint: 1, None
182 height: dp(40) 182 height: dp(40)
183 disabled: not root.pm.selected 183 disabled: not root.pm.selected
184 on_press: root.pm._onConnectProfiles() 184 on_press: root.pm._on_connect_profiles()
185 185
186 186
187 <ProfileItem>: 187 <ProfileItem>:
188 size_hint: 1, None 188 size_hint: 1, None
189 background_normal: "" 189 background_normal: ""
191 deselected_color: (1,1,1,1) if self.index%2 else (0.87,0.87,0.87,1) 191 deselected_color: (1,1,1,1) if self.index%2 else (0.87,0.87,0.87,1)
192 selected_color: 0.67,1.0,1.0,1 192 selected_color: 0.67,1.0,1.0,1
193 selected: self.state == 'down' 193 selected: self.state == 'down'
194 color: 0,0,0,1 194 color: 0,0,0,1
195 background_color: self.selected_color if self.selected else self.deselected_color 195 background_color: self.selected_color if self.selected else self.deselected_color
196 on_press: self.ps.pm.selectProfile(self) 196 on_press: self.ps.pm.select_profile(self)
197 height: dp(30) 197 height: dp(30)