You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "scottyaslan (via GitHub)" <gi...@apache.org> on 2024/04/12 21:00:59 UTC
[PR] [NIFI-13041] birdseye honor user set processor background color [nifi]
scottyaslan opened a new pull request, #8643:
URL: https://github.com/apache/nifi/pull/8643
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [NIFI-13041] birdseye honor user set processor background color [nifi]
Posted by "rfellows (via GitHub)" <gi...@apache.org>.
rfellows commented on PR #8643:
URL: https://github.com/apache/nifi/pull/8643#issuecomment-2059034478
reviewing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [NIFI-13041] birdseye honor user set processor background color [nifi]
Posted by "rfellows (via GitHub)" <gi...@apache.org>.
rfellows commented on code in PR #8643:
URL: https://github.com/apache/nifi/pull/8643#discussion_r1567330535
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/service/birdseye-view.service.ts:
##########
@@ -311,24 +316,26 @@ export class BirdseyeView {
});
// processors
- this.processorManager.selectAll().each(function (d: any) {
+ this.processorManager.selectAll().each((d: ComponentEntityWithDimensions) => {
// default color
let color = '#dde4eb';
if (d.permissions.canRead) {
// use the specified color if appropriate
if (d.component.style['background-color']) {
color = d.component.style['background-color'];
-
- // if the background color is #ffffff use the default instead
- if (color === '#ffffff') {
- color = '#dde4eb';
- }
}
}
+ // determine border color
+ const strokeColor: string = this.canvasUtils.determineContrastColor(
+ this.nifiCommon.substringAfterLast(color, '#')
+ );
+
context.fillStyle = color;
context.fillRect(d.position.x, d.position.y, d.dimensions.width, d.dimensions.height);
+ context.strokeStyle = strokeColor;
+ context.strokeRect(d.position.x, d.position.y, d.dimensions.width, d.dimensions.height);
Review Comment:
we need to do the same for labels above (line 280-293)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [NIFI-13041] birdseye honor user set processor background color [nifi]
Posted by "rfellows (via GitHub)" <gi...@apache.org>.
rfellows merged PR #8643:
URL: https://github.com/apache/nifi/pull/8643
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org