DarkMode ist existent yeah
Dieser Commit ist enthalten in:
@ -33,12 +33,7 @@ class SidebarFilter(QWidget):
|
||||
def init_ui(self):
|
||||
"""Initialisiert die UI nach Styleguide"""
|
||||
self.setMaximumWidth(260) # Styleguide: Sidebar-Breite
|
||||
self.setStyleSheet("""
|
||||
QWidget {
|
||||
background-color: #FFFFFF;
|
||||
border-right: 1px solid #E2E8F0;
|
||||
}
|
||||
""")
|
||||
self.setObjectName("filter_sidebar") # For QSS targeting
|
||||
|
||||
layout = QVBoxLayout(self)
|
||||
layout.setContentsMargins(20, 20, 20, 20)
|
||||
@ -70,29 +65,7 @@ class SidebarFilter(QWidget):
|
||||
btn = QPushButton(f"{name} (0)")
|
||||
btn.setObjectName(key)
|
||||
btn.setCursor(Qt.PointingHandCursor)
|
||||
btn.setStyleSheet("""
|
||||
QPushButton {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
text-align: left;
|
||||
padding: 12px 16px;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
color: #4A5568;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
}
|
||||
QPushButton:hover {
|
||||
background-color: #F7FAFC;
|
||||
color: #2D3748;
|
||||
}
|
||||
QPushButton[selected="true"] {
|
||||
background-color: #E6F2FF;
|
||||
color: #1E40AF;
|
||||
font-weight: 500;
|
||||
border-left: 3px solid #3182CE;
|
||||
padding-left: 13px;
|
||||
}
|
||||
""")
|
||||
btn.setObjectName("filter_button") # For QSS targeting
|
||||
btn.clicked.connect(lambda: self._on_filter_clicked(key))
|
||||
|
||||
# Erste Option als aktiv setzen
|
||||
@ -155,11 +128,7 @@ class AccountsOverviewView(QWidget):
|
||||
|
||||
def init_ui(self):
|
||||
"""Initialisiert die UI nach Styleguide"""
|
||||
self.setStyleSheet("""
|
||||
QWidget {
|
||||
background-color: #F8FAFC;
|
||||
}
|
||||
""")
|
||||
self.setObjectName("accounts_overview") # For QSS targeting
|
||||
|
||||
# Hauptlayout
|
||||
main_layout = QHBoxLayout(self)
|
||||
@ -173,7 +142,7 @@ class AccountsOverviewView(QWidget):
|
||||
|
||||
# Content Area
|
||||
content_widget = QWidget()
|
||||
content_widget.setStyleSheet("background-color: #F8FAFC;")
|
||||
content_widget.setObjectName("accounts_content") # For QSS targeting
|
||||
content_layout = QVBoxLayout(content_widget)
|
||||
content_layout.setContentsMargins(40, 30, 40, 30)
|
||||
content_layout.setSpacing(20)
|
||||
@ -185,10 +154,7 @@ class AccountsOverviewView(QWidget):
|
||||
title_font = QFont("Poppins", 24)
|
||||
title_font.setBold(True)
|
||||
self.title.setFont(title_font)
|
||||
self.title.setStyleSheet("""
|
||||
color: #1A365D;
|
||||
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
""")
|
||||
self.title.setObjectName("section_title") # For QSS targeting
|
||||
header_layout.addWidget(self.title)
|
||||
|
||||
header_layout.addStretch()
|
||||
@ -198,34 +164,11 @@ class AccountsOverviewView(QWidget):
|
||||
# Scroll Area für Accounts
|
||||
self.scroll = QScrollArea()
|
||||
self.scroll.setWidgetResizable(True)
|
||||
self.scroll.setStyleSheet("""
|
||||
QScrollArea {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
QScrollBar:vertical {
|
||||
background-color: #F1F5F9;
|
||||
width: 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
QScrollBar::handle:vertical {
|
||||
background-color: #CBD5E0;
|
||||
min-height: 20px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
QScrollBar::handle:vertical:hover {
|
||||
background-color: #A0AEC0;
|
||||
}
|
||||
QScrollBar::add-line:vertical,
|
||||
QScrollBar::sub-line:vertical {
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
""")
|
||||
# No inline styles - handled by QSS
|
||||
|
||||
# Grid Container
|
||||
self.container = QWidget()
|
||||
self.container.setStyleSheet("background-color: transparent;")
|
||||
self.container.setObjectName("grid_container") # For QSS targeting
|
||||
self.grid_layout = QGridLayout(self.container)
|
||||
self.grid_layout.setSpacing(24) # Styleguide Grid-Gap
|
||||
self.grid_layout.setContentsMargins(0, 0, 0, 0)
|
||||
@ -300,11 +243,7 @@ class AccountsOverviewView(QWidget):
|
||||
header_font = QFont("Poppins", 18)
|
||||
header_font.setWeight(QFont.DemiBold)
|
||||
header.setFont(header_font)
|
||||
header.setStyleSheet("""
|
||||
color: #1A365D;
|
||||
padding: 8px 0;
|
||||
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
""")
|
||||
header.setObjectName("platform_header") # For QSS targeting
|
||||
self.grid_layout.addWidget(header, row, 0, 1, 3)
|
||||
row += 1
|
||||
|
||||
@ -364,26 +303,8 @@ class AccountsOverviewView(QWidget):
|
||||
cancel_button = msg_box.addButton("Abbrechen", QMessageBox.NoRole)
|
||||
msg_box.setDefaultButton(cancel_button) # Abbrechen als Standard
|
||||
|
||||
# Explizites Styling für den Löschen-Button
|
||||
delete_button.setStyleSheet("""
|
||||
QPushButton {
|
||||
background-color: #F44336;
|
||||
color: #FFFFFF;
|
||||
border: 1px solid #D32F2F;
|
||||
border-radius: 4px;
|
||||
padding: 6px 20px;
|
||||
min-width: 80px;
|
||||
min-height: 26px;
|
||||
font-weight: 500;
|
||||
}
|
||||
QPushButton:hover {
|
||||
background-color: #D32F2F;
|
||||
border-color: #B71C1C;
|
||||
}
|
||||
QPushButton:pressed {
|
||||
background-color: #B71C1C;
|
||||
}
|
||||
""")
|
||||
# Set object name for QSS targeting
|
||||
delete_button.setObjectName("delete_confirm_button")
|
||||
|
||||
msg_box.exec_()
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren