Files
radicle-explorer/desktop/src/components/FontSizeSwitch.svelte
T
Rūdolfs Ošiņš 983fff9006 Move everything into desktop/
In preparation for merging radicle-desktop into radicle-gui. It's a pure rename, so git can follow every file across the move.
2026-10-12 08:41:12 +02:00

38 lines
675 B
Svelte

<script lang="ts">
import {
decreaseFontSize,
fontSettings,
increaseFontSize,
} from "@app/lib/appearance.svelte";
import Button from "@app/components/Button.svelte";
import Icon from "@app/components/Icon.svelte";
</script>
<style>
</style>
<div class="global-flex" style:gap="0">
<Button
variant="ghost"
flatRight
onclick={() => {
decreaseFontSize();
}}>
<Icon name="minus" />
</Button>
<Button variant="ghost" flatRight flatLeft active>
{fontSettings.size}
</Button>
<Button
variant="ghost"
flatLeft
onclick={() => {
increaseFontSize();
}}>
<Icon name="plus" />
</Button>
</div>