diff --git a/html/popup.html b/html/popup.html index 12a1f7b..844295b 100644 --- a/html/popup.html +++ b/html/popup.html @@ -900,17 +900,15 @@
-

+

Dashboard Font - - - +

-

Custom Font

+

Custom Fonts

You can use a custom font from Google fonts here. Make sure to enter only the bold part after "?family="

diff --git a/icon/dropdownArrow.svg b/icon/dropdownArrow.svg index d3d8df9..5879a29 100644 --- a/icon/dropdownArrow.svg +++ b/icon/dropdownArrow.svg @@ -1,6 +1,6 @@ - + dropdown diff --git a/js/popup.js b/js/popup.js index 37e158e..2077320 100644 --- a/js/popup.js +++ b/js/popup.js @@ -748,6 +748,19 @@ function setup() { document.querySelector("#customBackgroundLink").value = ""; sendFromPopup("updateBackground"); }); + + document.getElementById("fontsDropdown").addEventListener("click", (e) => { + const el = document.getElementById("quick-fonts"); + const el2 = document.getElementsByClassName("custom-font")[0]; + if (el.style.display === "none") { + el.style.display = "flex"; + el2.style.display = "block"; + } else { + el.style.display = "none"; + el2.style.display = "none"; + } + }); + } function applyGPAPreset(bounds) {