using different colors if main and text are the same

closes #4060
This commit is contained in:
Miodec 2023-03-10 14:14:40 +01:00
parent 104170c295
commit c70567e9b1

View file

@ -1042,15 +1042,29 @@ export async function applyBurstHeatmap(): Promise<void> {
const themeColors = await ThemeColors.getAll();
const colors = [
let colors = [
themeColors.colorfulError,
Misc.blendTwoHexColors(themeColors.colorfulError, themeColors.text, 0.5),
themeColors.text,
Misc.blendTwoHexColors(themeColors.main, themeColors.text, 0.5),
themeColors.main,
];
let unreachedColor = themeColors.sub;
const unreachedColor = themeColors.sub;
if (themeColors.main === themeColors.text) {
colors = [
themeColors.colorfulError,
Misc.blendTwoHexColors(
themeColors.colorfulError,
themeColors.text,
0.5
),
themeColors.sub,
Misc.blendTwoHexColors(themeColors.sub, themeColors.text, 0.5),
themeColors.main,
];
unreachedColor = themeColors.subAlt;
}
const steps = [
{