tri state checkboxes are probably a terrible idea
This commit is contained in:
1 parent
195ade962d
commit
507a3d333f
3 files changed
+36
-4
No files matched your search
+7
-2
@@ -682,6 +682,7 @@
|
||||
color: LIGHTGREY
|
||||
|
||||
|
||||
|
||||
<AnalysisToggle>:
|
||||
adaptive_width: True
|
||||
spacing: CP_SPACING
|
||||
@@ -697,15 +698,18 @@
|
||||
color: checkbox.disabled_color if root.disabled else (checkbox.selected_color if checkbox.active else checkbox.unselected_color)
|
||||
size_hint_x: None
|
||||
width: self.texture_size[0] + 4
|
||||
on_left_press: checkbox.active = not checkbox.active
|
||||
MDCheckbox:
|
||||
on_left_press: checkbox.trigger_action()
|
||||
TriStateMDCheckbox:
|
||||
id: checkbox
|
||||
disabled: root.disabled
|
||||
tri_state: root.tri_state
|
||||
size_hint: None,0.5
|
||||
pos_hint: {'center_y': 0.5}
|
||||
width: self.height
|
||||
active: root.default_active
|
||||
on_active: if app.gui: app.gui.update_state()
|
||||
on_slashed: if app.gui: app.gui.update_state()
|
||||
|
||||
|
||||
<AnalysisMenuItem@MenuItem>:
|
||||
on_close: app.gui.analysis_controls.close_dropdown()
|
||||
@@ -794,6 +798,7 @@
|
||||
AnalysisToggle:
|
||||
id: eval
|
||||
text: i18n._("analysis:dots")
|
||||
tri_state: True
|
||||
AnalysisToggle:
|
||||
id: hints
|
||||
text: i18n._("analysis:topmoves")
|
||||
|
||||
Reference in new issue
Block a user