Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit acc08a5

Browse files
jofaullars-reimann
andauthored
feat(gui): changed colors to be purple and made them transparent with border (#937)
* changed colors to be purple and made them transparent with border * style: apply automatic fixes of linters * aaa * ups * style: apply automatic fixes of linters Co-authored-by: jofaul <[email protected]> Co-authored-by: Lars Reimann <[email protected]> Co-authored-by: lars-reimann <[email protected]>
1 parent 4e6b6dd commit acc08a5

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

api-editor/gui/src/features/packageData/selectionView/ParameterView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,12 @@ const CustomBarChart: React.FC<CustomBarChartProps> = function ({ parameterUsage
126126
datasets: [
127127
{
128128
data: labels.map((key) => sortedParameterUsages.get(key)),
129-
borderColor: labels.map((key) => (isStringifiedLiteral(key) ? '#871F78' : '#888888')),
130-
backgroundColor: labels.map((key) => (isStringifiedLiteral(key) ? '#871F78' : '#888888')),
129+
borderColor: labels.map((key) =>
130+
isStringifiedLiteral(key) ? 'rgba(137, 87, 229, 1)' : 'rgba(136, 136, 136, 1)',
131+
),
132+
backgroundColor: labels.map((key) =>
133+
isStringifiedLiteral(key) ? 'rgba(137, 87, 229, 0.2)' : 'rgba(136, 136, 136, 0.2)',
134+
),
131135
},
132136
],
133137
};

api-editor/gui/src/features/statistics/ChartWrappers.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export const CustomBarChart: React.FC<CustomBarChartProps> = function ({ labels,
8181
datasets: [
8282
{
8383
data: labels.map((key) => dataValues.get(key)),
84-
borderColor: ['#9A1D1D', '#7768AE', '#FFCC00', '#1BA25A'],
85-
backgroundColor: ['#9A1D1D', '#7768AE', '#FFCC00', '#1BA25A'],
84+
borderColor: ['rgba(137, 87, 229, 1)'],
85+
backgroundColor: ['rgba(137, 87, 229, 0.2)'],
8686
},
8787
],
8888
};
@@ -157,8 +157,8 @@ export const CustomLineChart: React.FC<CustomLineChartProps> = function ({
157157
datasets: [
158158
{
159159
data: labels.map((key) => dataValues.get(key)),
160-
borderColor: 'rgb(255, 99, 132)',
161-
backgroundColor: 'rgba(255, 99, 132, 0.5)',
160+
borderColor: 'rgba(137, 87, 229, 1)',
161+
backgroundColor: 'rgba(137, 87, 229, 0.2)',
162162
},
163163
],
164164
};

api-editor/gui/src/features/statistics/ProgressStatistics.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import { ArcElement, Chart as ChartJS, Title, Tooltip } from 'chart.js';
1010
ChartJS.register(ArcElement, Title, Tooltip);
1111

1212
export const ProgressStatistics = function () {
13-
const completeOrCorrectBg = useColorModeValue('#38a169', '#68d391');
14-
const completeOrCorrectBorder = useColorModeValue('#2f855a', '#99e6b3');
13+
const completeOrCorrectBg = useColorModeValue('rgba(56, 161, 105, 0.2)', 'rgba(104, 211, 145, 0.2)');
14+
const completeOrCorrectBorder = useColorModeValue('rgba(47, 133, 90, 1)', 'rgba(153, 230, 179, 1)');
1515

16-
const uncheckedBg = useColorModeValue('#CCC', '#888');
17-
const uncheckedBorder = useColorModeValue('#AAA', '#AAA');
16+
const uncheckedBg = useColorModeValue('rgba(204, 204, 204, 0.2)', 'rgba(136, 136, 136, 0.2)');
17+
const uncheckedBorder = useColorModeValue('rgba(170, 170, 170, 1)', 'rgba(170, 170, 170, 1)');
1818

1919
const textColor = useColorModeValue('#000', '#FFF');
2020

api-editor/gui/src/features/statistics/QualityStatistics.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ interface QualityPieChartProps {
4747
}
4848

4949
const QualityPieChart: React.FC<QualityPieChartProps> = function ({ annotationType, annotations }) {
50-
const correctBg = useColorModeValue('#38a169', '#68d391');
51-
const correctBorder = useColorModeValue('#2f855a', '#99e6b3');
50+
const correctBg = useColorModeValue('rgba(56, 161, 105, 0.2)', 'rgba(104, 211, 145, 0.2)');
51+
const correctBorder = useColorModeValue('rgba(47, 133, 90, 1)', 'rgba(153, 230, 179, 1)');
5252

53-
const changedBg = useColorModeValue('#a16e38', '#d39568');
54-
const changedBorder = useColorModeValue('#855d2f', '#e6c099');
53+
const changedBg = useColorModeValue('rgba(161, 110, 56, 0.2)', 'rgba(211, 149, 104, 0.2)');
54+
const changedBorder = useColorModeValue('rgba(133, 93, 47, 1)', 'rgba(230, 192, 153, 1)');
5555

56-
const wrongOrRemovedBg = useColorModeValue('#a13838', '#d36868');
57-
const wrongOrRemovedBorder = useColorModeValue('#852f2f', '#e69999');
56+
const wrongOrRemovedBg = useColorModeValue('rgba(161, 56, 56, 0.2)', 'rgba(211, 104, 104, 0.2)');
57+
const wrongOrRemovedBorder = useColorModeValue('rgba(133, 47, 47, 1)', 'rgba(230, 153, 153, 1)');
5858

59-
const unsureBg = useColorModeValue('#a19038', '#d3ba68');
60-
const unsureBorder = useColorModeValue('#857a2f', '#e6d799');
59+
const unsureBg = useColorModeValue('rgba(161, 144, 56, 0.2)', 'rgba(211, 186, 104, 0.2)');
60+
const unsureBorder = useColorModeValue('rgba(133, 122, 47, 1)', 'rgba(230, 215, 153, 1)');
6161

62-
const uncheckedBg = useColorModeValue('#CCC', '#888');
63-
const uncheckedBorder = useColorModeValue('#AAA', '#AAA');
62+
const uncheckedBg = useColorModeValue('rgba(204, 204, 204, 0.2)', 'rgba(136, 136, 136, 0.2)');
63+
const uncheckedBorder = useColorModeValue('rgba(170, 170, 170, 1)', 'rgba(170, 170, 170, 1)');
6464

6565
const textColor = useColorModeValue('#000', '#FFF');
6666

0 commit comments

Comments
 (0)