diff --git a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-status/_flow-status.component-theme.scss b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-status/_flow-status.component-theme.scss index d753fa35ad49..08e581d217e8 100644 --- a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-status/_flow-status.component-theme.scss +++ b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/header/flow-status/_flow-status.component-theme.scss @@ -40,11 +40,6 @@ neutral, map.get(map.get($config, neutral), lighter) ); - $material-theme-neutral-palette-default: mat.get-theme-color( - $material-theme, - neutral, - map.get(map.get($config, neutral), default) - ); $material-theme-primary-palette-default: mat.get-theme-color( $material-theme, diff --git a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/_edit-processor.component-theme.scss b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/_edit-processor.component-theme.scss new file mode 100644 index 000000000000..a73ca642ddcd --- /dev/null +++ b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/_edit-processor.component-theme.scss @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@use 'sass:map'; +@use '@angular/material' as mat; + +@mixin generate-theme($material-theme, $config) { + $is-material-dark: if(mat.get-theme-type($material-theme) == dark, true, false); + $material-theme-secondary-palette-default: mat.get-theme-color( + $material-theme, + secondary, + map.get(map.get($config, secondary), default) + ); + $material-theme-error-palette-default: mat.get-theme-color( + $material-theme, + error, + map.get(map.get($config, error), default) + ); + + $material-theme-primary-palette-default: mat.get-theme-color( + $material-theme, + primary, + map.get(map.get($config, primary), default) + ); + + $primary-contrast: map.get(map.get($config, primary), contrast); + $caution-contrast: map.get(map.get($config, caution), contrast); + $error-contrast: map.get(map.get($config, error), contrast); + $success: map.get(map.get($config, success), default); + $caution: map.get(map.get($config, caution), default); + + #edit-processor-header { + .controller-bulletins { + background-color: unset; + + .fa { + color: $material-theme-primary-palette-default; + } + } + + .controller-bulletins.has-bulletins { + .fa { + color: $primary-contrast; + } + + &.error { + .fa { + color: $error-contrast; + } + + background-color: $material-theme-error-palette-default; + } + &.warning { + .fa { + color: $caution-contrast; + } + + background-color: $caution; + } + &.info, + &.debug, + &.trace { + background-color: $success; + } + } + } +} diff --git a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/edit-processor.component.html b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/edit-processor.component.html index 203c7fb7685c..3b5de979b7f9 100644 --- a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/edit-processor.component.html +++ b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/ui/canvas/items/processor/edit-processor/edit-processor.component.html @@ -15,8 +15,8 @@ ~ limitations under the License. --> -