Skip to content

Commit

Permalink
Add Map group for user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed Jun 12, 2024
1 parent 2d47ce2 commit 3f7a895
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions src/assets/DefaultUserSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
"value": true,
"group": "Datum"
},
{
"id": "ui.map.showLocationNames",
"type": "boolean",
"label": "Show location names",
"value": true,
"group": "UI"
},
{
"id": "ui.theme",
"type": "oneOfMultiple",
Expand All @@ -52,45 +45,52 @@
"group": "UI"
},
{
"id": "ui.map.theme",
"id": "ui.hierarchical-menu-style",
"type": "oneOfMultiple",
"label": "Basemap",
"value": "carto-db-automatic",
"label": "Menu style",
"value": "auto",
"items": [
{
"value": "carto-db-automatic",
"icon": "mdi-theme-light-dark"
"value": "auto",
"icon": "mdi-responsive"
},
{
"value": "carto-db-light",
"icon": "mdi-weather-sunny"
"value": "tree",
"icon": "mdi-file-tree"
},
{
"value": "carto-dark-matter",
"icon": "mdi-weather-night"
"value": "column",
"icon": "mdi-view-week"
}
],
"group": "UI"
},
{
"id": "ui.hierarchical-menu-style",
"id": "ui.map.theme",
"type": "oneOfMultiple",
"label": "Menu style",
"value": "auto",
"label": "Basemap",
"value": "carto-db-automatic",
"items": [
{
"value": "auto",
"icon": "mdi-responsive"
"value": "carto-db-automatic",
"icon": "mdi-theme-light-dark"
},
{
"value": "tree",
"icon": "mdi-file-tree"
"value": "carto-db-light",
"icon": "mdi-weather-sunny"
},
{
"value": "column",
"icon": "mdi-view-week"
"value": "carto-dark-matter",
"icon": "mdi-weather-night"
}
],
"group": "UI"
"group": "Map"
},
{
"id": "ui.map.showLocationNames",
"type": "boolean",
"label": "Show location names",
"value": true,
"group": "Map"
}
]
2 changes: 1 addition & 1 deletion src/stores/userSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const parameterGroupKey = 'units.parameterGroup.'
export const useUserSettingsStore = defineStore({
id: 'userSettings',
state: (): UserSettingsState => ({
groups: ['Units', 'Datum', 'UI'],
groups: ['Units', 'Datum', 'UI', 'Map'],
items: defaultUserSettings,
convertDatum: false,
useDisplayUnits: true,
Expand Down

0 comments on commit 3f7a895

Please sign in to comment.