From a13374c23f395e8da33650d3986476c654ce9a44 Mon Sep 17 00:00:00 2001 From: Guy Sandler Date: Wed, 25 Feb 2026 14:57:31 -0800 Subject: [PATCH] ui revamp 3.5 finished dropdown, might need a bit more --- html/popup.html | 8 +++----- icon/dropdownArrow.svg | 2 +- js/popup.js | 13 +++++++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) 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) {