Przeglądaj źródła

Change position of TT and bolus icons in bottom panel

dnzxy 2 lat temu
rodzic
commit
e5916854d0
1 zmienionych plików z 11 dodań i 11 usunięć
  1. 11 11
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 11 - 11
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -578,6 +578,17 @@ extension Home {
                         }
                     }.buttonStyle(.borderless)
                     Spacer()
+                    Button { state.showModal(for: .addTempTarget) }
+                    label: {
+                        Image("target")
+                            .renderingMode(.template)
+                            .resizable()
+                            .frame(width: 24, height: 24)
+                            .padding(8)
+                    }
+                    .foregroundColor(colorIcon)
+                    .buttonStyle(.borderless)
+                    Spacer()
                     Button {
                         state.showModal(for: .bolus(
                             waitForSuggestion: true,
@@ -607,17 +618,6 @@ extension Home {
                         .buttonStyle(.borderless)
                         Spacer()
                     }
-                    Button { state.showModal(for: .addTempTarget) }
-                    label: {
-                        Image("target")
-                            .renderingMode(.template)
-                            .resizable()
-                            .frame(width: 24, height: 24)
-                            .padding(8)
-                    }
-                    .foregroundColor(colorIcon)
-                    .buttonStyle(.borderless)
-                    Spacer()
 
                     // MARK: CANCEL OF PROFILE HAS TO BE IMPLEMENTED