Compare commits
No commits in common. "2ce6eb95ed5aa037f269bc62a48dc3bfd487c7e9" and "17d88ca8fee46890ab6e6fdf409970f073cce2d6" have entirely different histories.
2ce6eb95ed
...
17d88ca8fe
@ -93,7 +93,6 @@ 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 = ("-", "+-", "-+")
|
||||
|
||||
@ -196,7 +196,7 @@ def get_relative_date(
|
||||
days_str = "day"
|
||||
else:
|
||||
days_str = "days"
|
||||
return f"{weeks} {weeks_str}, {days} {days_str}"
|
||||
return f"{weeks} {weeks_str}, {days} {days_str} ago"
|
||||
|
||||
|
||||
def get_tags(path: str) -> Dict[str, Any]:
|
||||
|
||||
@ -212,7 +212,7 @@ class PlaylistDelegate(QStyledItemDelegate):
|
||||
doc = QTextDocument()
|
||||
doc.setTextWidth(option.rect.width())
|
||||
doc.setDefaultFont(option.font)
|
||||
doc.setDocumentMargin(Config.ROW_PADDING)
|
||||
doc.setDocumentMargin(0)
|
||||
doc.setHtml(option.text)
|
||||
|
||||
# For debugging +++
|
||||
|
||||
Loading…
Reference in New Issue
Block a user