Skip to content

Commit 4c0e007

Browse files
authored
fix(grid): [grid] update dark theme (#3213)
* fix(grid): [grid] update dark theme * fix(grid): [grid] update dark theme
1 parent 651fea0 commit 4c0e007

File tree

12 files changed

+32
-13
lines changed

12 files changed

+32
-13
lines changed

examples/sites/demos/pc/app/grid/edit/status-of-editing-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ const addRow = () => {
9696
font-size: 16px;
9797
padding: 15px;
9898
font-weight: bolder;
99-
color: #444;
99+
color: var(--tv-color-text-secondary, #191919);
100100
}
101101
</style>

examples/sites/demos/pc/app/grid/edit/status-of-editing.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ export default {
105105
font-size: 16px;
106106
padding: 15px;
107107
font-weight: bolder;
108-
color: #444;
108+
color: var(--tv-color-text-secondary, #191919);
109109
}
110110
</style>

examples/sites/demos/pc/app/grid/empty/empty-data-tip-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<tiny-grid-column field="address" title="地址"></tiny-grid-column>
88
<tiny-grid-column field="introduction" title="公司简介" show-overflow></tiny-grid-column>
99
<template #empty>
10-
<span style="color: #ff8800">没有更多数据了!</span>
10+
<span>没有更多数据了!</span>
1111
</template>
1212
</tiny-grid>
1313
<br />

examples/sites/demos/pc/app/grid/empty/empty-data-tip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<tiny-grid-column field="address" title="地址"></tiny-grid-column>
88
<tiny-grid-column field="introduction" title="公司简介" show-overflow></tiny-grid-column>
99
<template #empty>
10-
<span style="color: #ff8800">没有更多数据了!</span>
10+
<span>没有更多数据了!</span>
1111
</template>
1212
</tiny-grid>
1313
<br />

examples/sites/demos/pc/app/grid/operation-column/custom-operation-column-composition-api.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ function clickHandler(row) {
8080
}
8181
.demo-custom-column svg {
8282
font-size: 16px;
83-
fill: var(--ti-common-color-line-active);
83+
fill: var(--tv-color-icon);
8484
}
8585
.demo-custom-column svg:hover {
86-
fill: #40a9ff;
86+
fill: var(--tv-color-icon-hover);
8787
cursor: pointer;
8888
}
8989
.demo-custom-column svg:not(:last-child) {

examples/sites/demos/pc/app/grid/operation-column/custom-operation-column.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ export default {
8989
}
9090
.demo-custom-column svg {
9191
font-size: 16px;
92-
fill: var(--ti-common-color-line-active);
92+
fill: var(--tv-color-icon);
9393
}
9494
.demo-custom-column svg:hover {
95-
fill: #40a9ff;
95+
fill: var(--tv-color-icon-hover);
9696
cursor: pointer;
9797
}
9898
.demo-custom-column svg:not(:last-child) {

examples/sites/demos/pc/app/grid/validation/bubbling-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function asteriskMethod({ column }) {
101101
.demo-body {
102102
height: 400px;
103103
overflow: scroll;
104-
background: #e5edbc;
104+
background: var(--tv-color-warn-bg-light, #ffebd1);
105105
}
106106
.demo-body > .demo-container {
107107
height: 3000px;

examples/sites/demos/pc/app/grid/validation/bubbling.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default {
112112
.demo-body {
113113
height: 400px;
114114
overflow: scroll;
115-
background: #e5edbc;
115+
background: var(--tv-color-warn-bg-light, #ffebd1);
116116
}
117117
.demo-body > .demo-container {
118118
height: 3000px;

packages/theme/src/grid/checkbox.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
> svg {
111111
fill: var(--tv-Grid-checkbox-border-color-disabled);
112112

113+
path {
114+
fill: var(--tv-Grid-icon-color-disabled);
115+
}
116+
113117
path:first-of-type {
114118
fill: var(--tv-Grid-checkbox-bg-color-disabled);
115119
}

packages/theme/src/grid/radio.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@
103103
> svg {
104104
fill: var(--tv-Grid-radio-border-color-disabled);
105105

106+
path {
107+
fill: var(--tv-Grid-icon-color-disabled);
108+
}
109+
106110
path:last-child {
107111
fill: var(--tv-Grid-radio-icon-color-disabled);
108112
}

0 commit comments

Comments
 (0)