Compare commits
2 Commits
17d88ca8fe
...
2ce6eb95ed
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ce6eb95ed | ||
|
|
734960e0f3 |
@ -93,6 +93,7 @@ class Config(object):
|
|||||||
REPLACE_FILES_DEFAULT_SOURCE = "/home/kae/music/Singles/tmp"
|
REPLACE_FILES_DEFAULT_SOURCE = "/home/kae/music/Singles/tmp"
|
||||||
RETURN_KEY_DEBOUNCE_MS = 1000
|
RETURN_KEY_DEBOUNCE_MS = 1000
|
||||||
ROOT = os.environ.get("ROOT") or "/home/kae/music"
|
ROOT = os.environ.get("ROOT") or "/home/kae/music"
|
||||||
|
ROW_PADDING = 4
|
||||||
ROWS_FROM_ZERO = True
|
ROWS_FROM_ZERO = True
|
||||||
SCROLL_TOP_MARGIN = 3
|
SCROLL_TOP_MARGIN = 3
|
||||||
SECTION_ENDINGS = ("-", "+-", "-+")
|
SECTION_ENDINGS = ("-", "+-", "-+")
|
||||||
|
|||||||
@ -196,7 +196,7 @@ def get_relative_date(
|
|||||||
days_str = "day"
|
days_str = "day"
|
||||||
else:
|
else:
|
||||||
days_str = "days"
|
days_str = "days"
|
||||||
return f"{weeks} {weeks_str}, {days} {days_str} ago"
|
return f"{weeks} {weeks_str}, {days} {days_str}"
|
||||||
|
|
||||||
|
|
||||||
def get_tags(path: str) -> Dict[str, Any]:
|
def get_tags(path: str) -> Dict[str, Any]:
|
||||||
|
|||||||
@ -212,7 +212,7 @@ class PlaylistDelegate(QStyledItemDelegate):
|
|||||||
doc = QTextDocument()
|
doc = QTextDocument()
|
||||||
doc.setTextWidth(option.rect.width())
|
doc.setTextWidth(option.rect.width())
|
||||||
doc.setDefaultFont(option.font)
|
doc.setDefaultFont(option.font)
|
||||||
doc.setDocumentMargin(0)
|
doc.setDocumentMargin(Config.ROW_PADDING)
|
||||||
doc.setHtml(option.text)
|
doc.setHtml(option.text)
|
||||||
|
|
||||||
# For debugging +++
|
# For debugging +++
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user