mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
add small amount of padding to sidebar
https://forums.ankiweb.net/t/anki-2-1-41-beta/7305/3
This commit is contained in:
parent
dc10dbcfb2
commit
aa82bb172d
1 changed files with 2 additions and 1 deletions
|
@ -246,6 +246,7 @@ class SidebarSearchBar(QLineEdit):
|
|||
self.timer = QTimer(self)
|
||||
self.timer.setInterval(600)
|
||||
self.timer.setSingleShot(True)
|
||||
self.setStyleSheet("QLineEdit { padding-left: 3px }")
|
||||
qconnect(self.timer.timeout, self.onSearch)
|
||||
qconnect(self.textChanged, self.onTextChanged)
|
||||
|
||||
|
@ -310,7 +311,7 @@ class SidebarTreeView(QTreeView):
|
|||
|
||||
# match window background color
|
||||
bgcolor = QPalette().window().color().name()
|
||||
self.setStyleSheet("QTreeView { background: '%s'; }" % bgcolor)
|
||||
self.setStyleSheet("QTreeView { padding: 3px; background: '%s'; }" % bgcolor)
|
||||
|
||||
def model(self) -> SidebarModel:
|
||||
return super().model()
|
||||
|
|
Loading…
Reference in a new issue