From acbdef6133ee9aa2fd96953d6c4edb071edca7df Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Sun, 15 Feb 2026 18:44:55 +0000 Subject: [PATCH] fix: perfect_ux.py errors - remove box-shadow and fix layout call 1. Removed box-shadow CSS properties (not supported by Qt) 2. Fixed TypeError: 'QVBoxLayout' object is not callable - Removed redundant placeholder.layout() call - Layout was already set up correctly App should launch without errors now. --- core/perfect_ux.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/perfect_ux.py b/core/perfect_ux.py index 1b8bd6d..3a39254 100644 --- a/core/perfect_ux.py +++ b/core/perfect_ux.py @@ -174,7 +174,7 @@ class Button(QPushButton): }} QPushButton:hover {{ background: {self._lighten(c['accent_orange'], 10)}; - box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3); + }} QPushButton:pressed {{ background: {self._darken(c['accent_orange'], 10)}; @@ -242,7 +242,7 @@ class Button(QPushButton): }} QPushButton:hover {{ background: rgba(55, 65, 82, 0.95); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); + }} """ } @@ -798,9 +798,6 @@ class PerfectMainWindow(QMainWindow): placeholder_text.setAlignment(Qt.AlignmentFlag.AlignCenter) placeholder_layout.addWidget(placeholder_text) - placeholder.set_content(QWidget()) - placeholder.layout().addWidget(placeholder_text) - layout.addWidget(placeholder) layout.addStretch()