Procházet zdrojové kódy

visual changes to sticky save button

Andreas Stokholm před 1 rokem
rodič
revize
750d341209

+ 5 - 1
FreeAPS/Sources/Modules/BasalProfileEditor/View/BasalProfileEditorRootView.swift

@@ -92,7 +92,11 @@ extension BasalProfileEditor {
 
                 Rectangle()
                     .frame(width: UIScreen.main.bounds.width, height: 65)
-                    .foregroundStyle(Color.chart)
+                    .foregroundStyle(colorScheme == .dark ? Color.bgDarkerDarkBlue : Color.white)
+                    .background(.thinMaterial)
+                    .opacity(0.8)
+                    .clipShape(Rectangle())
+
                 Group {
                     HStack {
                         Button {

+ 5 - 1
FreeAPS/Sources/Modules/CarbRatioEditor/View/CarbRatioEditorRootView.swift

@@ -44,7 +44,11 @@ extension CarbRatioEditor {
 
                 Rectangle()
                     .frame(width: UIScreen.main.bounds.width, height: 65)
-                    .foregroundStyle(Color.chart)
+                    .foregroundStyle(colorScheme == .dark ? Color.bgDarkerDarkBlue : Color.white)
+                    .background(.thinMaterial)
+                    .opacity(0.8)
+                    .clipShape(Rectangle())
+
                 Group {
                     HStack {
                         HStack {

+ 5 - 1
FreeAPS/Sources/Modules/ISFEditor/View/ISFEditorRootView.swift

@@ -45,7 +45,11 @@ extension ISFEditor {
 
                 Rectangle()
                     .frame(width: UIScreen.main.bounds.width, height: 65)
-                    .foregroundStyle(Color.chart)
+                    .foregroundStyle(colorScheme == .dark ? Color.bgDarkerDarkBlue : Color.white)
+                    .background(.thinMaterial)
+                    .opacity(0.8)
+                    .clipShape(Rectangle())
+
                 Group {
                     HStack {
                         HStack {

+ 5 - 1
FreeAPS/Sources/Modules/TargetsEditor/View/TargetsEditorRootView.swift

@@ -38,7 +38,11 @@ extension TargetsEditor {
 
                 Rectangle()
                     .frame(width: UIScreen.main.bounds.width, height: 65)
-                    .foregroundStyle(Color.chart)
+                    .foregroundStyle(colorScheme == .dark ? Color.bgDarkerDarkBlue : Color.white)
+                    .background(.thinMaterial)
+                    .opacity(0.8)
+                    .clipShape(Rectangle())
+
                 Group {
                     HStack {
                         HStack {