-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
430 lines (373 loc) · 12.6 KB
/
style.css
File metadata and controls
430 lines (373 loc) · 12.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
/* ===== AllDataDialog (전체 조회) ===== */
QDialog#AllDataDialog {
background-color: #f8f9fa;
color: #212529;
/* 기존 resize(1000,700) 대체: 최소 크기 */
min-width: 1000px;
min-height: 500px;
}
QDialog#AllDataDialog QLabel {
background-color: transparent;
}
QDialog#AllDataDialog QLineEdit,
QDialog#AllDataDialog QDateEdit,
QDialog#AllDataDialog QComboBox {
background-color: #ffffff;
border: 1px solid #ced4da;
border-radius: 4px;
padding: 5px;
}
QDialog#AllDataDialog QPushButton {
background-color: #e9ecef;
border: 1px solid #ced4da;
padding: 5px 10px;
border-radius: 4px;
}
QDialog#AllDataDialog QPushButton:hover { background-color: #dee2e6; }
QDialog#AllDataDialog QPushButton:pressed { background-color: #ced4da; }
QDialog#AllDataDialog QTableWidget {
background-color: #ffffff;
/* 아래 줄무늬는 setAlternatingRowColors(True) 필요 */
alternate-background-color: #f1f3f5;
gridline-color: #dee2e6;
border: 1px solid #ced4da;
}
QDialog#AllDataDialog QHeaderView::section {
background-color: #e9ecef;
color: #212529;
font-weight: bold;
padding: 6px;
border: none;
border-bottom: 1px solid #dee2e6;
}
/* 선택됐을 때는 항상 파란색(활성/비활성/hover 모두 동일) */
QDialog#AllDataDialog QTableWidget::item:selected,
QDialog#AllDataDialog QTableWidget::item:selected:active,
QDialog#AllDataDialog QTableWidget::item:selected:!active,
QDialog#AllDataDialog QAbstractItemView::item:selected:active,
QDialog#AllDataDialog QAbstractItemView::item:selected:!active {
background-color: #0d6efd;
color: #ffffff;
}
/* 비선택 상태에서 hover 효과 완전 제거 */
QDialog#AllDataDialog QTableWidget::item:!selected:hover,
QDialog#AllDataDialog QAbstractItemView::item:!selected:hover {
background-color: transparent;
}
/* ===== Image Viewer Dialog ===== */
QDialog#ImageViewerDialog {
/* 필요 시 최소 크기 지정 가능 */
/* min-width: 640px; min-height: 480px; */
background-color: #f8f9fa;
color: #212529;
}
QDialog#ImageViewerDialog QScrollArea {
border: 1px solid #ced4da;
background: #000; /* 큰 이미지 볼 때 배경을 어둡게 */
}
QDialog#ImageViewerDialog QLabel#ImageLabel {
/* 코드에서 setAlignment를 주석 처리했다면 이걸로 대체 */
qproperty-alignment: AlignCenter;
background: transparent;
}
QDialog#ImageViewerDialog QPushButton {
/* 코드의 setFixedWidth(100) 대체 */
min-width: 100px;
max-width: 100px;
padding: 5px 10px;
border: 1px solid #ced4da;
border-radius: 4px;
background: #e9ecef;
}
QDialog#ImageViewerDialog QPushButton:hover { background-color: #dee2e6; }
QDialog#ImageViewerDialog QPushButton:pressed { background-color: #ced4da; }
QDialog#ImageViewerDialog QLabel#ZoomLevelLabel {
margin-left: 8px; /* 버튼과 간격 */
}
/* ===== AllDataDialog: 이미지 경로 컬럼 색상(파일 존재 여부) ===== */
QDialog#AllDataDialog QLabel#ImagePathLabel[fileExists="true"] { color: #1d6f42; } /* 존재: 초록 */
QDialog#AllDataDialog QLabel#ImagePathLabel[fileExists="false"] { color: #d13438; } /* 없음: 빨강 */
/* (선택) 테이블 셀 라벨 기본 모양 */
QDialog#AllDataDialog QTableWidget QLabel#ImagePathLabel {
background: transparent;
/* 가운데 정렬은 코드에서 setAlignment가 더 확실함 */
}
/* ===== Center name label (blink) — BEFORE와 동일 ===== */
QLabel#center_name {
font-size: 42px;
font-weight: bold;
background-color: #DBE2EF; /* 이전값으로 복구 */
color: #888; /* 기본 텍스트 색 */
}
/* 깜빡임 상태: 글자색을 배경과 동일하게 → 하이라이트 효과 */
QLabel#center_name[blinking=true] {
color: #DBE2EF;
}
/* ===== Start/Stop main button — BEFORE와 동일 ===== */
QPushButton#pushButton {
font-size: 18px;
font-family: 'Segoe UI','맑은 고딕','Noto Sans KR',sans-serif;
color: #ffffff;
background-color: #3F72AF; /* 시작(대기) 파랑 */
border: none;
border-radius: 6px;
padding: 12px 24px;
font-weight: bold;
}
QPushButton#pushButton:hover { background-color: #112D4E; }
QPushButton#pushButton:pressed { background-color: #a6cdec; }
/* 작업 중단 상태(실행 중) — BEFORE의 주황/적색 톤 */
QPushButton#pushButton[running=true] {
color: #ffffff;
background-color: #D04925;
border: none;
border-radius: 6px;
padding: 12px 24px;
font-weight: bold;
}
/* (선택) 호버 색 약간만 어둡게 */
QPushButton#pushButton[running=true]:hover { background-color: #bb3e1f; }
QPushButton#pushButton[running=true]:pressed { background: #e23a3a; }
/* ===== 통합 인디케이터 라벨 ===== */
QLabel[indicator=true] {
border-radius: 5px;
padding: 5px;
color: #ffffff;
}
/* 상태별 */
/*QLabel[indicator=true][status="ok"] { background-color: #4CAF50; } !* 초록 *!*/
/*QLabel[indicator=true][status="error"] { background-color: #F44336; } !* 빨강 *!*/
QLabel[indicator=true] {
background: transparent;
border: none;
padding: 0; /* 상하좌우 여백 제거 */
}
/*QLabel[indicator=true]:hover { background-color: #E9ECEF; }*/
/* (선택) 경고 상태도 쓰고 싶다면 */
QLabel[indicator=true][status="warn"] { background-color: #FFC107; color: #212529; }
QLabel#conn_log {
background-color: #222222;
color: #E0E0E0;
border: 1px solid #3E4249; /* 필요 없으면 none */
padding: 5px;
font-family: Consolas, "Courier New", monospace;
font-size: 9pt;
}
/* ===== QMessageBox (전역 적용) ===== */
QMessageBox {
background-color: #ffffff;
}
QMessageBox QLabel {
color: #000000;
background-color: #ffffff;
}
QMessageBox QPushButton {
min-width: 80px;
padding: 5px;
background-color: #CCCCCC;
border: 1px solid #B5B5B5;
border-radius: 4px;
}
QMessageBox QPushButton:hover { background-color: #BDBDBD; }
QMessageBox QPushButton:pressed { background-color: #AFAFAF; }
/* 호환: 아이콘용 작은 버튼들 */
QPushButton#pushButton_2,
QPushButton#pushButton_3 {
background-color: transparent;
border: none;
padding: 0;
}
/* ‘작업 상세 정보’ 버튼 */
QPushButton#pushButton_4 {
border: 1px solid #000000;
color: #000000;
background-color: #CCCCCC;
}
/* 라벨들 */
QLabel#logo_1, QLabel#logo_3 { border: 2px solid #000000; }
QLabel#image_label { border: 2px solid #222; background-color: #000000; }
QLabel#image_title,
QLabel#image_title_2,
QLabel#image_title_3 { font-size: 16px; font-weight: bold; }
QLabel#image_title { color: #000000; }
QLabel#image_title_2,
QLabel#image_title_3 { color: #ffffff; }
QLabel#count_title,
QLabel#line_1 {
font-size: 34px;
color: #606880;
font-weight: bold;
background-color: #F0F0F0;
}
QLabel#count_label {
font-size: 48px;
color: #0c61c4;
font-weight: bold;
background-color: #F0F0F0;
}
QLabel#datetime_label { font-size: 22px; color: #ffffff; font-weight: bold; }
/* 메인윈도우 배경 색상 */
QMainWindow#MainWindow { background-color: #41444A; }
/* ImageViewerDialog: 스크롤영역 배경을 viewport에 적용 */
QDialog#ImageViewerDialog QScrollArea { border: 1px solid #ced4da; background-color: transparent; }
QDialog#ImageViewerDialog QWidget#qt_scrollarea_viewport { background-color: #000000; }
/* m1panel: 패널 배경/테두리 */
QFrame#m1panel {
background-color: #DBE2EF;
border: 2px solid #000000;
border-radius: 12px;
}
/* 패널 안 라벨은 배경 투명 (패널 배경이 보이도록) */
QFrame#m1panel QLabel {
background: transparent;
}
/* 타이틀/수량/센터명 텍스트 규칙(이전과 동일 톤) */
QLabel#count_title { font-size: 34px; color: #606880; font-weight: bold; }
QLabel#line_1 { background: transparent; } /* 구분선 라벨이면 투명 유지 */
/* 상품 인식 수량 라벨 */
QLabel#count_label {
font-size: 48px;
color: #0c61c4;
font-weight: bold;
padding: 2px 0 6px 0; /* 아래쪽에 여유 */
min-height: 64px; /* 66~72로 맞춰봐도 OK */
}
QLabel#center_name { font-size: 42px; color: #888; font-weight: bold; background: transparent; }
/* AllDataDialog 달력 팝업 크게/가독성 향상 */
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar {
font-size: 16px;
min-width: 380px;
min-height: 320px;
}
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QToolButton {
/* 상단 월/연도, 좌우 화살표 버튼 */
font-size: 16px;
padding: 6px 10px;
min-height: 28px;
}
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QAbstractItemView {
/* 날짜 그리드 */
font-size: 16px;
selection-background-color: #0d6efd;
selection-color: #ffffff;
}
QDialog#AllDataDialog QLineEdit,
QDialog#AllDataDialog QDateEdit,
QDialog#AllDataDialog QComboBox {
background-color: #ffffff;
border: 1px solid #ced4da;
border-radius: 4px;
padding: 5px;
}
/* ===== data_table: 다크 테마 확정(베이스 클래스 대상으로) ===== */
/* 1) 실제 페인팅되는 viewport 배경 */
QMainWindow#MainWindow QAbstractScrollArea#data_table::viewport {
background-color: #2C2F36;
}
/* 2) 셀/그리드/선택색 (QAbstractItemView 계열) */
QMainWindow#MainWindow QAbstractItemView#data_table {
color: #E0E0E0;
gridline-color: #3E4249;
selection-background-color: #0D6EFD;
selection-color: #FFFFFF;
font-size: 13px;
border: 1px solid #3E4249; /* 외곽 테두리 */
}
/* 3) 셀 배경 직접 지정 (기본/교차행) */
QMainWindow#MainWindow QAbstractItemView#data_table::item {
/*background-color: #2C2F36; !* 기본 행 *!*/
border-bottom: 1px solid #3E4249;
padding: 5px;
}
QMainWindow#MainWindow QAbstractItemView#data_table::item:alternate {
/*background-color: #34383F; !* 교차 행 *!*/
}
/* 4) 선택 상태 */
QMainWindow#MainWindow QAbstractItemView#data_table::item:selected {
background-color: #0D6EFD;
color: #FFFFFF;
}
/* 5) 헤더/코너 */
QMainWindow#MainWindow QTableView#data_table QHeaderView::section {
background-color: #393E46;
color: #F1F3F5;
font-weight: bold;
padding: 6px;
border: none;
border-bottom: 1px solid #4A4E57;
}
QMainWindow#MainWindow QTableCornerButton::section {
background-color: #393E46;
border: none;
}
/* ===== data_table: 헤더 섹션 경계(세로 라인) 추가 — 컬럼 그리드와 정렬 ===== */
QMainWindow#MainWindow QTableView#data_table QHeaderView::section {
background-color: #393E46;
color: #F1F3F5;
font-weight: bold;
padding: 6px;
border: none;
border-bottom: 1px solid #3E4249; /* 아래 컬럼 그리드와 동일 색상 */
border-right: 1px solid #6E747C; /* ← 헤더 섹션 사이 세로 라인 */
}
/* 헤더의 좌측 외곽도 라인 맞추고 싶으면 */
QMainWindow#MainWindow QTableView#data_table QHeaderView::section:first {
border-left: none;
}
QMainWindow#MainWindow QTableView#data_table QHeaderView::section:last {
border-right: none; /* 맨 오른쪽 격벽 제거 */
}
/* 좌상단 코너(행/열 헤더 만나는 부분)도 동일 라인 적용 */
QMainWindow#MainWindow QTableCornerButton::section {
background-color: #393E46;
border: none;
border-right: 1px solid #6E747C;
border-right: none;
border-bottom: 1px solid #4A4E57; /* 아래 라인은 기존과 동일하게 유지 */
}
/* ===== AllDataDialog 달력: 상단 네비게이션 바/요일 헤더 색 교체 ===== */
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QWidget#qt_calendar_navigationbar {
background-color: #e9ecef; /* 상단 바 배경 */
border-bottom: 1px solid #ced4da;
}
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QToolButton {
background: transparent;
color: #212529; /* 버튼/월-연도 텍스트 */
border: none;
padding: 4px 8px;
font-weight: 600;
}
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QToolButton:hover {
background-color: #dee2e6;
}
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QToolButton:pressed {
background-color: #ced4da;
}
/* 이전/다음 달 화살표 버튼 크기 살짝 키우기(선택) */
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QToolButton#qt_calendar_prevmonth,
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QToolButton#qt_calendar_nextmonth {
min-width: 28px;
min-height: 24px;
}
/* 요일 헤더(월,화,...) */
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QTableView QHeaderView::section {
background-color: #e9ecef;
color: #495057;
font-weight: 600;
padding: 6px;
border: none;
border-bottom: 1px solid #ced4da;
}
/* 날짜 그리드(이미 기본 설정 있으나 재확인) */
QDialog#AllDataDialog QCalendarWidget#AllDataCalendar QAbstractItemView {
selection-background-color: #0d6efd;
selection-color: #ffffff;
}
QPlainTextEdit#conn_log {
background-color: #2C2F36;
color: #E0E0E0;
border: 1px solid #3E4249;
padding: 8px;
font-family: Consolas, "Courier New", monospace;
font-size: 12pt;
}