From c67e080c2a597fd531a19f155dbd049ffb847abb Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 24 Mar 2023 11:45:55 -0600 Subject: [PATCH] Keep select tag icons their original color --- api/js/etemplate/Et2Select/Et2Select.ts | 1 + pixelegg/css/mobile.css | 2 +- pixelegg/css/monochrome.css | 2 +- pixelegg/css/pixelegg.css | 2 +- pixelegg/less/darkmode.less | 2 +- pixelegg/mobile/fw_mobile.css | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index 6f45f5048a..88d24751e5 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -625,6 +625,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) tag.value = item.value; tag.textContent = item.getTextLabel().trim(); tag.class = item.classList.value + " search_tag"; + tag.setAttribute("exportparts", "icon"); if(this.size) { tag.size = this.size; diff --git a/pixelegg/css/mobile.css b/pixelegg/css/mobile.css index 311500ece7..f7722b1be7 100644 --- a/pixelegg/css/mobile.css +++ b/pixelegg/css/mobile.css @@ -88,7 +88,7 @@ html[data-darkmode='1'] #loginMainDiv, html[data-darkmode='1'] .et2_taglist_tags_icon, html[data-darkmode='1'] .fw_avatar_stat, - html[data-darkmode='1'] et2-lavatar[image=""]::part(base), + html[data-darkmode='1'] et2-tag::part(icon), html[data-darkmode='1'] et2-avatar-group, html[data-darkmode='1'] .blueimp-gallery .slide { filter: invert(1) hue-rotate(180deg) !important; diff --git a/pixelegg/css/monochrome.css b/pixelegg/css/monochrome.css index 8abab296d3..5cb30e44db 100644 --- a/pixelegg/css/monochrome.css +++ b/pixelegg/css/monochrome.css @@ -68,7 +68,7 @@ html[data-darkmode='1'] #loginMainDiv, html[data-darkmode='1'] .et2_taglist_tags_icon, html[data-darkmode='1'] .fw_avatar_stat, - html[data-darkmode='1'] et2-lavatar[image=""]::part(base), + html[data-darkmode='1'] et2-tag::part(icon), html[data-darkmode='1'] et2-avatar-group, html[data-darkmode='1'] .blueimp-gallery .slide { filter: invert(1) hue-rotate(180deg) !important; diff --git a/pixelegg/css/pixelegg.css b/pixelegg/css/pixelegg.css index 6aee88239e..3f448187ad 100644 --- a/pixelegg/css/pixelegg.css +++ b/pixelegg/css/pixelegg.css @@ -78,7 +78,7 @@ html[data-darkmode='1'] #loginMainDiv, html[data-darkmode='1'] .et2_taglist_tags_icon, html[data-darkmode='1'] .fw_avatar_stat, - html[data-darkmode='1'] et2-lavatar[image=""]::part(base), + html[data-darkmode='1'] et2-tag::part(icon), html[data-darkmode='1'] et2-avatar-group, html[data-darkmode='1'] .blueimp-gallery .slide { filter: invert(1) hue-rotate(180deg) !important; diff --git a/pixelegg/less/darkmode.less b/pixelegg/less/darkmode.less index c053343f7b..299d830ff2 100644 --- a/pixelegg/less/darkmode.less +++ b/pixelegg/less/darkmode.less @@ -157,4 +157,4 @@ } } -} \ No newline at end of file +} diff --git a/pixelegg/mobile/fw_mobile.css b/pixelegg/mobile/fw_mobile.css index 8c81c95ac9..ff87801cf5 100644 --- a/pixelegg/mobile/fw_mobile.css +++ b/pixelegg/mobile/fw_mobile.css @@ -53,7 +53,7 @@ html[data-darkmode='1'] #loginMainDiv, html[data-darkmode='1'] .et2_taglist_tags_icon, html[data-darkmode='1'] .fw_avatar_stat, - html[data-darkmode='1'] et2-lavatar[image=""]::part(base), + html[data-darkmode='1'] et2-tag::part(icon), html[data-darkmode='1'] et2-avatar-group, html[data-darkmode='1'] .blueimp-gallery .slide { filter: invert(1) hue-rotate(180deg) !important;