From 1b7bc84b6562fd2cc03c9be5d62633c6d5ec0496 Mon Sep 17 00:00:00 2001 From: Maciej Gomola Date: Fri, 18 Oct 2024 08:31:29 +0200 Subject: [PATCH] Fix settings button color changing --- static/assets/css/style.css | 8 ++++++++ static/assets/img/settings.svg | 1 - static/assets/js/calculator-logic.js | 2 +- static/index.html | 4 +++- 4 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 static/assets/img/settings.svg diff --git a/static/assets/css/style.css b/static/assets/css/style.css index 70af150..001e138 100644 --- a/static/assets/css/style.css +++ b/static/assets/css/style.css @@ -20,6 +20,14 @@ body { overflow: hidden; } +.material-symbols-outlined { + font-variation-settings: + 'FILL' 1, + 'wght' 400, + 'GRAD' 0, + 'opsz' 24 + } + .calculator button { font-family: "Montserrat", sans-serif; font-optical-sizing: auto; diff --git a/static/assets/img/settings.svg b/static/assets/img/settings.svg deleted file mode 100644 index 551161c..0000000 --- a/static/assets/img/settings.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/assets/js/calculator-logic.js b/static/assets/js/calculator-logic.js index b4f58a7..ca10110 100644 --- a/static/assets/js/calculator-logic.js +++ b/static/assets/js/calculator-logic.js @@ -15,7 +15,7 @@ buttons.forEach(button => { resetCalculator(); } else if (value === 'H') { toggleHistory(); - } else if (value === '') { + } else if (value === 'settings') { toggleSettings(); } else if (value === '=') { calculateResult(); diff --git a/static/index.html b/static/index.html index a50670f..08fbf34 100644 --- a/static/index.html +++ b/static/index.html @@ -10,6 +10,8 @@ + @@ -45,7 +47,7 @@ - +