Skip to content

Commit

Permalink
caution color cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyaslan committed May 2, 2024
1 parent a3825e6 commit db444e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
$nifi-theme-caution-palette: map.get($nifi-theme-color-config, 'warn');

// Get hues from palette
$nifi-theme-caution-palette-default: mat.get-color-from-palette($nifi-theme-caution-palette);
$nifi-theme-caution-palette-darker: mat.get-color-from-palette($nifi-theme-caution-palette, darker);

.bulletin-warn {
color: $nifi-theme-caution-palette-default;
color: $nifi-theme-caution-palette-darker;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
$nifi-theme-success-palette-50: mat.get-color-from-palette($nifi-theme-success-palette, 50);
$nifi-theme-success-palette-900: mat.get-color-from-palette($nifi-theme-success-palette, 900);
$material-theme-warn-palette-darker: mat.get-color-from-palette($material-theme-warn-palette, darker);
$nifi-theme-caution-palette-default: mat.get-color-from-palette($nifi-theme-caution-palette);
$nifi-theme-caution-palette-darker: mat.get-color-from-palette($nifi-theme-caution-palette, darker);

// Shadows should always be darker. We explicitly set this so the SVG shadows are correct in both modes.
Expand Down Expand Up @@ -338,7 +337,7 @@
}

g.connection rect.backpressure-percent.warning {
fill: $nifi-theme-caution-palette-default;
fill: $nifi-theme-caution-palette-darker;
}

g.connection rect.backpressure-percent.error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@
$nifi-theme-success-palette-default: mat.get-color-from-palette($nifi-theme-success-palette, default);
$nifi-theme-success-palette-lighter: mat.get-color-from-palette($nifi-theme-success-palette, lighter);
$nifi-theme-success-palette-darker: mat.get-color-from-palette($nifi-theme-success-palette, darker);
$nifi-theme-caution-palette-default: mat.get-color-from-palette($nifi-theme-caution-palette);
$nifi-theme-caution-palette-lighter: mat.get-color-from-palette($nifi-theme-caution-palette, lighter);
$nifi-theme-caution-palette-darker: mat.get-color-from-palette($nifi-theme-caution-palette, darker);

// semantic classes for contrast colors determined based on the light/dark mode of the theme.
Expand Down Expand Up @@ -323,16 +321,6 @@
fill: $nifi-theme-success-palette-darker;
}

.caution-color {
color: $nifi-theme-caution-palette-default;
fill: $nifi-theme-caution-palette-default;
}

.caution-color-lighter {
color: $nifi-theme-caution-palette-lighter;
fill: $nifi-theme-caution-palette-lighter;
}

.caution-color-darker {
color: $nifi-theme-caution-palette-darker;
fill: $nifi-theme-caution-palette-darker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ $caution-palette: (
800: #f7a52f,
900: #f27d22,
A100: #ffef85,
A200: #f8bf47, // .bulletin-warn
A400: #bda500, // g.connection rect.backpressure-percent.warning,
A700: #ffcc00, // g.connection.selected rect.border, g.connection path.connection-selection-path, g.connection rect.midpoint, g.label rect.labelpoint
A200: #f8bf47,
A400: #bda500,
A700: #ffcc00,
contrast: (
50: rgba(#000000, 0.87),
100: rgba(#000000, 0.87),
Expand Down

0 comments on commit db444e0

Please sign in to comment.