From 33777fb2f7d65d568d97035e25eca76e4a22aa48 Mon Sep 17 00:00:00 2001
From: Torch <12666855+torchatlas@users.noreply.github.com>
Date: Fri, 28 Aug 2020 12:01:46 -0400
Subject: [PATCH 1/2] Added Font Chooser

---
 mods/font-chooser/mod.js | 95 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
 create mode 100644 mods/font-chooser/mod.js

diff --git a/mods/font-chooser/mod.js b/mods/font-chooser/mod.js
new file mode 100644
index 0000000..eeef8a4
--- /dev/null
+++ b/mods/font-chooser/mod.js
@@ -0,0 +1,95 @@
+/*
+ * font chooser
+ * (c) 2020 torchatlas (https://bit.ly/torchatlas)
+ * under the MIT license
+ */
+
+'use strict';
+
+module.exports = {
+	id: 'e0d8d148-45e7-4d79-8313-e7b2ad8abe16',
+	tags: ['extension'],
+	name: 'font chooser',
+	desc: 'customize your fonts. leave blank to not change anything.',
+	version: '0.1.0',
+	author: 'torchatlas',
+	options: [
+		{
+			key: 'sansSerif',
+			label: 'Sans Serif and UI',
+			type: 'input',
+			value: '',
+		},
+		{
+			key: 'serif',
+			label: 'Serif',
+			type: 'input',
+			value: ''
+		},
+		{
+			key: 'mono',
+			label: 'Monospace',
+			type: 'input',
+			value: ''
+		},
+		{
+			key: 'code',
+			label: 'Code',
+			type: 'input',
+			value: ''
+		}
+	],
+	hacks: {
+		'renderer/preload.js'(store, __exports) {
+			document.addEventListener('readystatechange', (event) => {
+
+				if (document.readyState !== 'complete') return false;
+
+				if (store().sansSerif != '') {
+					document.documentElement.style.setProperty(
+						'--theme_dark--font_sans',
+						store().sansSerif
+					);
+					document.documentElement.style.setProperty(
+						'--theme_light--font_sans',
+						store().sansSerif
+					);	
+				}
+
+				if (store().serif != '') {
+					document.documentElement.style.setProperty(
+						'--theme_dark--font_serif',
+						store().serif
+					);
+					document.documentElement.style.setProperty(
+						'--theme_light--font_serif',
+						store().serif
+					);	
+				}
+
+				if (store().mono != '') {
+					document.documentElement.style.setProperty(
+						'--theme_dark--font_mono',
+						store().mono
+					);
+					document.documentElement.style.setProperty(
+						'--theme_light--font_mono',
+						store().mono
+					);	
+				}
+
+				if (store().code != '') {
+					document.documentElement.style.setProperty(
+						'--theme_dark--font_code',
+						store().code
+					);
+					document.documentElement.style.setProperty(
+						'--theme_light--font_code',
+						store().code
+					);	
+				}
+
+			});
+		}
+	}
+}
\ No newline at end of file

From 69cdc4aff57422f810e3c73559b561261f071c48 Mon Sep 17 00:00:00 2001
From: Torch <12666855+torchatlas@users.noreply.github.com>
Date: Fri, 28 Aug 2020 12:10:50 -0400
Subject: [PATCH 2/2] Update mod.js

---
 mods/font-chooser/mod.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mods/font-chooser/mod.js b/mods/font-chooser/mod.js
index eeef8a4..60b5cec 100644
--- a/mods/font-chooser/mod.js
+++ b/mods/font-chooser/mod.js
@@ -10,7 +10,7 @@ module.exports = {
 	id: 'e0d8d148-45e7-4d79-8313-e7b2ad8abe16',
 	tags: ['extension'],
 	name: 'font chooser',
-	desc: 'customize your fonts. leave blank to not change anything.',
+	desc: 'customize fonts. for each option, type in the name of the font you would like to use, or leave it blank to not change anything.',
 	version: '0.1.0',
 	author: 'torchatlas',
 	options: [