Обновлен интерфейс окон: изменены стили и размеры элементов, улучшена читаемость текста, добавлены иконки для кнопок, оптимизированы отступы и размеры компонентов.
This commit is contained in:
1 parent
657d8b5ec1
commit
828f3c6c12
4 files changed
+194
-63
No files matched your search
@@ -13,8 +13,65 @@ class ModelManager(QWidget):
|
||||
self.load_models()
|
||||
|
||||
def setup_ui(self):
|
||||
self.setStyleSheet("""
|
||||
QWidget {
|
||||
background-color: transparent;
|
||||
}
|
||||
QLabel {
|
||||
color: #d4d4d4;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
margin-right: 8px;
|
||||
}
|
||||
QComboBox {
|
||||
background-color: #252526;
|
||||
color: #d4d4d4;
|
||||
border: 1px solid #3e3e3e;
|
||||
border-radius: 6px;
|
||||
padding: 6px 12px;
|
||||
min-width: 200px;
|
||||
font-size: 13px;
|
||||
}
|
||||
QComboBox:hover {
|
||||
border-color: #565656;
|
||||
}
|
||||
QComboBox:focus {
|
||||
border-color: #007acc;
|
||||
}
|
||||
QComboBox::drop-down {
|
||||
border: none;
|
||||
width: 20px;
|
||||
}
|
||||
QComboBox::down-arrow {
|
||||
image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMTFMNCBTTDEyIDUiIHN0cm9rZT0iI2Q0ZDRkNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+);
|
||||
}
|
||||
QComboBox QAbstractItemView {
|
||||
background-color: #252526;
|
||||
color: #d4d4d4;
|
||||
border: 1px solid #3e3e3e;
|
||||
selection-background-color: #094771;
|
||||
outline: none;
|
||||
}
|
||||
QPushButton {
|
||||
background-color: #2d2d2d;
|
||||
color: #d4d4d4;
|
||||
border: 1px solid #3e3e3e;
|
||||
border-radius: 6px;
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
QPushButton:hover {
|
||||
background-color: #3e3e3e;
|
||||
border-color: #565656;
|
||||
}
|
||||
QPushButton:pressed {
|
||||
background-color: #565656;
|
||||
}
|
||||
""")
|
||||
|
||||
layout = QHBoxLayout(self)
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.setSpacing(8)
|
||||
|
||||
# Метка
|
||||
label = QLabel("Модель:")
|
||||
@@ -22,11 +79,13 @@ class ModelManager(QWidget):
|
||||
|
||||
# Выпадающий список моделей
|
||||
self.model_combo = QComboBox()
|
||||
self.model_combo.setFixedHeight(32)
|
||||
self.model_combo.currentTextChanged.connect(self.on_model_changed)
|
||||
layout.addWidget(self.model_combo)
|
||||
|
||||
# Кнопка обновления
|
||||
refresh_button = QPushButton("🔄")
|
||||
refresh_button.setFixedSize(32, 32)
|
||||
refresh_button.setToolTip("Обновить список моделей")
|
||||
refresh_button.clicked.connect(self.load_models)
|
||||
layout.addWidget(refresh_button)
|
||||
|
||||
Reference in new issue
Block a user