From d1372b737b4c68266b58c61cefa6cc91beaa14ff Mon Sep 17 00:00:00 2001 From: DustSwiffer Date: Tue, 28 Nov 2023 22:23:22 +0100 Subject: [PATCH] default value of heightmap colormaps set to the right name. and added a fallback to the switch case --- src/store/gui/heightmap/getters.ts | 13 +++++++++++++ src/store/gui/heightmap/index.ts | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/store/gui/heightmap/getters.ts b/src/store/gui/heightmap/getters.ts index 90c94ba33..39f7247ce 100644 --- a/src/store/gui/heightmap/getters.ts +++ b/src/store/gui/heightmap/getters.ts @@ -27,6 +27,19 @@ export const getters: GetterTree = { '#a50026', ] default: + return [ + '#313695', + '#4575b4', + '#74add1', + '#abd9e9', + '#e0f3f8', + '#ffffbf', + '#fee090', + '#fdae61', + '#f46d43', + '#d73027', + '#a50026', + ] break } return [] diff --git a/src/store/gui/heightmap/index.ts b/src/store/gui/heightmap/index.ts index 1f8050ed0..f47274bf0 100644 --- a/src/store/gui/heightmap/index.ts +++ b/src/store/gui/heightmap/index.ts @@ -5,7 +5,7 @@ import { actions } from './actions' export const getDefaultState = (): HeightmapState => { return { - activecolorscheme: 'default', + activecolorscheme: 'portland', } }