mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
Colored button borders to prevent Hard misuse
This commit is contained in:
parent
a842ba1498
commit
a74fd43d34
1 changed files with 8 additions and 1 deletions
|
|
@ -919,6 +919,12 @@ timerStopped = false;
|
|||
extra = """id="defease" """
|
||||
else:
|
||||
extra = ""
|
||||
|
||||
if i == 1:
|
||||
button_class = "answerIncorrect"
|
||||
else:
|
||||
button_class = "answerCorrect"
|
||||
|
||||
due = self._buttonTime(i, v3_labels=labels)
|
||||
key = (
|
||||
tr.actions_shortcut_key(val=aqt.mw.pm.get_answer_key(i))
|
||||
|
|
@ -926,9 +932,10 @@ timerStopped = false;
|
|||
else ""
|
||||
)
|
||||
return """
|
||||
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||
<td align=center><button %s class="answerButton %s" title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||
%s%s</button></td>""" % (
|
||||
extra,
|
||||
button_class,
|
||||
key,
|
||||
i,
|
||||
i,
|
||||
|
|
|
|||
Loading…
Reference in a new issue