Update edge buttons

This commit is contained in:
ZXY101
2024-03-13 05:05:51 +02:00
parent 8ef7f6447f
commit bec5e84067
2 changed files with 3 additions and 1 deletions

View File

@@ -345,11 +345,13 @@
on:mousedown={mouseDown} on:mousedown={mouseDown}
on:mouseup={left} on:mouseup={left}
class="left-0 top-0 absolute h-full w-16 hover:bg-slate-400 opacity-[0.01]" class="left-0 top-0 absolute h-full w-16 hover:bg-slate-400 opacity-[0.01]"
style:width={`${$settings.edgeButtonWidth}px`}
/> />
<button <button
on:mousedown={mouseDown} on:mousedown={mouseDown}
on:mouseup={right} on:mouseup={right}
class="right-0 top-0 absolute h-full w-16 hover:bg-slate-400 opacity-[0.01]" class="right-0 top-0 absolute h-full w-16 hover:bg-slate-400 opacity-[0.01]"
style:width={`${$settings.edgeButtonWidth}px`}
/> />
{/if} {/if}
{:else} {:else}

View File

@@ -77,7 +77,7 @@ const defaultSettings: Settings = {
bounds: false, bounds: false,
backgroundColor: '#030712', backgroundColor: '#030712',
swipeThreshold: 50, swipeThreshold: 50,
edgeButtonWidth: 10, edgeButtonWidth: 40,
showTimer: false, showTimer: false,
quickActions: true, quickActions: true,
fontSize: 'auto', fontSize: 'auto',