Skip to content

Commit 8bd70c2

Browse files
authored
Merge pull request #2110 from numbersprotocol/fix-tab-bar-icons-load-performance
fix tab bar icons load speed
2 parents dd99dc2 + b791ddc commit 8bd70c2

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/app/app.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export class AppComponent {
114114
'capture-rebrand-arrow-left',
115115
'capture-rebrand-share',
116116
'capture-rebrand-more-horiz',
117+
'capture',
118+
'profile',
119+
'search',
117120
];
118121

119122
for (const iconName of captureRebrandedIconNames) {

src/app/features/home/home.page.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,46 +92,44 @@
9292
<mat-tab>
9393
<ng-template mat-tab-label>
9494
<button mat-icon-button (click)="navigateToExploreTab()">
95-
<ion-icon
96-
src="/assets/images/icons/search.svg"
95+
<mat-icon
96+
svgIcon="search"
9797
class="tab-action-button-icon"
9898
joyrideStep="highlightHomeTab"
9999
title="Home Tab"
100100
text="View created captures"
101-
></ion-icon>
101+
></mat-icon>
102102
</button>
103103
</ng-template>
104104
<app-explore-tab></app-explore-tab>
105105
</mat-tab>
106106
<mat-tab disabled>
107107
<ng-template mat-tab-label>
108108
<button mat-icon-button (click)="captureWithCustomCamera()">
109-
<ion-icon
110-
src="/assets/images/icons/capture.svg"
109+
<mat-icon
110+
svgIcon="capture"
111111
class="tab-action-button-icon"
112112
joyrideStep="highlightCaptureButton"
113113
[title]="t('userGuide.capture')"
114114
[text]="
115115
t('userGuide.createCapturesByTakingPhotosOrRecordingVideos')
116116
"
117-
>
118-
camera_alt
119-
</ion-icon>
117+
></mat-icon>
120118
</button>
121119
</ng-template>
122120
</mat-tab>
123121
<mat-tab>
124122
<ng-template mat-tab-label>
125123
<button mat-icon-button (click)="navigateToInboxTab()">
126-
<ion-icon
127-
src="/assets/images/icons/profile.svg"
124+
<mat-icon
125+
svgIcon="profile"
128126
class="tab-action-button-icon"
129127
joyrideStep="highlightInboxTab"
130128
[title]="t('userGuide.inboxTab')"
131129
[text]="
132130
t('userGuide.visitInboxForPurchasedItemsAndGiftsReceived')
133131
"
134-
></ion-icon>
132+
></mat-icon>
135133
</button>
136134
</ng-template>
137135
<app-capture-tab></app-capture-tab>

0 commit comments

Comments
 (0)