[NIFI-13483] update active thread count colors for PG and RPG (#9027)

* [NIFI-13483] update active thread count colors for PG and RPG

* address review feedback

This closes #9027
This commit is contained in:
Scott Aslan 2024-07-02 15:36:23 -06:00 committed by GitHub
parent fd6e62bdd2
commit 229364fc31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 8 deletions

View File

@ -1428,6 +1428,16 @@ export class CanvasUtils {
return activeThreads;
}
})
.attr('class', function () {
switch (d.type) {
case ComponentType.Processor:
case ComponentType.InputPort:
case ComponentType.OutputPort:
return `active-thread-count accent-color`;
default:
return `active-thread-count`;
}
})
.style('display', 'block')
.each(function (this: any) {
const activeThreadCountText = d3.select(this);
@ -1452,10 +1462,17 @@ export class CanvasUtils {
return d.dimensions.width - bBox.width - 20;
})
.attr('class', function () {
if (terminatedThreads > 0) {
return `active-thread-count-icon warn-color-darker`;
} else {
return `active-thread-count-icon primary-color`;
switch (d.type) {
case ComponentType.Processor:
case ComponentType.InputPort:
case ComponentType.OutputPort:
if (terminatedThreads > 0) {
return `active-thread-count-icon warn-color-darker`;
} else {
return `active-thread-count-icon primary-color`;
}
default:
return `active-thread-count-icon`;
}
})
.style('display', 'block')

View File

@ -194,10 +194,6 @@
fill: $material-theme-warn-palette-darker;
}
text.active-thread-count {
fill: $material-theme-accent-palette-default;
}
text.component-comments {
fill: $material-theme-primary-palette-default;
stroke: $alternate-surface;