From 1fab126289c00be70ab5218d25b9152be6bd9605 Mon Sep 17 00:00:00 2001 From: Vinyas Hegde Date: Fri, 6 Oct 2023 00:17:14 +0530 Subject: [PATCH] eye view count icon --- Source/eye-slash-solid.svg | 1 + Source/eye-solid.svg | 1 + Source/off-button.png | Bin 760 -> 0 bytes Source/on-button.png | Bin 653 -> 0 bytes Source/popup.html | 2 +- Source/src/popup.js | 8 ++++++-- 6 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 Source/eye-slash-solid.svg create mode 100644 Source/eye-solid.svg delete mode 100644 Source/off-button.png delete mode 100644 Source/on-button.png diff --git a/Source/eye-slash-solid.svg b/Source/eye-slash-solid.svg new file mode 100644 index 0000000..a4dfb77 --- /dev/null +++ b/Source/eye-slash-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Source/eye-solid.svg b/Source/eye-solid.svg new file mode 100644 index 0000000..e7198b8 --- /dev/null +++ b/Source/eye-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Source/off-button.png b/Source/off-button.png deleted file mode 100644 index 945a4104332b4954220bc6f78dfd625d226f6854..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 760 zcmVY)) z!FEhV*3fdb`&8#(S%JaP@qW=fNY)>eBaI2f=POxBX~mc6Ic67^OeHi(fA`7GM}G)B zf0a4ripn%4>aCW>#Ga~sota~Le$iB-poNZ}bZP>?+oJ1JcWR;$t2w#1<^V0p25O=a zQ-P3ZeS7=C2k`Xen|3tmmSh6i^<4ap2$%@(NOld4jJ0_J+V4LX33PJ7ARJb z6_MFr0-A}9%{-1kH9Hn7VkJaM%J3`9hJU)ipLM`00RW%H~?{nbgA0mt{xK&`2f)>WW5AfNln2h7H$2 qvY=lp#pB+tRHhQ^Dpjid`}_bgC+#}#DBw&00000zHg0nO8bXa#7HCvhK)_iXBzR$eh z&pYqKI}j5S^S>i!P28B+X-ybAuW%W#LM^V?pkJIOYhih)bN^fd*~!h6B|0wfFl_K2 zs37vvwRG&`aOT^Y0=efK*VW@K)m{I4gq;TEZecW2JSC8w+)Oo!zK zQ8(`k2+|QH9N=neegCdD|HSdcbov6Gpiu?Rg9cK>Q_mL=&nrb;eB*~xw`M(1V~~1;gPlzvI5?t)x*muPW^#Tndw_ n%2$JwTqBFMGmnXhi8;w{KRmBflS7Ja00000NkvXXu0mjfAZ;ir diff --git a/Source/popup.html b/Source/popup.html index f006f2d..0aebeec 100644 --- a/Source/popup.html +++ b/Source/popup.html @@ -141,7 +141,7 @@
Shorto - URL Shorter
- +
diff --git a/Source/src/popup.js b/Source/src/popup.js index a388371..1a21f4e 100644 --- a/Source/src/popup.js +++ b/Source/src/popup.js @@ -179,10 +179,14 @@ const toggleViewCount = () => { const img = document.querySelector(".container > img"); const viewCountInput = document.querySelector("#expiry-count"); if(viewCountEnabled){ - img.src = "on-button.png"; + img.src = "eye-solid.svg"; + img.style.width = "20px"; + img.style.height = "20px"; viewCountInput.style.display = "block"; }else{ - img.src = "off-button.png"; + img.src = "eye-slash-solid.svg"; + img.style.width = "20px"; + img.style.height = "20px"; viewCountInput.style.display = "none"; } }