From 68e3b424c838edb07d59e677bc9debd6d5a32fd4 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 20 Oct 2023 16:37:53 -0700
Subject: feat(settings): change to checkbox

---
 src/routes/settings/+page.svelte | 90 +++++++++++++++-------------------------
 1 file changed, 33 insertions(+), 57 deletions(-)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index b0885436..ca27dfe9 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -5,7 +5,7 @@
 	import manga from '../../stores/manga';
 	import anime from '../../stores/anime';
 	import settings from '../../stores/settings';
-	import SettingToggle from '$lib/Settings/SettingToggle.svelte';
+	import SettingCheckboxToggle from '$lib/Settings/SettingCheckboxToggle.svelte';
 	import SettingHint from '$lib/Settings/SettingHint.svelte';
 	import { pruneAllManga } from '$lib/Media/manga';
 
@@ -44,55 +44,32 @@
 	<details open>
 		<summary>Display</summary>
 
-		<SettingToggle setting={'forceLightTheme'} on={'Use preferred'} off={'Force light'}>
-			theme
-		</SettingToggle>
-		<SettingToggle
-			setting={'linkToAniList'}
-			on={'Link anime to LiveChart.me'}
-			off={'Link anime to AniList'}
-		/>
-		<SettingToggle setting={'displayPausedMedia'} on={'Hide'} off={'Show'}>
-			paused media
-		</SettingToggle>
-		<SettingToggle
-			setting={'limitListHeight'}
-			on={'Display full list area'}
-			off={'Limit list area to screen'}
-		/>
-		<SettingToggle setting={'displaySocialButton'} on={'Hide'} off={'Show'} sectionBreak>
-			social button
-		</SettingToggle>
-
-		<p />
-
-		<SettingToggle setting={'displayUnresolved'} on={'Hide'} off={'Show'}>unresolved</SettingToggle>
-		<SettingHint>Displays unresolved chapter counts as "?"</SettingHint>
-
-		<p />
-
-		<SettingToggle setting={'displayNotStarted'} on={'Hide'} off={'Show'}>
-			media with zero progress
-		</SettingToggle>
-		<SettingHint>
-			May cause <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">
-				rate-limiting
-			</a> depending on how much releasing manga are on your lists
-		</SettingHint>
-
-		<p />
-
-		<SettingToggle setting={'closeAnimeByDefault'} on={'Expand'} off={'Close'}>
-			anime panel by default
-		</SettingToggle>
-		<SettingToggle setting={'closeMangaByDefault'} on={'Expand'} off={'Close'}>
-			manga panel by default
-		</SettingToggle>
-		<SettingToggle setting={'sortByDifference'}>
-			Sort anime by {@html !$settings.sortByDifference
-				? 'difference between last watched and next episode'
-				: 'days left until next episode'}
-		</SettingToggle>
+		<SettingCheckboxToggle setting="forceLightTheme" text="Force light theme" />
+		<SettingCheckboxToggle setting="linkToAniList" text="Link anime to LiveChart.me" />
+		<SettingCheckboxToggle setting="displayPausedMedia" text="Show paused media" />
+		<SettingCheckboxToggle setting="limitListHeight" text="Limit list area to screen" />
+		<SettingCheckboxToggle setting="displaySocialButton" text="Show social button" />
+		<SettingCheckboxToggle setting="displayUnresolved" text="Display unresolved media" />
+		<SettingCheckboxToggle setting="displayNotStarted" text="Show media with zero progress">
+			<SettingHint lineBreak>
+				May cause <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">
+					rate-limiting
+				</a> depending on how much releasing manga are on your lists
+			</SettingHint>
+		</SettingCheckboxToggle>
+
+		<br />
+
+		<SettingCheckboxToggle setting="closeAnimeByDefault" text="Close anime panel by default" />
+		<SettingCheckboxToggle setting="closeMangaByDefault" text="Close manga panel by default" />
+		<SettingCheckboxToggle
+			setting="sortByDifference"
+			text="Sort anime by difference between last watched and next episode"
+		>
+			<SettingHint lineBreak>
+				By default, anime will be sorted by the number of days left until the next episode airs.
+			</SettingHint>
+		</SettingCheckboxToggle>
 	</details>
 
 	<p />
