251 lines
6.2 KiB
Python
251 lines
6.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# gui/styles/login_dialog.py
|
|
|
|
"""Стили для диалога авторизации."""
|
|
|
|
LOGIN_DIALOG = {
|
|
|
|
"LOGIN_DIALOG_DARK": """
|
|
QDialog {
|
|
background-color: #1e1e1e;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_DIALOG_LIGHT": """
|
|
QDialog {
|
|
background-color: #FFFFFF;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_TITLE_DARK": """
|
|
QLabel {
|
|
color: #f2f2f2;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
background-color: transparent;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_TITLE_LIGHT": """
|
|
QLabel {
|
|
color: #172B4D;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
background-color: transparent;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_FIELD_LABEL_DARK": """
|
|
QLabel {
|
|
color: #b0b0b0;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
background-color: transparent;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_FIELD_LABEL_LIGHT": """
|
|
QLabel {
|
|
color: #5E6C84;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
background-color: transparent;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_INPUT_DARK": """
|
|
QFrame {
|
|
background-color: #2e2e2e;
|
|
border: 1px solid #5a5a5a;
|
|
border-radius: 0px;
|
|
}
|
|
QLineEdit, QTextEdit {
|
|
background-color: #2e2e2e;
|
|
color: #f2f2f2;
|
|
border: none;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
}
|
|
QLineEdit:focus, QTextEdit:focus {
|
|
border: 1px solid #3b82f6;
|
|
}
|
|
QLineEdit::placeholder {
|
|
color: #7a7a7a;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_INPUT_LIGHT": """
|
|
QFrame {
|
|
background-color: #FFFFFF;
|
|
border: 1px solid #DFE1E6;
|
|
border-radius: 0px;
|
|
}
|
|
QLineEdit, QTextEdit {
|
|
background-color: #FFFFFF;
|
|
color: #172B4D;
|
|
border: none;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
}
|
|
QLineEdit:focus, QTextEdit:focus {
|
|
border: 1px solid #0C66E4;
|
|
}
|
|
QLineEdit::placeholder {
|
|
color: #5E6C84;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_INPUT_ERROR_DARK": """
|
|
QFrame {
|
|
background-color: #2e2e2e;
|
|
border: 2px solid #e74c3c;
|
|
border-radius: 0px;
|
|
}
|
|
QLineEdit, QTextEdit {
|
|
background-color: #2e2e2e;
|
|
color: #f2f2f2;
|
|
border: none;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
}
|
|
QLineEdit:focus, QTextEdit:focus {
|
|
border: 1px solid #e74c3c;
|
|
}
|
|
QLineEdit::placeholder {
|
|
color: #7a7a7a;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_INPUT_ERROR_LIGHT": """
|
|
QFrame {
|
|
background-color: #FFFFFF;
|
|
border: 2px solid #e74c3c;
|
|
border-radius: 0px;
|
|
}
|
|
QLineEdit, QTextEdit {
|
|
background-color: #FFFFFF;
|
|
color: #172B4D;
|
|
border: none;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
}
|
|
QLineEdit:focus, QTextEdit:focus {
|
|
border: 1px solid #e74c3c;
|
|
}
|
|
QLineEdit::placeholder {
|
|
color: #5E6C84;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_ERROR_LABEL_DARK": """
|
|
QLabel {
|
|
color: #e74c3c;
|
|
font-size: 12px;
|
|
background-color: transparent;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_ERROR_LABEL_LIGHT": """
|
|
QLabel {
|
|
color: #e74c3c;
|
|
font-size: 12px;
|
|
background-color: transparent;
|
|
}
|
|
""",
|
|
|
|
"LOGIN_NAV_BUTTON_DARK": """
|
|
QPushButton {
|
|
background-color: #3c3c3c;
|
|
color: white;
|
|
border: none;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
border-radius: 0px;
|
|
}
|
|
QPushButton:hover { background-color: #4a4a4a; }
|
|
QPushButton:pressed { background-color: #5a5a5a; }
|
|
""",
|
|
|
|
"LOGIN_NAV_BUTTON_DARK_ACTIVE": """
|
|
QPushButton {
|
|
background-color: #5a5a5a;
|
|
color: white;
|
|
border: none;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
border-radius: 0px;
|
|
}
|
|
QPushButton:hover { background-color: #6a6a6a; }
|
|
QPushButton:pressed { background-color: #7a7a7a; }
|
|
""",
|
|
|
|
"LOGIN_NAV_BUTTON_LIGHT": """
|
|
QPushButton {
|
|
background-color: #FFFFFF;
|
|
color: #172B4D;
|
|
border: 1px solid #DFE1E6;
|
|
font-size: 16px;
|
|
border-radius: 0px;
|
|
text-align: center;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #EBECF0;
|
|
border-color: #DFE1E6;
|
|
}
|
|
QPushButton:pressed { background-color: #DFE1E6; }
|
|
""",
|
|
|
|
"LOGIN_NAV_BUTTON_LIGHT_ACTIVE": """
|
|
QPushButton {
|
|
background-color: #FFFFFF;
|
|
color: #0C66E4;
|
|
border: 1px solid #85B8FF;
|
|
font-size: 16px;
|
|
border-radius: 0px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
QPushButton:hover { background-color: #EBECF0; }
|
|
QPushButton:pressed { background-color: #DFE1E6; }
|
|
""",
|
|
|
|
"LOGIN_CANCEL_BUTTON": """
|
|
QPushButton {
|
|
background-color: transparent;
|
|
color: #6B84A5;
|
|
border: 1px solid #D7DEE8;
|
|
border-radius: 0px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
padding: 8px 16px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: rgba(12, 102, 228, 0.06);
|
|
border-color: #A8B8CF;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: rgba(12, 102, 228, 0.10);
|
|
}
|
|
""",
|
|
|
|
"LOGIN_SUBMIT_BUTTON": """
|
|
QPushButton {
|
|
background-color: #0C66E4;
|
|
color: #FFFFFF;
|
|
border: 1px solid #0C66E4;
|
|
border-radius: 0px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
padding: 8px 16px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #0055CC;
|
|
border-color: #0055CC;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #09326C;
|
|
border-color: #09326C;
|
|
}
|
|
""",
|
|
}
|