1
0
mirror of https://github.com/darkzoul5/YoutubePlaylistSync.git synced 2026-07-03 04:23:59 +03:00

change about page formating

This commit is contained in:
2026-06-03 17:46:30 +03:00
parent de315d07e0
commit b06ab55f99
2 changed files with 36 additions and 5 deletions
+18 -1
View File
@@ -328,8 +328,11 @@ class MainWindow(QtWidgets.QMainWindow):
self.setStyleSheet(
"""
QMainWindow { background: #0f1115; color: #e6e6e6; }
QWidget { font-size: 13px; }
QWidget { font-size: 13px; color: #e6e6e6; }
QLabel#pageTitle { font-size: 18px; font-weight: 600; padding: 4px 0; }
QLabel[muted="true"] { color: #aeb6c2; }
QLabel[link="true"] { color: #8fb8ff; }
QLabel[link="true"]:hover { color: #b8d2ff; }
QListWidget#sidebar {
background: #0b0d11;
@@ -351,6 +354,20 @@ class MainWindow(QtWidgets.QMainWindow):
gridline-color: #20242d;
border: 1px solid #20242d;
}
QGroupBox {
border: 1px solid #20242d;
border-radius: 10px;
margin-top: 14px;
padding: 12px;
background: #0b0d11;
}
QGroupBox::title {
subcontrol-origin: margin;
left: 12px;
padding: 0 6px;
color: #d5dae3;
background: #0b0d11;
}
QHeaderView::section {
background: #0b0d11;
color: #cfd3da;
+18 -4
View File
@@ -6,8 +6,10 @@ from PySide6 import QtCore, QtWidgets
class AboutPage(QtWidgets.QWidget):
def __init__(self, parent: QtWidgets.QWidget | None = None) -> None:
super().__init__(parent)
self.setObjectName("aboutPage")
layout = QtWidgets.QVBoxLayout(self)
layout.setSpacing(12)
title = QtWidgets.QLabel("About")
title.setObjectName("pageTitle")
@@ -17,16 +19,25 @@ class AboutPage(QtWidgets.QWidget):
"ytpl-sync is a desktop app for keeping local copies of YouTube playlists in sync."
)
subtitle.setWordWrap(True)
subtitle.setProperty("muted", True)
layout.addWidget(subtitle)
note = QtWidgets.QLabel(
"This project started as a student project and is still evolving."
"This project is a student project."
)
note.setWordWrap(True)
note.setProperty("muted", True)
layout.addWidget(note)
info_box = QtWidgets.QGroupBox("Project")
info_box.setObjectName("aboutCard")
info_layout = QtWidgets.QFormLayout(info_box)
info_layout.setLabelAlignment(QtCore.Qt.AlignmentFlag.AlignLeft)
info_layout.setFormAlignment(
QtCore.Qt.AlignmentFlag.AlignTop | QtCore.Qt.AlignmentFlag.AlignLeft
)
info_layout.setHorizontalSpacing(14)
info_layout.setVerticalSpacing(10)
author = QtWidgets.QLabel("Dark_Zoul")
info_layout.addRow("Author", author)
@@ -40,6 +51,7 @@ class AboutPage(QtWidgets.QWidget):
)
repo.setOpenExternalLinks(True)
repo.setWordWrap(True)
repo.setProperty("link", True)
info_layout.addRow("Repository", repo)
issue = QtWidgets.QLabel(
@@ -51,21 +63,23 @@ class AboutPage(QtWidgets.QWidget):
)
issue.setOpenExternalLinks(True)
issue.setWordWrap(True)
issue.setProperty("link", True)
info_layout.addRow("Report issue", issue)
layout.addWidget(info_box)
suggestions_box = QtWidgets.QGroupBox("Suggestions")
suggestions_box.setObjectName("aboutCard")
suggestions_layout = QtWidgets.QVBoxLayout(suggestions_box)
suggestions_layout.setSpacing(8)
suggestions = [
"Keep yt-dlp updated regularly so site extraction stays reliable.",
"Open an issue with a playlist URL and log snippet when a sync fails.",
"Use the release builds when you want a ready-to-run binary package.",
"Keep the app updated regularly so that YouTube extraction stays reliable."
]
for text in suggestions:
label = QtWidgets.QLabel(f"{text}")
label.setWordWrap(True)
label.setProperty("muted", True)
suggestions_layout.addWidget(label)
suggestions_layout.addStretch(1)