mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
add a subtle indication of the current deck
This commit is contained in:
parent
04b7fd144a
commit
a729b8408b
1 changed files with 6 additions and 1 deletions
|
@ -60,6 +60,7 @@ td.opts { white-space: nowrap; }
|
|||
tr.drag-hover td { border-bottom: %(width)s solid #aaa; }
|
||||
.extra { font-size: 90%%; }
|
||||
body { margin: 1em; -webkit-user-select: none; }
|
||||
.current { background-color: #ececec; }
|
||||
""" % dict(width=_dragIndicatorBorderWidth)
|
||||
|
||||
_body = """
|
||||
|
@ -128,7 +129,11 @@ body { margin: 1em; -webkit-user-select: none; }
|
|||
name, did, due, new, children = node
|
||||
def indent():
|
||||
return " "*3*depth
|
||||
buf = "<tr class='deck' id='%d'>"% did
|
||||
if did == self.mw.col.conf['curDeck']:
|
||||
klass = 'deck current'
|
||||
else:
|
||||
klass = 'deck'
|
||||
buf = "<tr class='%s' id='%d'>" % (klass, did)
|
||||
# deck link
|
||||
buf += "<td colspan=5>%s<a class=deck href='open:%d'>%s</a></td>"% (
|
||||
indent(), did, name)
|
||||
|
|
Loading…
Reference in a new issue