From af66c63714938543259e3497cbccf024f2c8cea9 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 bffd28a79a..7db0224106 100644 --- a/pixelegg/css/mobile.css +++ b/pixelegg/css/mobile.css @@ -90,7 +90,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 4a5821003b..ca81cabcbc 100644 --- a/pixelegg/css/monochrome.css +++ b/pixelegg/css/monochrome.css @@ -70,7 +70,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 a270693335..39a755741f 100644 --- a/pixelegg/css/pixelegg.css +++ b/pixelegg/css/pixelegg.css @@ -80,7 +80,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 33eaef81a5..39a22d80c2 100644 --- a/pixelegg/less/darkmode.less +++ b/pixelegg/less/darkmode.less @@ -34,7 +34,7 @@ et2-email-tag::part(prefix), et2-button::part(prefix), *::part(image), img, #blueimp-gallery:not(:fullscreen), #blueimp-gallery ol, iframe, #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_active, #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_scrollarea_outerdiv .egw_fw_ui_sidemenu_entry_content .egw_fw_ui_category_content, - video, #loginMainDiv, .et2_taglist_tags_icon, .fw_avatar_stat, et2-lavatar[image=""]::part(base), et2-avatar-group, + video, #loginMainDiv, .et2_taglist_tags_icon, .fw_avatar_stat, et2-tag::part(icon), et2-avatar-group, .blueimp-gallery .slide { filter: invert(1) hue-rotate(180deg) !important; } diff --git a/pixelegg/mobile/fw_mobile.css b/pixelegg/mobile/fw_mobile.css index 54e51a1150..c36753c932 100644 --- a/pixelegg/mobile/fw_mobile.css +++ b/pixelegg/mobile/fw_mobile.css @@ -55,7 +55,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;