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:
parent
747b74b6f6
commit
acbdef6133
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue