-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from phillip-hirsch/feature/Dynamically-fetch-a…
…nd-display-color-themes-and-palettes Feature: Fetch color schemes from iTerm2-Color-Schemes repository and display the color themes and palettes for each selection
- Loading branch information
Showing
6 changed files
with
181 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts"> | ||
import {setColorScheme} from "$lib/stores/config.svelte"; | ||
import Dropdown from "./Dropdown.svelte"; | ||
type Props = { | ||
value: string; | ||
options: (string | {name: string, value: string})[] | ||
}; | ||
// eslint-disable-next-line prefer-const | ||
let {value = $bindable(), options}: Props = $props(); | ||
async function change() { | ||
await setColorScheme(value); | ||
} | ||
</script> | ||
|
||
<Dropdown bind:value {options} {change} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters