351 lines
6.2 KiB
Plaintext
351 lines
6.2 KiB
Plaintext
/*
|
|
* 다크 테마 스타일시트
|
|
* 전동차 업무 인수인계 시스템
|
|
*/
|
|
|
|
/* ========================================
|
|
기본 위젯
|
|
======================================== */
|
|
|
|
QWidget {
|
|
background-color: #0f172a;
|
|
color: #f8fafc;
|
|
font-family: 'GmarketSans', sans-serif;
|
|
}
|
|
|
|
QMainWindow {
|
|
background-color: #0f172a;
|
|
}
|
|
|
|
/* ========================================
|
|
라벨
|
|
======================================== */
|
|
|
|
QLabel {
|
|
color: #f8fafc;
|
|
}
|
|
|
|
QLabel[class="secondary"] {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
QLabel[class="title"] {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* ========================================
|
|
버튼
|
|
======================================== */
|
|
|
|
QPushButton {
|
|
background-color: #334155;
|
|
color: #f8fafc;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 10px 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #475569;
|
|
}
|
|
|
|
QPushButton:pressed {
|
|
background-color: #1e293b;
|
|
}
|
|
|
|
QPushButton:disabled {
|
|
background-color: #1e293b;
|
|
color: #64748b;
|
|
}
|
|
|
|
QPushButton[class="primary"] {
|
|
background-color: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
QPushButton[class="primary"]:hover {
|
|
background-color: #2563eb;
|
|
}
|
|
|
|
QPushButton[class="danger"] {
|
|
background-color: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
QPushButton[class="danger"]:hover {
|
|
background-color: #dc2626;
|
|
}
|
|
|
|
/* ========================================
|
|
입력 필드
|
|
======================================== */
|
|
|
|
QLineEdit {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border: 2px solid #334155;
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
selection-background-color: #3b82f6;
|
|
}
|
|
|
|
QLineEdit:focus {
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
QLineEdit:disabled {
|
|
background-color: #334155;
|
|
color: #64748b;
|
|
}
|
|
|
|
QTextEdit {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border: 2px solid #334155;
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
selection-background-color: #3b82f6;
|
|
}
|
|
|
|
QTextEdit:focus {
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
/* ========================================
|
|
콤보박스
|
|
======================================== */
|
|
|
|
QComboBox {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border: 2px solid #334155;
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
QComboBox:hover {
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
QComboBox::drop-down {
|
|
border: none;
|
|
width: 30px;
|
|
}
|
|
|
|
QComboBox::down-arrow {
|
|
image: none;
|
|
border-left: 5px solid transparent;
|
|
border-right: 5px solid transparent;
|
|
border-top: 6px solid #f8fafc;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
QComboBox QAbstractItemView {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border: 1px solid #334155;
|
|
border-radius: 8px;
|
|
selection-background-color: #3b82f6;
|
|
}
|
|
|
|
/* ========================================
|
|
테이블
|
|
======================================== */
|
|
|
|
QTableWidget {
|
|
background-color: #0f172a;
|
|
color: #f8fafc;
|
|
border: 1px solid #334155;
|
|
border-radius: 8px;
|
|
gridline-color: transparent;
|
|
}
|
|
|
|
QTableWidget::item {
|
|
padding: 8px;
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
QTableWidget::item:selected {
|
|
background-color: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
QTableWidget::item:hover {
|
|
background-color: #1e3a5f;
|
|
}
|
|
|
|
QHeaderView::section {
|
|
background-color: #334155;
|
|
color: #f8fafc;
|
|
padding: 12px 8px;
|
|
border: none;
|
|
border-bottom: 2px solid #334155;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* ========================================
|
|
스크롤바
|
|
======================================== */
|
|
|
|
QScrollBar:vertical {
|
|
background-color: #1e293b;
|
|
width: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
QScrollBar::handle:vertical {
|
|
background-color: #475569;
|
|
border-radius: 5px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
QScrollBar::handle:vertical:hover {
|
|
background-color: #3b82f6;
|
|
}
|
|
|
|
QScrollBar::add-line:vertical,
|
|
QScrollBar::sub-line:vertical {
|
|
height: 0;
|
|
}
|
|
|
|
QScrollBar:horizontal {
|
|
background-color: #1e293b;
|
|
height: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal {
|
|
background-color: #475569;
|
|
border-radius: 5px;
|
|
min-width: 20px;
|
|
}
|
|
|
|
QScrollBar::handle:horizontal:hover {
|
|
background-color: #3b82f6;
|
|
}
|
|
|
|
/* ========================================
|
|
탭 위젯
|
|
======================================== */
|
|
|
|
QTabWidget::pane {
|
|
background-color: #1e293b;
|
|
border: 1px solid #334155;
|
|
border-radius: 12px;
|
|
border-top-left-radius: 0;
|
|
}
|
|
|
|
QTabBar::tab {
|
|
background-color: #1e293b;
|
|
color: #94a3b8;
|
|
border: 1px solid #334155;
|
|
border-bottom: none;
|
|
padding: 12px 24px;
|
|
margin-right: 4px;
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
}
|
|
|
|
QTabBar::tab:selected {
|
|
background-color: #3b82f6;
|
|
color: white;
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
QTabBar::tab:hover:!selected {
|
|
background-color: #334155;
|
|
}
|
|
|
|
/* ========================================
|
|
메뉴
|
|
======================================== */
|
|
|
|
QMenuBar {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
QMenuBar::item {
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
QMenuBar::item:selected {
|
|
background-color: #334155;
|
|
}
|
|
|
|
QMenu {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border: 1px solid #334155;
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
}
|
|
|
|
QMenu::item {
|
|
padding: 8px 24px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
QMenu::item:selected {
|
|
background-color: #334155;
|
|
}
|
|
|
|
QMenu::separator {
|
|
height: 1px;
|
|
background-color: #334155;
|
|
margin: 4px 8px;
|
|
}
|
|
|
|
/* ========================================
|
|
체크박스
|
|
======================================== */
|
|
|
|
QCheckBox {
|
|
color: #f8fafc;
|
|
spacing: 8px;
|
|
}
|
|
|
|
QCheckBox::indicator {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
QCheckBox::indicator:unchecked {
|
|
border: 2px solid #64748b;
|
|
background-color: transparent;
|
|
}
|
|
|
|
QCheckBox::indicator:checked {
|
|
border: 2px solid #22c55e;
|
|
background-color: #22c55e;
|
|
}
|
|
|
|
/* ========================================
|
|
프레임
|
|
======================================== */
|
|
|
|
QFrame[frameShape="4"],
|
|
QFrame[frameShape="5"] {
|
|
color: #334155;
|
|
}
|
|
|
|
/* ========================================
|
|
툴팁
|
|
======================================== */
|
|
|
|
QToolTip {
|
|
background-color: #1e293b;
|
|
color: #f8fafc;
|
|
border: 1px solid #334155;
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
}
|
|
|
|
|