[Improvement][UI] Optimize task disable node style in dark theme (#14871)

Co-authored-by: 旺阳 <qingwli@cisco.com>
(cherry picked from commit 70e384c9fc)
This commit is contained in:
yeahhhz 2023-09-08 07:39:05 +08:00 committed by Jay Chung
parent 5270cc62a4
commit eb9a6ab4ce
3 changed files with 10 additions and 2 deletions

View File

@ -103,7 +103,7 @@ export function useCustomCellBuilder() {
text: truncation
},
rect: {
fill: flag === 'NO' ? '#f3f3f5' : '#ffffff'
fill: flag === 'NO' ? 'var(--custom-disable-bg)' : '#ffffff'
}
}
}

View File

@ -170,7 +170,7 @@ export function useTaskEdit(options: Options) {
setNodeName(task.code + '', taskDef.name)
let fillColor = '#ffffff'
if (task.flag === 'YES') {
fillColor = '#f3f3f5'
fillColor = 'var(--custom-disable-bg)'
}
setNodeFillColor(task.code + '', fillColor)

View File

@ -32,3 +32,11 @@ $BG_WHITE: #ffffff;
}
}
}
[class*="dag-light"] {
--custom-disable-bg: #f3f3f5
}
[class*="dag-dark"] {
--custom-disable-bg: #d3d3d3
}