diff --git a/popup/popup.html b/popup/popup.html index 72aa011..133cd8e 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -28,6 +28,27 @@ +
+

Card Layout

+ + + + + +
+

Light Mode Colors

diff --git a/popup/popup.js b/popup/popup.js index 9e469ff..cb5c1c3 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -70,6 +70,9 @@ document.getElementById("enabled").checked = settings.enabled; document.getElementById("badgeLayout").checked = settings.badgeLayout; document.getElementById("darkMode").value = settings.darkMode; + document.getElementById("cardLayout").checked = settings.cardLayout; + document.getElementById("cardBackground").value = settings.cardBackground; + document.getElementById("cardGap").value = String(settings.cardGap); COLOR_KEYS.forEach(function (key) { var el = document.getElementById(key); @@ -283,6 +286,9 @@ enabled: document.getElementById("enabled").checked, badgeLayout: document.getElementById("badgeLayout").checked, darkMode: document.getElementById("darkMode").value, + cardLayout: document.getElementById("cardLayout").checked, + cardBackground: document.getElementById("cardBackground").value, + cardGap: parseInt(document.getElementById("cardGap").value, 10), subredditColors: collectSubredditOverrides(), }; @@ -305,6 +311,9 @@ document.getElementById("enabled").addEventListener("change", saveFromControls); document.getElementById("badgeLayout").addEventListener("change", saveFromControls); document.getElementById("darkMode").addEventListener("change", saveFromControls); + document.getElementById("cardLayout").addEventListener("change", saveFromControls); + document.getElementById("cardBackground").addEventListener("change", saveFromControls); + document.getElementById("cardGap").addEventListener("change", saveFromControls); COLOR_KEYS.forEach(function (key) { var el = document.getElementById(key);