Добавлен новый интерфейс с навигационной панелью и страницами для управления моделями, настройками и генерацией изображений. Реализованы стили для новых компонентов и добавлены функции для загрузки шрифтов и иконок. Обновлен основной класс окна для поддержки новых страниц.
This commit is contained in:
1 parent
df447a1ecf
commit
ac32c55ab9
25 files changed
+1496
-476
No files matched your search
@@ -0,0 +1,170 @@
|
||||
/* Основные стили */
|
||||
QMainWindow {
|
||||
background: #1C1C1E;
|
||||
}
|
||||
|
||||
/* Навигационная панель */
|
||||
NavigationPanel {
|
||||
background-color: #2C2C2E;
|
||||
border-right: 1px solid #38383A;
|
||||
min-width: 250px;
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
NavigationButton {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 8px 16px;
|
||||
text-align: left;
|
||||
font-size: 14px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
NavigationButton:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
NavigationButton:checked {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Страницы */
|
||||
BasePage {
|
||||
background-color: #1C1C1E;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
/* Заголовки */
|
||||
QLabel[heading="true"] {
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* Поля ввода */
|
||||
QLineEdit, QTextEdit {
|
||||
background-color: #2C2C2E;
|
||||
border: 1px solid #38383A;
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
color: white;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
QLineEdit:focus, QTextEdit:focus {
|
||||
border: 2px solid #007AFF;
|
||||
background-color: #1C1C1E;
|
||||
}
|
||||
|
||||
/* Кнопки */
|
||||
QPushButton {
|
||||
background-color: #007AFF;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 8px 16px;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
min-width: 100px;
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
QPushButton:hover {
|
||||
background-color: #5856D6;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
QPushButton:pressed {
|
||||
background-color: #007AFF;
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
QPushButton:disabled {
|
||||
background-color: #38383A;
|
||||
color: #EBEBF5;
|
||||
}
|
||||
|
||||
/* Выпадающие списки */
|
||||
QComboBox {
|
||||
background-color: #2C2C2E;
|
||||
color: white;
|
||||
border: 1px solid #38383A;
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
QComboBox::drop-down {
|
||||
border: none;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
QComboBox::down-arrow {
|
||||
image: url(resources/icons/chevron-down.svg);
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
/* Полосы прокрутки */
|
||||
QScrollBar:vertical {
|
||||
background: #1C1C1E;
|
||||
width: 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
QScrollBar::handle:vertical {
|
||||
background: #38383A;
|
||||
border-radius: 4px;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
QScrollBar::add-line:vertical,
|
||||
QScrollBar::sub-line:vertical {
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* Секции настроек */
|
||||
SettingsSection {
|
||||
background-color: #2C2C2E;
|
||||
border: 1px solid #38383A;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* Списки */
|
||||
QListWidget {
|
||||
background-color: #2C2C2E;
|
||||
border: 1px solid #38383A;
|
||||
border-radius: 8px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
QListWidget::item {
|
||||
background-color: transparent;
|
||||
border-radius: 4px;
|
||||
margin: 2px 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
QListWidget::item:selected {
|
||||
background-color: #007AFF;
|
||||
}
|
||||
|
||||
/* Прогресс бар */
|
||||
QProgressBar {
|
||||
border: 1px solid #38383A;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
background-color: #2C2C2E;
|
||||
}
|
||||
|
||||
QProgressBar::chunk {
|
||||
background-color: #007AFF;
|
||||
border-radius: 3px;
|
||||
}
|
||||
Reference in new issue
Block a user