Refine PDF reader interface

This commit is contained in:
2026-06-30 00:01:34 +08:00
parent 83ae720e9c
commit 04b1e9edf4
6 changed files with 72 additions and 54 deletions
+5 -5
View File
@@ -161,8 +161,8 @@ class PdfViewer(QScrollArea):
self.content_widget = QWidget()
self.content_widget.setObjectName("pdfContinuousContent")
self.content_layout = QVBoxLayout(self.content_widget)
self.content_layout.setContentsMargins(24, 24, 24, 24)
self.content_layout.setSpacing(12)
self.content_layout.setContentsMargins(32, 28, 32, 28)
self.content_layout.setSpacing(18)
self.content_layout.setAlignment(Qt.AlignmentFlag.AlignHCenter | Qt.AlignmentFlag.AlignTop)
self.page_label = self._make_empty_label()
@@ -325,9 +325,9 @@ class PdfViewer(QScrollArea):
def _apply_page_shadow(self, label: PageLabel) -> None:
shadow = QGraphicsDropShadowEffect(label)
shadow.setBlurRadius(18)
shadow.setOffset(0, 2)
shadow.setColor(QColor(0, 0, 0, 80))
shadow.setBlurRadius(22)
shadow.setOffset(0, 3)
shadow.setColor(QColor(0, 0, 0, 58))
label.setGraphicsEffect(shadow)
def _connect_page_label(self, label: PageLabel, page_index: int) -> None: