Просмотр исходного кода

change name 'settings' to 'menu', delete unnecessary code for profile tabitem

polscm32 2 лет назад
Родитель
Сommit
85fa7c948e
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 4 - 3
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -786,6 +786,7 @@ extension Home {
                     )
             }
         }
+
 //
 //        @ViewBuilder func tabBarButton(index: Int, systemName: String, label: String) -> some View {
 //            Button(action: {
@@ -872,14 +873,14 @@ extension Home {
                         .tabItem {
                             Label(
                                 "Profile",
-                                systemImage: state.isTempTargetActive || overrideString != nil ? "person.fill" : "person"
+                                systemImage: "person.fill"
                             ) }
 
                     NavigationStack { Settings.RootView(resolver: resolver) }
                         .tabItem {
                             Label(
-                                "Settings",
-                                systemImage: "gear"
+                                "Menu",
+                                systemImage: "text.justify"
                             ) }
                 }
                 .tint(Color.tabBar)