mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 00:35:25 +08:00
parent
104170c295
commit
c70567e9b1
1 changed files with 16 additions and 2 deletions
|
@ -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 = [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue