mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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; }
|
tr.drag-hover td { border-bottom: %(width)s solid #aaa; }
|
||||||
.extra { font-size: 90%%; }
|
.extra { font-size: 90%%; }
|
||||||
body { margin: 1em; -webkit-user-select: none; }
|
body { margin: 1em; -webkit-user-select: none; }
|
||||||
|
.current { background-color: #ececec; }
|
||||||
""" % dict(width=_dragIndicatorBorderWidth)
|
""" % dict(width=_dragIndicatorBorderWidth)
|
||||||
|
|
||||||
_body = """
|
_body = """
|
||||||
|
@ -128,7 +129,11 @@ body { margin: 1em; -webkit-user-select: none; }
|
||||||
name, did, due, new, children = node
|
name, did, due, new, children = node
|
||||||
def indent():
|
def indent():
|
||||||
return " "*3*depth
|
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
|
# deck link
|
||||||
buf += "<td colspan=5>%s<a class=deck href='open:%d'>%s</a></td>"% (
|
buf += "<td colspan=5>%s<a class=deck href='open:%d'>%s</a></td>"% (
|
||||||
indent(), did, name)
|
indent(), did, name)
|
||||||
|
|
Loading…
Reference in a new issue