Skip to content

Commit

Permalink
prefer lucide-svelte icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Nov 21, 2024
1 parent 6f550bd commit 5f68f52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
8 changes: 4 additions & 4 deletions src/content/examples/custom-control/CustomControl.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { HillshadeLayer, MapLibre, RasterDEMTileSource, Terrain, CustomControl } from 'svelte-maplibre-gl';
import IconMoon from './IconMoon.svelte';
import IconSun from './IconSun.svelte';
import Sun from 'lucide-svelte/icons/sun';
import Moon from 'lucide-svelte/icons/moon';
import { MyControl } from './MyControl.js';
let isHillshadeVisible = $state(true);
Expand Down Expand Up @@ -41,9 +41,9 @@
<CustomControl.Group>
<CustomControl.Icon onclick={() => (isDarkMode = !isDarkMode)} class="text-gray-900">
{#if isDarkMode}
<IconMoon />
<Moon />
{:else}
<IconSun />
<Sun />
{/if}
</CustomControl.Icon>
</CustomControl.Group>
Expand Down
13 changes: 0 additions & 13 deletions src/content/examples/custom-control/IconMoon.svelte

This file was deleted.

21 changes: 0 additions & 21 deletions src/content/examples/custom-control/IconSun.svelte

This file was deleted.

0 comments on commit 5f68f52

Please sign in to comment.