ent/profiles/assets/system-theme-background.svg"; } else { let contentColor; if (!this.theme.contentColor) { let styles = window.getComputedStyle(document.body); contentColor = styles.getPropertyValue("background-color"); } // For other themes, use the standard SVG with dynamic colors this.backgroundImg.src = "chrome://browser/content/profiles/assets/theme-selector-background.svg"; this.backgroundImg.style.fill = this.theme.chromeColor; this.backgroundImg.style.stroke = this.theme.toolbarColor; this.imgHolder.style.backgroundColor = this.theme.contentColor ?? contentColor; } } updated() { super.updated(); this.updateThemeImage(); } render() { if (!this.theme) { return null; } // We're using the theme's `dataL10nId` to serve as a // unique ID to use with `aria-labelledby`. return html`
${this.theme.name}
`; } } customElements.define("profiles-theme-card", ProfilesThemeCard); PK