@@ -100,12 +77,11 @@
 	<details open>
 		<summary>Calculation</summary>
 
-		<SettingToggle setting={'roundDownChapters'} on={'Maintain'} off={'Round down'}>
-			chapters
-		</SettingToggle>
-		<SettingHint>
-			50/50.6 would {@html $settings.roundDownChapters ? '' : '<b>not</b>'} be due
-		</SettingHint>
+		<SettingCheckboxToggle setting="roundDownChapters" text="Round down chapters">
+			<SettingHint lineBreak>
+				Round down to the nearest whole number. 50/50.6 would <b>not</b> be due
+			</SettingHint>
+		</SettingCheckboxToggle>
 	</details>
 
 	<p />
@@ -115,7 +91,7 @@
 
 		<a href={'#'} on:click={pruneUnresolved}>Re-cache <b>ALL</b> unresolved manga</a>
 
-		<p />
+		<br />
 
 		<a href={'#'} on:click={pruneAllManga}>Re-cache <b>ALL</b> manga</a>
 		<SettingHint lineBreak>Force a re-cache of all cached manga chapter counts</SettingHint>
-- 
cgit v1.2.3


From 45c128e0be6bfaeefd809c745275ee8d9798ff4c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 20 Oct 2023 16:54:53 -0700
Subject: feat(manga): disable chapter guessing

---
 src/routes/settings/+page.svelte | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index ca27dfe9..0435a862 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -82,6 +82,15 @@
 				Round down to the nearest whole number. 50/50.6 would <b>not</b> be due
 			</SettingHint>
 		</SettingCheckboxToggle>
+
+		<br />
+
+		<SettingCheckboxToggle setting="disableGuessing" text="Disable informed chapter estimation">
+			<SettingHint lineBreak>
+				Enabling this setting will disable light novel chapter counts and may cause inaccuracy in
+				unresolved manga chapter counts
+			</SettingHint>
+		</SettingCheckboxToggle>
 	</details>
 
 	<p />
-- 
cgit v1.2.3


From 9a9515eb69458c0e28fedc66072eecc25b326a45 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 20 Oct 2023 18:15:26 -0700
Subject: fix(settings): change livechart mode

---
 src/routes/settings/+page.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 0435a862..029bca1c 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -45,7 +45,7 @@
 		<summary>Display</summary>
 
 		<SettingCheckboxToggle setting="forceLightTheme" text="Force light theme" />
-		<SettingCheckboxToggle setting="linkToAniList" text="Link anime to LiveChart.me" />
+		<SettingCheckboxToggle setting="linkToLiveChart" text="Link anime to LiveChart.me" />
 		<SettingCheckboxToggle setting="displayPausedMedia" text="Show paused media" />
 		<SettingCheckboxToggle setting="limitListHeight" text="Limit list area to screen" />
 		<SettingCheckboxToggle setting="displaySocialButton" text="Show social button" />
-- 
cgit v1.2.3


From c0562f85fbdda536b6002f28916c25716916eb5f Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 20 Oct 2023 20:10:00 -0700
Subject: fix(settings): hint formatting

---
 src/routes/settings/+page.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 029bca1c..b8d368cc 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -79,7 +79,7 @@
 
 		<SettingCheckboxToggle setting="roundDownChapters" text="Round down chapters">
 			<SettingHint lineBreak>
-				Round down to the nearest whole number. 50/50.6 would <b>not</b> be due
+				Round down to the nearest whole number. (e.g., 50/50.6 would <b>not</b> be due)
 			</SettingHint>
 		</SettingCheckboxToggle>
 
-- 
cgit v1.2.3

