started card settings

This commit is contained in:
Guy Sandler committed 2026-01-26 13:30:52 -08:00
1 parent 6253c7217b
commit bbfb7309bd
4 files changed
+46 -3

No files matched your search

+1 -1
View File
@@ -128,4 +128,4 @@ chrome.runtime.onInstalled.addListener(function () {
});
});
chrome.runtime.setUninstallURL("https://diditupe.dev/bettercanvas/goodbye");
// chrome.runtime.setUninstallURL("https://diditupe.dev/bettercanvas/goodbye");
+13 -1
View File
@@ -623,7 +623,19 @@ function setup() {
"F": { "cutoff": 0, "gpa": 0 }
});
});
document.getElementById("imageSize").addEventListener("input", (e) => {
chrome.storage.sync.set({"imageSize": parseInt(e.target.value)});
sendFromPopup("updateCardStyles", { imageSize: parseInt(e.target.value) });
})
document.getElementById("cardRoundness").addEventListener("input", (e) => {
chrome.storage.sync.set({"cardRoundness": parseInt(e.target.value)});
sendFromPopup("updateCardStyles", { cardRoundness: parseInt(e.target.value) });
})
document.getElementById("cardSpacing").addEventListener("input", (e) => {
chrome.storage.sync.set({"cardSpacing": parseInt(e.target.value)});
sendFromPopup("updateCardStyles", { cardSpacing: parseInt(e.target.value) });
})
}
function applyGPAPreset(bounds) {