Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-b-m committed Nov 3, 2024
1 parent d7ad129 commit 88d0bef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
20 changes: 0 additions & 20 deletions FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,24 +250,4 @@ struct PumpView: View {
}
}
}

private func podInsulinAmount(portion: Double) -> some View {
ZStack {
UIImage(imageLiteralResourceName: "pod_reservoir")
.fillImageUpToPortion(color: .insulin.opacity(0.8), portion: portion)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: IAPSconfig.iconSize * 1.15, height: IAPSconfig.iconSize * 1.6)
.symbolRenderingMode(.palette)
.offset(x: 0, y: -5)
.shadow(radius: 1, x: 2, y: 2)
.foregroundStyle(.white)
.overlay {
portion <= 0.3 ?
Text("50+").foregroundStyle(.white).font(.system(size: 6))
.offset(y: -4)
: nil
}
}
}
}
13 changes: 0 additions & 13 deletions FreeAPS/Sources/Views/ViewModifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,6 @@ struct ClearButton: ViewModifier {
}
}

struct CarveOrDrop: ViewModifier {
let carve: Bool
func body(content: Content) -> some View {
if carve {
return content
.foregroundStyle(.shadow(.inner(color: .black, radius: 0.01, y: 1)))
} else {
return content
.foregroundStyle(.shadow(.drop(color: .black, radius: 0.02, y: 1)))
}
}
}

extension View {
func roundedBackground() -> some View {
modifier(RoundedBackground())
Expand Down

0 comments on commit 88d0bef

Please sign in to comment.