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.
This commit is contained in:
LemonNexus 2026-02-15 18:44:55 +00:00
parent 747b74b6f6
commit acbdef6133
1 changed files with 2 additions and 5 deletions

View File

@ -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()