diff --git a/src/lib/layouts/connect/ConnectSection.svelte b/src/lib/layouts/connect/ConnectSection.svelte index 3e46088..6477fe7 100644 --- a/src/lib/layouts/connect/ConnectSection.svelte +++ b/src/lib/layouts/connect/ConnectSection.svelte @@ -12,7 +12,7 @@

Connect to a device

-
+
{#if deviceCtx.device === null} Not connected to any device yet. Plug in your device, and click on the button to select it. diff --git a/src/lib/layouts/edit/controls/conversion/BiasSlider.svelte b/src/lib/layouts/edit/controls/conversion/BiasSlider.svelte index 371c4e6..7fbb1d1 100644 --- a/src/lib/layouts/edit/controls/conversion/BiasSlider.svelte +++ b/src/lib/layouts/edit/controls/conversion/BiasSlider.svelte @@ -7,13 +7,13 @@ const config = getConversionConfig() - let value = $derived(config.bias) + let value = $derived(Math.round(config.bias * 100))
- = {Math.floor(value * 100)}% + = {value}% Whether the conversion algorithm should bias the entire image towards white (negative) or black (positive). @@ -22,10 +22,10 @@ (config.bias = value)} - min={-1} - max={1} - step={0.01} + onValueCommit={() => (config.bias = value / 100)} + min={-100} + max={100} + step={1} aria-labelledby="bias-input-label" />
diff --git a/src/lib/layouts/edit/controls/conversion/ContrastSlider.svelte b/src/lib/layouts/edit/controls/conversion/ContrastSlider.svelte index 6fe8ed0..2b290ec 100644 --- a/src/lib/layouts/edit/controls/conversion/ContrastSlider.svelte +++ b/src/lib/layouts/edit/controls/conversion/ContrastSlider.svelte @@ -7,13 +7,13 @@ const config = getConversionConfig() - let value = $derived(config.contrast) + let value = $derived(Math.round(config.contrast * 100))
- = {Math.floor(value * 100)}% + = {value}% How eager the conversion algorithm should push colors towards the two ends (black and white) of the grayscale. @@ -22,10 +22,10 @@ (config.contrast = value)} + onValueCommit={() => (config.contrast = value / 100)} min={0} - max={1} - step={0.01} + max={100} + step={1} aria-labelledby="contrast-input-label" />
diff --git a/src/lib/layouts/write/WriteSection.svelte b/src/lib/layouts/write/WriteSection.svelte index 65a7608..14d0a65 100644 --- a/src/lib/layouts/write/WriteSection.svelte +++ b/src/lib/layouts/write/WriteSection.svelte @@ -1,14 +1,11 @@