Skip to content

Commit

Permalink
enhance: Remove duplicate theme switch icon (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
navorite committed Nov 10, 2023
1 parent 4b69fb1 commit ce79ef0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion public/icons/dark.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/icons/light.svg

This file was deleted.

10 changes: 1 addition & 9 deletions src/lib/components/popup/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { EXT_MODE, EXT_NAME, isPopup } from '@/lib/constants';
import { settings, filterOptions, notification } from '@/lib/stores';
import { filterOptions, notification } from '@/lib/stores';
import {
SearchBar,
Notification,
Expand Down Expand Up @@ -38,14 +38,6 @@
<IconButton icon="open" title="Full View" on:click={openFullView} />
{/if}

<IconButton
icon={$settings.darkMode ? 'dark' : 'light'}
title="{$settings.darkMode ? 'Dark' : 'Light'} mode"
on:click={() => {
settings.changeSetting('darkMode', !$settings.darkMode);
}}
/>

<IconButton
icon="donate"
title="Donate"
Expand Down
2 changes: 0 additions & 2 deletions src/lib/types/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export type Icon =
| 'tag'
| 'untag'
| 'search'
| 'light'
| 'dark'
| 'settings'
| 'donate';

Expand Down

0 comments on commit ce79ef0

Please sign in to comment.