| 40 | }; |
| 41 | |
| 42 | private setIcons(iconSources: string[]) { |
| 43 | const items = this.tabView.items as TabViewItem[]; |
| 44 | let isSystemIcons: boolean; |
| 45 | for (let i = 0; i < items.length; i++) { |
| 46 | const iconSource = iconSources[i % iconSources.length]; |
| 47 | items[i].iconSource = iconSource; |
| 48 | if (iconSource.startsWith(Utils.SYSTEM_PREFIX)) { |
| 49 | isSystemIcons = true; |
| 50 | } |
| 51 | } |
| 52 | if (__APPLE__) { |
| 53 | this.tabView.tabTextFontSize = isSystemIcons ? 11 : null; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | private applyFontFamily(family: string) { |
| 58 | if (!this.tabView || !this.tabView.items) return; |