feat(core): option to tint the active tab with its color (#11953)

* feat(core): option to tint the active tab with its color

* remove option

---------

Co-authored-by: Eugene <inbox@null.page>
This commit is contained in:
RajkamalandEugene authored and GitHub committed 2026-11-24 00:05:46 +01:00
1 parent b2d964720d
commit 0a5736067a
1 file changed
+7
@@ -93,6 +93,13 @@ export class TabHeaderComponent extends BaseComponent {
return this.config.store.appearance.flexTabs
}
@HostBinding('style.background-color') get tintedActiveTabBackground (): string|null {
if (!this.active || !this.tab.color) {
return null
}
return `color-mix(in srgb, ${this.tab.color} 20%, var(--body-bg))`
}
@HostListener('dblclick', ['$event']) onDoubleClick ($event: MouseEvent): void {
this.app.renameTab(this.tab)
$event.stopPropagation()