Jonas Björkert пре 1 година
родитељ
комит
754e46affe
1 измењених фајлова са 12 додато и 4 уклоњено
  1. 12 4
      LoopFollow/Alarm/AlarmEditing/Components/InfoBanner.swift

+ 12 - 4
LoopFollow/Alarm/AlarmEditing/Components/InfoBanner.swift

@@ -10,9 +10,14 @@ import SwiftUI
 
 struct InfoBanner: View {
     let text: String
+
     var systemImage: String = "info.circle.fill"
-    var iconColour: Color = .accentColor
-    var tint: Color?      = Color.blue.opacity(0.07)
+
+    var iconColour: Color  = .accentColor
+
+    var tint: Color        = Color.blue.opacity(0.20)
+
+    var border: Color      = Color.blue.opacity(0.40)
 
     var body: some View {
         HStack(alignment: .top, spacing: 12) {
@@ -28,8 +33,11 @@ struct InfoBanner: View {
         .frame(maxWidth: .infinity, alignment: .leading)
         .background(
             RoundedRectangle(cornerRadius: 12, style: .continuous)
-                .fill(tint ?? .clear)
-                .background(.thinMaterial)
+                .fill(tint)
+        )
+        .overlay(
+            RoundedRectangle(cornerRadius: 12, style: .continuous)
+                .stroke(border, lineWidth: 1)
         )
         .listRowInsets(EdgeInsets())
     }