Fix wrongly filtered avatars in darkmode, happens for calOwner and regular account-selector widgets

This commit is contained in:
hadi 2023-12-19 13:22:06 +01:00
parent f6adf22591
commit 37667df880
7 changed files with 6 additions and 9 deletions

View File

@ -146,7 +146,7 @@ export class Et2SelectAccount extends SelectAccountMixin(Et2StaticSelectMixin(Et
let style = getComputedStyle(this);
return html`
<et2-lavatar slot="prefix" part="icon" .size=${style.getPropertyValue("--icon-width")}
<et2-lavatar slot="prefix" part="icon" exportparts="image" .size=${style.getPropertyValue("--icon-width")}
lname=${option.lname || nothing}
fname=${option.fname || nothing}
image=${option.icon || nothing}

View File

@ -73,7 +73,7 @@ export class CalendarOwner extends Et2StaticSelectMixin(Et2Select)
return html`
<sl-option
part="option"
exportparts="prefix:tag__prefix, suffix:tag__suffix"
exportparts="prefix:tag__prefix, suffix:tag__suffix, image"
value="${value}"
title="${!option.title || this.noLang ? option.title : this.egw().lang(option.title)}"
class=${classMap({
@ -183,7 +183,7 @@ export class CalendarOwner extends Et2StaticSelectMixin(Et2Select)
// lavatar uses a size property, not a CSS variable
let style = getComputedStyle(this);
return html`
<et2-lavatar slot="prefix" part="icon" .size=${style.getPropertyValue("--icon-width")}
<et2-lavatar slot="prefix" part="icon" exportparts="image" .size=${style.getPropertyValue("--icon-width")}
lname=${option.lname || nothing}
fname=${option.fname || nothing}
image=${option.icon || nothing}

View File

@ -84,7 +84,6 @@
html[data-darkmode='1'] #blueimp-gallery ol,
html[data-darkmode='1'] et2-select-account::part(icon),
html[data-darkmode='1'] et2-select-email::part(icon),
html[data-darkmode='1'] et2-calendar-owner::part(icon),
html[data-darkmode='1'] sl-menu-item [slot="prefix"],
html[data-darkmode='1'] iframe,
html[data-darkmode='1'] et2-lavatar[image=""]::part(base),

View File

@ -64,7 +64,6 @@
html[data-darkmode='1'] #blueimp-gallery ol,
html[data-darkmode='1'] et2-select-account::part(icon),
html[data-darkmode='1'] et2-select-email::part(icon),
html[data-darkmode='1'] et2-calendar-owner::part(icon),
html[data-darkmode='1'] sl-menu-item [slot="prefix"],
html[data-darkmode='1'] iframe,
html[data-darkmode='1'] et2-lavatar[image=""]::part(base),
@ -6590,4 +6589,4 @@ span.egw_tutorial_title {
/*@import "../less/layout_raster.less";*/
/*@import "../less/layout_nextmatch.less";*/
/*@import "../less/layout_footer.less";*/
/*@import "../less/layout_dialog.less";*/
/*@import "../less/layout_dialog.less";*/

View File

@ -74,7 +74,6 @@
html[data-darkmode='1'] #blueimp-gallery ol,
html[data-darkmode='1'] et2-select-account::part(icon),
html[data-darkmode='1'] et2-select-email::part(icon),
html[data-darkmode='1'] et2-calendar-owner::part(icon),
html[data-darkmode='1'] sl-menu-item [slot="prefix"],
html[data-darkmode='1'] iframe,
html[data-darkmode='1'] et2-lavatar[image=""]::part(base),

View File

@ -32,7 +32,7 @@
sl-menu-item::part(prefix), et2-select-country::part(prefix),
et2-button::part(prefix), *::part(image), img, #blueimp-gallery:not(:fullscreen), #blueimp-gallery ol,
et2-select-account::part(icon), et2-select-email::part(icon), et2-calendar-owner::part(icon), sl-menu-item [slot="prefix"],
et2-select-account::part(icon), et2-select-email::part(icon), sl-menu-item [slot="prefix"],
iframe, et2-lavatar[image=""]::part(base), et2-avatar[id="_cropper_image"],
video, #loginMainDiv, .et2_taglist_tags_icon, .fw_avatar_stat, et2-avatar-group,
.blueimp-gallery .slide {

View File

@ -49,7 +49,6 @@
html[data-darkmode='1'] #blueimp-gallery ol,
html[data-darkmode='1'] et2-select-account::part(icon),
html[data-darkmode='1'] et2-select-email::part(icon),
html[data-darkmode='1'] et2-calendar-owner::part(icon),
html[data-darkmode='1'] sl-menu-item [slot="prefix"],
html[data-darkmode='1'] iframe,
html[data-darkmode='1'] et2-lavatar[image=""]::part(base),
@ -9501,3 +9500,4 @@ table.egwGridView_grid img.et2_appicon {
border-radius: 0;
}
}
/*# sourceMappingURL=fw_mobile.css.map */