feat: Add option to revert vote colors

This commit is contained in:
Xyphyn committed 2023-07-17 13:27:06 -07:00
1 parent adc3df0d8f
commit 75671f3fad
7 files changed
+50 -10

No files matched your search

+17
View File
@@ -124,3 +124,20 @@
</li>
{/each}
</ul>
<div class="mt-2 w-full">
<Button
on:click={() => {
$page.url.searchParams.set(
'page',
((Number($page.url.searchParams.get('page')) || 1) + 1).toString()
)
goto($page.url.toString(), {
invalidateAll: true,
})
}}
>
Next
</Button>
</div>
+1 -1
View File
@@ -3,7 +3,7 @@ import type { ListingType } from 'lemmy-js-client'
import { get } from 'svelte/store'
export function load({ url }) {
const type = url.searchParams.get('listingType') as ListingType
const type = url.searchParams.get('type') as ListingType
const page = Number(url.searchParams.get('page')) || 1
const query = url.searchParams.get('q')
+14 -3
View File
@@ -43,9 +43,10 @@
<title>Settings</title>
</svelte:head>
<div class="flex flex-col gap-4">
<div class="flex flex-col">
<h1 class="text-3xl font-bold">Settings</h1>
<Card class="flex flex-col gap-3 p-6 text-sm">
<h2 class="uppercase font-bold opacity-80 text-sm mt-4">General</h2>
<Card class="flex flex-col gap-3 p-6 text-sm my-2">
<h1 class="font-bold">Instance</h1>
<p>Changing this will log you out.</p>
<div class="flex gap-2">
@@ -67,9 +68,19 @@
</div>
</div>
</Card>
<Card class="flex flex-col gap-3 p-6 text-sm">
<h2 class="uppercase font-bold opacity-80 text-sm mt-4">UI</h2>
<Card class="flex flex-col gap-3 p-6 text-sm my-2">
<h1 class="font-bold">Mark read posts</h1>
<p>Fade the title of posts you've already read.</p>
<Switch bind:enabled={$userSettings.markReadPosts} />
</Card>
<Card class="flex flex-col gap-3 p-6 text-sm my-2">
<h1 class="font-bold">Revert vote colors</h1>
<p>Make upvotes orange and downvotes blue, like Reddit used to do.</p>
<Switch bind:enabled={$userSettings.revertColors} />
</Card>
<Card class="flex flex-col gap-3 p-6 text-sm my-2">
<h1 class="font-bold">New comment design</h1>
<Switch bind:enabled={$userSettings.newComments} />
</Card>
</div>