From 734960e0f3b7e935cf3d8b59cebbdd13222d20e6 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 14 Dec 2024 17:11:16 +0000 Subject: [PATCH] Set row padding in preferences --- app/config.py | 1 + app/playlists.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 8c33418..9b6ffe7 100644 --- a/app/config.py +++ b/app/config.py @@ -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 = ("-", "+-", "-+") diff --git a/app/playlists.py b/app/playlists.py index ed85d39..89701de 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -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 +++