From 87c62544bdc9608bbe77cfc2e2c4ccfc243672a7 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Mon, 15 Apr 2024 10:33:47 +0200 Subject: [PATCH] lucide icons --- website/src/lib/components/Menu.svelte | 49 ++++++++++++---- website/src/lib/components/Toolbar.svelte | 58 +++++++------------ .../layer-control/LayerControl.svelte | 5 +- .../layer-control/LayerControlSettings.svelte | 26 ++++----- .../components/layer-control/LayerTree.svelte | 7 +-- .../layer-control/LayerTreeNode.svelte | 7 +-- .../ui/accordion/accordion-content.svelte | 2 +- 7 files changed, 82 insertions(+), 72 deletions(-) diff --git a/website/src/lib/components/Menu.svelte b/website/src/lib/components/Menu.svelte index 3fc457f9..20a4a01f 100644 --- a/website/src/lib/components/Menu.svelte +++ b/website/src/lib/components/Menu.svelte @@ -2,7 +2,18 @@ import * as Menubar from '$lib/components/ui/menubar/index.js'; import { Button } from '$lib/components/ui/button'; import Logo from './Logo.svelte'; - import { HeartHandshake } from 'lucide-svelte'; + import { + Plus, + Upload, + Copy, + Download, + Undo2, + Redo2, + Trash2, + HeartHandshake + } from 'lucide-svelte'; + import Fa from 'svelte-fa'; + import { faGoogleDrive } from '@fortawesome/free-brands-svg-icons'; let distanceUnits = 'metric'; let velocityUnits = 'speed'; @@ -20,17 +31,29 @@ File - New GPX file ⌘N + New ⌘N - Load GPX file(s)... ⌘O + Load from desktop... ⌘O + + + + Load from Google Drive... + + + Duplicate ⌘D - Export... ⌘S + Export... ⌘S - Export all... ⇧⌘S + Export all... ⇧⌘S @@ -38,14 +61,20 @@ Edit - Undo ⌘Z + Undo ⌘Z - Redo ⇧⌘Z + Redo ⇧⌘Z - Delete ⌘D - Delete all⇧⌘D + Delete ⌘K + Delete all⇧⌘K @@ -97,7 +126,7 @@ href="https://ko-fi.com/gpxstudio" target="_blank" class="cursor-default h-fit rounded-sm" - >Donate Donate diff --git a/website/src/lib/components/Toolbar.svelte b/website/src/lib/components/Toolbar.svelte index 26156cf9..6e35e109 100644 --- a/website/src/lib/components/Toolbar.svelte +++ b/website/src/lib/components/Toolbar.svelte @@ -1,76 +1,60 @@
- + Edit the track points - + Change time and speed data - + Reverse the order of the track points - + Merge with another file - + Extract the tracks or track segments to new files - - Duplicate the file - - - + Create a new point of interest - + Reduce the number of track points - + Clean track points and POIs with a rectangle selection - - Hide/unhide the trace - - - + Change the styling of the trace - + Manage the file structure - - - Delete the file -
diff --git a/website/src/lib/components/layer-control/LayerControl.svelte b/website/src/lib/components/layer-control/LayerControl.svelte index 099aff5b..37b21444 100644 --- a/website/src/lib/components/layer-control/LayerControl.svelte +++ b/website/src/lib/components/layer-control/LayerControl.svelte @@ -8,8 +8,7 @@ import { Separator } from '$lib/components/ui/separator'; import { ScrollArea } from '$lib/components/ui/scroll-area/index.js'; - import Fa from 'svelte-fa'; - import { faLayerGroup } from '@fortawesome/free-solid-svg-icons'; + import { Layers } from 'lucide-svelte'; import { basemaps, @@ -31,7 +30,7 @@
- +
- @@ -31,13 +30,14 @@ Layer settings - Select the map layers you want to show in the interface and adjust their settings. + Select the map layers you want to show in the interface, add custom ones, and adjust their + settings. Layer selection - - + + - - + + - Custom layer + Custom layers - TODO custom layer form + TODO custom layer list + new custom layer form - Heatmap settings + Heatmap - POIs settings + Points of interest diff --git a/website/src/lib/components/layer-control/LayerTree.svelte b/website/src/lib/components/layer-control/LayerTree.svelte index aca0d17f..c40c0ad8 100644 --- a/website/src/lib/components/layer-control/LayerTree.svelte +++ b/website/src/lib/components/layer-control/LayerTree.svelte @@ -5,8 +5,7 @@ import * as Collapsible from '$lib/components/ui/collapsible'; import { Button } from '$lib/components/ui/button'; - import Fa from 'svelte-fa'; - import { faChevronDown, faChevronLeft } from '@fortawesome/free-solid-svg-icons'; + import { ChevronDown, ChevronUp } from 'lucide-svelte'; export let layerTree: LayerTreeType; export let label: string; @@ -27,9 +26,9 @@ > {label} {#if open} - + {:else} - + {/if} diff --git a/website/src/lib/components/layer-control/LayerTreeNode.svelte b/website/src/lib/components/layer-control/LayerTreeNode.svelte index 8ad11747..262557b6 100644 --- a/website/src/lib/components/layer-control/LayerTreeNode.svelte +++ b/website/src/lib/components/layer-control/LayerTreeNode.svelte @@ -4,8 +4,7 @@ import { Button } from '$lib/components/ui/button'; import * as Collapsible from '$lib/components/ui/collapsible'; - import Fa from 'svelte-fa'; - import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons'; + import { ChevronDown, ChevronUp } from 'lucide-svelte'; import { type LayerTreeType } from '$lib/assets/layers'; @@ -71,9 +70,9 @@ > {id} {#if open[id]} - + {:else} - + {/if} diff --git a/website/src/lib/components/ui/accordion/accordion-content.svelte b/website/src/lib/components/ui/accordion/accordion-content.svelte index b1f89956..0044cca8 100644 --- a/website/src/lib/components/ui/accordion/accordion-content.svelte +++ b/website/src/lib/components/ui/accordion/accordion-content.svelte @@ -14,7 +14,7 @@