From 0a5736067a7614a2c75ecb2b3be0245ddc8b5aba Mon Sep 17 00:00:00 2001 From: Rajkamal <90234628+jsrkamal2002@users.noreply.github.com> Date: Tue, 24 Nov 2026 04:35:46 +0530 Subject: [PATCH] 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 --- tabby-core/src/components/tabHeader.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tabby-core/src/components/tabHeader.component.ts b/tabby-core/src/components/tabHeader.component.ts index 1516b1c24..1fcfb3733 100644 --- a/tabby-core/src/components/tabHeader.component.ts +++ b/tabby-core/src/components/tabHeader.component.ts @@ -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()