diff --git a/src/images/close-button.svg b/src/images/close-button.svg new file mode 100644 index 00000000..8aea3464 --- /dev/null +++ b/src/images/close-button.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/images/close-white.png b/src/images/close-white.png deleted file mode 100644 index 07c0f4e3..00000000 Binary files a/src/images/close-white.png and /dev/null differ diff --git a/src/scss/header.scss b/src/scss/header.scss index a5adab1b..879fa60b 100644 --- a/src/scss/header.scss +++ b/src/scss/header.scss @@ -12,19 +12,20 @@ @include themify($themes) { background-color: themed("headerBackgroundColor"); border-bottom-color: themed("headerBorderColor"); - } - app-search { - grid-column-start: 2; - width: 100%; + app-search { + grid-column-start: 2; + width: 100%; - [type="search"]::-webkit-search-cancel-button { - -webkit-appearance: none; - appearance: none; - height: 15px; - width: 15px; - background-repeat: no-repeat; - background-image: url("../images/close-white.png"); + [type="search"]::-webkit-search-cancel-button { + -webkit-appearance: none; + appearance: none; + height: 15px; + width: 15px; + background-repeat: no-repeat; + background-image: url("../images/close-button.svg"); + filter: brightness(themed("svgButtonBrightness")); + } } } diff --git a/src/scss/variables.scss b/src/scss/variables.scss index 8e95667c..8a7a1c6a 100644 --- a/src/scss/variables.scss +++ b/src/scss/variables.scss @@ -93,6 +93,7 @@ $themes: ( accountSwitcherBackgroundColor: $background-color, accountSwitcherTextColor: #ffffff, svgSuffix: "-light.svg", + svgButtonBrightness: 100, ), dark: ( textColor: #ffffff, @@ -146,6 +147,7 @@ $themes: ( accountSwitcherBackgroundColor: #2f2f2f, accountSwitcherTextColor: #ffffff, svgSuffix: "-dark.svg", + svgButtonBrightness: 100, ), nord: ( textColor: $nord5, @@ -199,6 +201,7 @@ $themes: ( accountSwitcherBackgroundColor: $nord0, accountSwitcherTextColor: $nord5, svgSuffix: "-dark.svg", + svgButtonBrightness: 0.5, ), );