Skip to content

Commit dad60ad

Browse files
authored
Merge pull request #647 from jschoiRR/mold-main#2025
[Mold UI] 다크모드 css 추가 수정
2 parents e8edcda + c17e7c9 commit dad60ad

2 files changed

Lines changed: 26 additions & 8 deletions

File tree

ui/src/style/dark-mode.less

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@dark-border-color: #434343;
2929
@dropdown-bgColor: #1f1f1f;
3030
@dropdown-hover-bgColor: rgba(255, 255, 255, 0.08);
31-
@table-header-bgColor: #1d1d1d;
31+
@table-header-bgColor: #33343e;
3232
@table-header-hover-bgColor: #303030;
3333
@table-body-hover-bgColor: #262626;
3434
@disabled-bgColor: #555;
@@ -40,6 +40,20 @@
4040
color: @dark-text-color-3;
4141
}
4242

43+
.ant-select-multiple .ant-select-selection-item {
44+
background-color: @dark-secondary-bgColor;
45+
color: @dark-text-color-3;
46+
border-color: @dark-border-color;
47+
}
48+
49+
.ant-select-multiple .ant-select-selection-item-remove {
50+
color: @dark-text-color-3 !important;
51+
}
52+
53+
.list .item:hover {
54+
background: @table-body-hover-bgColor;
55+
}
56+
4357
.user-layout, .ant-layout {
4458
background: @dark-bgColor;
4559
}
@@ -52,6 +66,10 @@
5266
box-shadow: none;
5367
}
5468

69+
.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary) {
70+
color: rgba(255, 255, 255, 0.2) !important;
71+
}
72+
5573
.ant-drawer-content {
5674
background-color: rgb(0, 21, 41);
5775
}
@@ -276,11 +294,11 @@
276294
color: @dark-text-color-3;
277295

278296
&-thead {
279-
background-color: @table-header-bgColor;
297+
background-color: @dark-secondary-bgColor;
280298

281299
tr th {
282300
color: @dark-text-color-4;
283-
background-color: @table-header-bgColor;
301+
background-color: @dark-secondary-bgColor;
284302
border-color: @dark-border-color;
285303

286304
.ant-table-column-has-actions.ant-table-column-has-sorters:hover,
@@ -298,7 +316,7 @@
298316
& > tr:hover.ant-table-row-selected > td,
299317
& > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
300318
& > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
301-
background-color: @table-body-hover-bgColor;
319+
background-color: @dark-secondary-bgColor;
302320
}
303321
}
304322

@@ -320,11 +338,11 @@
320338

321339

322340
& > tr > td.ant-table-cell {
323-
background: @dropdown-hover-bgColor;
341+
background: @dark-secondary-bgColor;
324342
}
325343

326344
& > tr > td.ant-table-cell:hover {
327-
background: @dropdown-hover-bgColor !important;
345+
background: @table-body-hover-bgColor !important;
328346
}
329347

330348
& > tr.ant-table-row:hover > td, & > tr > td.ant-table-cell-row-hover {
@@ -479,7 +497,7 @@
479497
}
480498

481499
.ant-tag-error {
482-
color: #f5222d !important;
500+
color: #ff5959 !important;
483501
background: #fff1f0;
484502
border-color: #ffa39e;
485503
}

ui/src/views/plugins/IFrameWall.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default {
4242
},
4343
methods: {
4444
urlAction (hypervisortype) {
45-
const theme = this.$localStorage.get('DARK_MODE') ? '' : '&theme=light'
45+
const theme = this.$localStorage.get('DARK_MODE') ? '&theme=dark' : '&theme=light'
4646
4747
api('listConfigurations', { keyword: 'monitoring.wall.portal' }).then(json => {
4848
var items = json.listconfigurationsresponse.configuration

0 commit comments

Comments
 (0)