Set row padding in preferences

This commit is contained in:
Keith Edmunds 2024-12-14 17:11:16 +00:00
parent 17d88ca8fe
commit 734960e0f3
2 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ class Config(object):
REPLACE_FILES_DEFAULT_SOURCE = "/home/kae/music/Singles/tmp"
RETURN_KEY_DEBOUNCE_MS = 1000
ROOT = os.environ.get("ROOT") or "/home/kae/music"
ROW_PADDING = 4
ROWS_FROM_ZERO = True
SCROLL_TOP_MARGIN = 3
SECTION_ENDINGS = ("-", "+-", "-+")

View File

@ -212,7 +212,7 @@ class PlaylistDelegate(QStyledItemDelegate):
doc = QTextDocument()
doc.setTextWidth(option.rect.width())
doc.setDefaultFont(option.font)
doc.setDocumentMargin(0)
doc.setDocumentMargin(Config.ROW_PADDING)
doc.setHtml(option.text)
# For debugging +++