Skip to content

Commit 4efc69c

Browse files
committed
Fix dark theme
1 parent 3aef130 commit 4efc69c

File tree

1 file changed

+53
-52
lines changed

1 file changed

+53
-52
lines changed

web_src/js/components/projects/ProjectWorkflow.vue

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,24 +1041,24 @@ onUnmounted(() => {
10411041
width: 100%;
10421042
height: calc(100vh - 200px);
10431043
min-height: 600px;
1044-
border: 1px solid #e1e4e8;
1044+
border: 1px solid var(--color-secondary);
10451045
border-radius: 8px;
10461046
overflow: hidden;
1047-
background: white;
1047+
background: var(--color-body);
10481048
}
10491049
10501050
.workflow-sidebar {
10511051
width: 350px;
10521052
flex-shrink: 0;
1053-
background: #f6f8fa;
1054-
border-right: 1px solid #e1e4e8;
1053+
background: var(--color-secondary-bg);
1054+
border-right: 1px solid var(--color-secondary);
10551055
display: flex;
10561056
flex-direction: column;
10571057
}
10581058
10591059
.workflow-main {
10601060
flex: 1;
1061-
background: white;
1061+
background: var(--color-body);
10621062
display: flex;
10631063
flex-direction: column;
10641064
min-height: 0;
@@ -1067,13 +1067,13 @@ onUnmounted(() => {
10671067
/* Sidebar */
10681068
.sidebar-header {
10691069
padding: 1rem 1.25rem;
1070-
border-bottom: 1px solid #e1e4e8;
1071-
background: #f6f8fa;
1070+
border-bottom: 1px solid var(--color-secondary);
1071+
background: var(--color-secondary-bg);
10721072
}
10731073
10741074
.sidebar-header h3 {
10751075
margin: 0;
1076-
color: #24292e;
1076+
color: var(--color-text);
10771077
font-size: 1.1rem;
10781078
font-weight: 600;
10791079
}
@@ -1100,12 +1100,12 @@ onUnmounted(() => {
11001100
}
11011101
11021102
.workflow-item:hover {
1103-
background: #f6f8fa;
1103+
background: var(--color-hover);
11041104
}
11051105
11061106
.workflow-item.active {
1107-
background: #f1f8ff;
1108-
border-left: 3px solid #0366d6;
1107+
background: var(--color-active);
1108+
border-left: 3px solid var(--color-primary);
11091109
}
11101110
11111111
.workflow-content {
@@ -1133,7 +1133,7 @@ onUnmounted(() => {
11331133
11341134
.workflow-title {
11351135
font-weight: 500;
1136-
color: #24292e;
1136+
color: var(--color-text);
11371137
font-size: 0.9rem;
11381138
line-height: 1.3;
11391139
overflow: hidden;
@@ -1143,7 +1143,7 @@ onUnmounted(() => {
11431143
11441144
.workflow-subtitle {
11451145
font-size: 0.75rem;
1146-
color: #6c757d;
1146+
color: var(--color-text-light-2);
11471147
line-height: 1.2;
11481148
overflow: hidden;
11491149
text-overflow: ellipsis;
@@ -1152,17 +1152,17 @@ onUnmounted(() => {
11521152
}
11531153
11541154
.status-indicator .status-active {
1155-
color: #28a745;
1155+
color: var(--color-green);
11561156
font-size: 0.75rem;
11571157
}
11581158
11591159
.status-indicator .status-inactive {
1160-
color: #d1d5da;
1160+
color: var(--color-text-light-3);
11611161
font-size: 0.75rem;
11621162
}
11631163
11641164
.status-indicator .status-disabled {
1165-
color: #dc3545;
1165+
color: var(--color-red);
11661166
font-size: 0.75rem;
11671167
}
11681168
@@ -1182,17 +1182,17 @@ onUnmounted(() => {
11821182
11831183
.placeholder-icon {
11841184
margin-bottom: 1.5rem;
1185-
color: #d1d5da;
1185+
color: var(--color-text-light-3);
11861186
}
11871187
11881188
.placeholder-content h3 {
1189-
color: #24292e;
1189+
color: var(--color-text);
11901190
margin-bottom: 0.5rem;
11911191
font-weight: 600;
11921192
}
11931193
11941194
.placeholder-content p {
1195-
color: #586069;
1195+
color: var(--color-text-light-2);
11961196
margin-bottom: 2rem;
11971197
line-height: 1.5;
11981198
}
@@ -1210,13 +1210,13 @@ onUnmounted(() => {
12101210
justify-content: space-between;
12111211
align-items: flex-start;
12121212
padding: 1.5rem;
1213-
border-bottom: 1px solid #e1e4e8;
1214-
background: #fafbfc;
1213+
border-bottom: 1px solid var(--color-secondary);
1214+
background: var(--color-box-header);
12151215
}
12161216
12171217
.editor-title h2 {
12181218
margin: 0 0 0.25rem 0;
1219-
color: #24292e;
1219+
color: var(--color-text);
12201220
font-size: 1.25rem;
12211221
font-weight: 600;
12221222
display: flex;
@@ -1226,7 +1226,7 @@ onUnmounted(() => {
12261226
12271227
.editor-title p {
12281228
margin: 0;
1229-
color: #586069;
1229+
color: var(--color-text-light-2);
12301230
font-size: 0.9rem;
12311231
}
12321232
@@ -1250,20 +1250,20 @@ onUnmounted(() => {
12501250
12511251
.editor-content .field label {
12521252
font-weight: 600;
1253-
color: #24292e;
1253+
color: var(--color-text);
12541254
margin-bottom: 0.5rem;
12551255
display: block;
12561256
}
12571257
12581258
.editor-content .ui.segment {
1259-
background: #fafbfc;
1260-
border: 1px solid #e1e4e8;
1259+
background: var(--color-box-header);
1260+
border: 1px solid var(--color-secondary);
12611261
padding: 1rem;
12621262
margin-bottom: 0.5rem;
12631263
}
12641264
12651265
.editor-content .description {
1266-
color: #586069;
1266+
color: var(--color-text-light-2);
12671267
font-size: 0.9rem;
12681268
}
12691269
@@ -1279,7 +1279,7 @@ onUnmounted(() => {
12791279
width: 100%;
12801280
max-height: 40vh;
12811281
border-right: none;
1282-
border-bottom: 1px solid #e1e4e8;
1282+
border-bottom: 1px solid var(--color-secondary);
12831283
}
12841284
12851285
.editor-header {
@@ -1325,15 +1325,15 @@ onUnmounted(() => {
13251325
}
13261326
13271327
.workflow-status.status-enabled {
1328-
background: #d4edda;
1329-
color: #155724;
1330-
border: 1px solid #c3e6cb;
1328+
background: var(--color-success-bg);
1329+
color: var(--color-success-text);
1330+
border: 1px solid var(--color-success-border);
13311331
}
13321332
13331333
.workflow-status.status-disabled {
1334-
background: #f8d7da;
1335-
color: #721c24;
1336-
border: 1px solid #f5c6cb;
1334+
background: var(--color-error-bg);
1335+
color: var(--color-error-text);
1336+
border: 1px solid var(--color-error-border);
13371337
}
13381338
13391339
/* Readonly form styles */
@@ -1342,11 +1342,11 @@ onUnmounted(() => {
13421342
}
13431343
13441344
.readonly-value {
1345-
background: #f6f8fa;
1345+
background: var(--color-secondary-bg);
13461346
padding: 0.5rem;
1347-
border: 1px solid #e1e4e8;
1347+
border: 1px solid var(--color-secondary);
13481348
border-radius: 4px;
1349-
color: #24292e;
1349+
color: var(--color-text);
13501350
font-weight: 500;
13511351
}
13521352
@@ -1357,7 +1357,7 @@ onUnmounted(() => {
13571357
}
13581358
13591359
.readonly-value div {
1360-
color: #586069;
1360+
color: var(--color-text-light-2);
13611361
font-weight: normal;
13621362
}
13631363
@@ -1372,14 +1372,14 @@ onUnmounted(() => {
13721372
13731373
.form .field label {
13741374
font-weight: 600;
1375-
color: #24292e;
1375+
color: var(--color-text);
13761376
margin-bottom: 0.5rem;
13771377
display: block;
13781378
}
13791379
13801380
.segment {
1381-
background: #fafbfc;
1382-
border: 1px solid #e1e4e8;
1381+
background: var(--color-box-header);
1382+
border: 1px solid var(--color-secondary);
13831383
border-radius: 6px;
13841384
padding: 1rem;
13851385
margin-bottom: 0.5rem;
@@ -1392,21 +1392,21 @@ onUnmounted(() => {
13921392
font-size: 1rem;
13931393
font-weight: 400;
13941394
line-height: 1.5;
1395-
color: #212529;
1396-
background-color: #fff;
1395+
color: var(--color-text);
1396+
background-color: var(--color-input-background);
13971397
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
13981398
background-repeat: no-repeat;
13991399
background-position: right 0.75rem center;
14001400
background-size: 16px 12px;
1401-
border: 1px solid #ced4da;
1401+
border: 1px solid var(--color-input-border);
14021402
border-radius: 0.375rem;
14031403
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
14041404
}
14051405
14061406
.form-select:focus {
1407-
border-color: #86b7fe;
1407+
border-color: var(--color-primary);
14081408
outline: 0;
1409-
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
1409+
box-shadow: 0 0 0 0.25rem var(--color-primary-alpha-30);
14101410
}
14111411
14121412
.form-select[multiple] {
@@ -1429,7 +1429,7 @@ onUnmounted(() => {
14291429
/* Label selector styles */
14301430
.label-dropdown.ui.dropdown .menu > .item.active,
14311431
.label-dropdown.ui.dropdown .menu > .item.selected {
1432-
background: rgba(0, 0, 0, 0.05);
1432+
background: var(--color-active);
14331433
font-weight: normal;
14341434
}
14351435
@@ -1453,25 +1453,26 @@ onUnmounted(() => {
14531453
}
14541454
14551455
.text-muted {
1456-
color: #6c757d;
1456+
color: var(--color-text-light-2);
14571457
}
14581458
14591459
/* Column select styling */
14601460
.column-select {
14611461
width: 100%;
14621462
padding: 0.67857143em 1em;
1463-
border: 1px solid rgba(34, 36, 38, 0.15);
1463+
border: 1px solid var(--color-input-border);
14641464
border-radius: 0.28571429rem;
14651465
font-size: 1em;
14661466
line-height: 1.21428571em;
14671467
min-height: 2.71428571em;
1468-
background-color: #fff;
1468+
background-color: var(--color-input-background);
1469+
color: var(--color-input-text);
14691470
transition: border-color 0.1s ease, box-shadow 0.1s ease;
14701471
}
14711472
14721473
.column-select:focus {
1473-
border-color: #85b7d9;
1474+
border-color: var(--color-primary);
14741475
outline: none;
1475-
box-shadow: 0 0 0 0 rgba(34, 36, 38, 0.35) inset;
1476+
box-shadow: 0 0 0 0 var(--color-primary-alpha-30) inset;
14761477
}
14771478
</style>

0 commit comments

Comments
 (0)