Files
Dispatch/Dispatch_V0.1.1/gui/styles/profile_dossier.py
2026-04-29 08:18:54 +04:00

200 lines
6.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
# gui/styles/profile_dossier.py
"""Стили карточки досье сотрудника (Profile Dossier)."""
PROFILE_DOSSIER: dict[str, str] = {
# ── Контейнер страницы (самый глубокий фон — как TICKET_SHELL_ROOT) ──
"DOSSIER_SPREAD_DARK": """
QWidget {
background-color: #232323;
border: none;
border-radius: 0px;
}
""",
"DOSSIER_SPREAD_LIGHT": """
QWidget {
background-color: #F4F5F7;
border: none;
border-radius: 0px;
}
""",
# ── Колонка (средний слой — как TICKET_BOARD_COLUMN_BODY) ────
"DOSSIER_COLUMN_DARK": """
QWidget {
background-color: #2B2B2B;
}
""",
"DOSSIER_COLUMN_LIGHT": """
QWidget {
background-color: #F4F5F7;
}
""",
# ── Блок секции данных (верхний слой — как TASK_CARD) ────────
"DOSSIER_DATA_BLOCK_DARK": """
QWidget {
background-color: #3C3C3C;
border: 1px solid #5A5A5A;
}
""",
"DOSSIER_DATA_BLOCK_LIGHT": """
QWidget {
background-color: #FFFFFF;
border: 1px solid #DFE1E6;
}
""",
# ── Вертикальный разделитель ─────────────────────────────────
"DOSSIER_DIVIDER_DARK": """
QWidget {
background-color: #444444;
border: none;
}
""",
"DOSSIER_DIVIDER_LIGHT": """
QWidget {
background-color: #DFE1E6;
border: none;
}
""",
# ── Внутренний контейнер (сброс наследования от родителя) ───────
"DOSSIER_INNER_DARK": """
QWidget {
background: transparent;
border: none;
}
""",
"DOSSIER_INNER_LIGHT": """
QWidget {
background: transparent;
border: none;
}
""",
# ── Текст заголовка секции ───────────────────────────────────
"DOSSIER_TITLE_HEADER_DARK": """
QLabel {
color: #7CB9FF;
font-size: 14px;
font-weight: 600;
padding: 4px 10px;
background: transparent;
border: none;
qproperty-alignment: 'AlignVCenter | AlignHorizontalCenter';
}
""",
"DOSSIER_TITLE_HEADER_LIGHT": """
QLabel {
color: #0C66E4;
font-size: 14px;
font-weight: 600;
padding: 4px 10px;
background: transparent;
border: none;
qproperty-alignment: 'AlignLeft | AlignVCenter';
}
""",
"DOSSIER_SECTION_TITLE_DARK": """
QLabel {
color: #7CB9FF;
font-size: 40px;
font-weight: 600;
padding: 4px 10px;
background: transparent;
border: none;
qproperty-alignment: 'AlignVCenter | AlignHorizontalCenter';
}
""",
"DOSSIER_SECTION_TITLE_LIGHT": """
QLabel {
color: #0C66E4;
font-size: 14px;
font-weight: 600;
padding: 4px 10px;
background: transparent;
border: none;
qproperty-alignment: 'AlignLeft | AlignVCenter';
}
""",
# ── Контейнер фотографии ─────────────────────────────────────
"DOSSIER_PHOTO_DARK": """
QWidget {
background-color: #363636;
border: 1px solid #4a4a4a;
}
""",
"DOSSIER_PHOTO_LIGHT": """
QWidget {
background-color: #F4F5F7;
border: 1px solid #DFE1E6;
}
""",
# ── Подпись поля ─────────────────────────────────────────────
"DOSSIER_FIELD_LABEL_DARK": """
QLabel {
color: #8B95A5;
font-size: 13px;
padding: 2px 6px;
background: transparent;
border: none;
qproperty-alignment: 'AlignLeft | AlignTop';
}
""",
"DOSSIER_FIELD_LABEL_LIGHT": """
QLabel {
color: #6B778C;
font-size: 13px;
padding: 2px 6px;
background: transparent;
border: none;
qproperty-alignment: 'AlignLeft | AlignTop';
}
""",
# ── Значение поля ────────────────────────────────────────────
"DOSSIER_FIELD_VALUE_DARK": """
QLabel {
color: #DCDCDC;
font-size: 14px;
padding: 2px 18px;
background: transparent;
border: none;
qproperty-alignment: 'AlignLeft';
}
""",
"DOSSIER_FIELD_VALUE_LIGHT": """
QLabel {
color: #172B4D;
font-size: 14px;
padding: 2px 18px;
background: transparent;
border: none;
qproperty-alignment: 'AlignLeft';
}
""",
# ── Текст «Фото отсутствует» ────────────────────────────────
"DOSSIER_NO_PHOTO_DARK": """
QLabel {
color: #2B2B2B;
font-size: 13px;
background: transparent;
border: none;
}
""",
"DOSSIER_NO_PHOTO_LIGHT": """
QLabel {
color: #F7F8F9;
font-size: 13px;
background: transparent;
border: none;
}
""",
}