Skip to content

Commit

Permalink
Fixes AB#578: High-contrast green for status text
Browse files Browse the repository at this point in the history
Adopted from Azure Portal color scheme (HEX 428000)
  • Loading branch information
gingi committed Jan 12, 2023
1 parent 2d3c2e9 commit b55cfbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions data/themes/classic.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
"core-count": "#1c3f95",
"low-priority-core-count": "#a36a00",
"task-start-event": "#a36a00",
"task-complete-event": "#388e3c",
"task-complete-event": "#428000",
"task-fail-event": "#aa3939",
"starting-node-count": "#1c3f95",
"idle-node-count": "#be93d9",
"running-node-count": "#388e3c",
"running-node-count": "#428000",
"start-task-failed-node-count": "#aa3939",
"rebooting-node-count": "#ff755c"
},
Expand All @@ -74,10 +74,5 @@
"disabled-text": "var(--color-text-primary)",
"disabled-background": "#e5e5e5"
},
"chart-colors": [
"#003f5c",
"#aa3939",
"#4caf50",
"#ffa600"
]
"chart-colors": ["#003f5c", "#aa3939", "#4caf50", "#ffa600"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Subscription } from "rxjs";
import "./pool-state-graph.scss";

const idleColor = "#edeef2";
const runningColor = "#388e3c";
const runningColor = "#328000";
const waitingForStartTaskColor = "#be93d9";
const offlineColor = "#305796";
const preemptedColor = "#606060";
Expand Down Expand Up @@ -133,8 +133,8 @@ export class PoolStateGraphComponent implements OnChanges, OnDestroy {
return this._counts.get(this.pool.id);
}

const dedicatedCounts: NodeCountsAttributes = {...emptyNodeCount};
const lowPriorityCounts: NodeCountsAttributes = {...emptyNodeCount};
const dedicatedCounts: NodeCountsAttributes = { ...emptyNodeCount };
const lowPriorityCounts: NodeCountsAttributes = { ...emptyNodeCount };

for (const count of this._counts.values()) {
this._addToSum(dedicatedCounts, count.dedicated);
Expand Down

0 comments on commit b55cfbe

Please sign in to comment.