diff --git a/tabby-core/src/components/splitTab.component.ts b/tabby-core/src/components/splitTab.component.ts index 07ac3b46..c5622ec4 100644 --- a/tabby-core/src/components/splitTab.component.ts +++ b/tabby-core/src/components/splitTab.component.ts @@ -787,7 +787,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit } get icon (): string|null { - return this.getFocusedTab()?.icon ?? null + return this.getFocusedTab()?.icon ?? this.getAllTabs()[0]?.icon ?? null } set icon (icon: string|null) { @@ -797,7 +797,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit } get color (): string|null { - return this.getFocusedTab()?.color ?? null + return this.getFocusedTab()?.color ?? this.getAllTabs()[0]?.color ?? null } set color (color: string|null) {