Оптимизмрован код, исправлены параметры отображения факторов экспримента

This commit is contained in:
2026-05-26 22:50:16 +05:00
parent 63b5f0a49f
commit 1ddfe20a8d
3 changed files with 75 additions and 100 deletions
+12 -6
View File
@@ -12,8 +12,8 @@ class Colors:
"""Цветовая палитра приложения"""
# Основные цвета (Primary)
PRIMARY = "#3498db" # Синий - основной акцент
PRIMARY_DARK = "#2980b9" # Тёмно-синий (наведение)
PRIMARY = "#999999" # Синий - основной акцент
PRIMARY_DARK = "#777777" # Тёмно-синий (наведение)
PRIMARY_LIGHT = "#5dade2" # Светло-синий
PRIMARY_BG = "#ebf5fb" # Фоновый для primary элементов
@@ -216,10 +216,10 @@ class ButtonStyles:
{ButtonStyles._base_style()}
}}
QPushButton:hover {{
background-color: {Colors.PRIMARY_DARK};
background-color: {Colors.PRIMARY_LIGHT};
}}
QPushButton:pressed {{
background-color: {Colors.PRIMARY_LIGHT};
background-color: {Colors.PRIMARY_DARK};
}}
QPushButton:disabled {{
background-color: {Colors.GRAY_400};
@@ -326,7 +326,14 @@ class InputStyles:
@staticmethod
def default():
return f"""
QLineEdit, QDoubleSpinBox, QSpinBox, QComboBox {{
QComboBox {{
border: 1px solid {Colors.BORDER_DEFAULT};
border-radius: {Spacing.BORDER_RADIUS_SM}px;
padding: 1px;
background-color: {Colors.WHITE};
min-height: {Spacing.INPUT_HEIGHT - 16}px;
}}
QLineEdit, QDoubleSpinBox, QSpinBox {{
border: 1px solid {Colors.BORDER_DEFAULT};
border-radius: {Spacing.BORDER_RADIUS_SM}px;
padding: {Spacing.SM}px;
@@ -342,7 +349,6 @@ class InputStyles:
color: {Colors.GRAY_600};
}}
"""
@staticmethod
def error():
return f"""