This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The launcher now has a glossy appereance The user can select how wide the launcher is
- Loading branch information
Showing
11 changed files
with
607 additions
and
458 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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,25 @@ | ||
<script lang="ts"> | ||
import I18n from '$lib/I18n.svelte'; | ||
import { localstorage } from 'svocal'; | ||
import { SvocalKeys } from '../../enums/svocal'; | ||
import type { Width } from '../../types/launcher'; | ||
const widths = ['narrow', 'normal', 'wide'] satisfies Width[]; | ||
const svocalStore = localstorage<Width>(SvocalKeys.LAUNCHER_WIDTH, 'normal'); | ||
</script> | ||
|
||
<div class="flex flex-row gap-2 items-center justify-between"> | ||
<I18n key="settings.launcher.width" /> | ||
|
||
<span class="min-w-max"> | ||
<select | ||
class="w-full outline-1 outline-gray-400 outline rounded-sm p-1 bg-gray-200 dark:bg-gray-800" | ||
bind:value={$svocalStore} | ||
> | ||
{#each widths as width} | ||
<option value={width}><I18n key={`settings.launcher.width.${width}`} /></option> | ||
{/each} | ||
</select> | ||
</span> | ||
</div> |
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,6 @@ | ||
type Css = Record<string, string | number>; | ||
|
||
export const stringify = (css: Css) => { | ||
const strings = Object.entries(css).map(([key, val]) => `${key}: ${val};`); | ||
return strings.join(''); | ||
}; |
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