Преглед на файлове

Fix color for Smoothing tag

Deniz Cengiz преди 1 година
родител
ревизия
a54616cf05
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 0 0
      FreeAPS/Sources/Modules/Home/View/Header/LoopStatusHelpView.swift
  2. 2 2
      FreeAPS/Sources/Views/TagCloudView.swift

+ 0 - 0
FreeAPS/Sources/Modules/Home/View/Header/LoopStatusHelpView.swift


+ 2 - 2
FreeAPS/Sources/Views/TagCloudView.swift

@@ -76,7 +76,7 @@ struct TagCloudView: View {
             case textTag where textTag.contains("SMB Ratio"):
                 return .orange
             case textTag where textTag.contains("Smoothing: On"):
-                return .white
+                return .gray
             default:
                 return .insulin
             }
@@ -91,7 +91,7 @@ struct TagCloudView: View {
                 .font(.subheadline)
                 .fontWeight(.semibold)
                 .background(colorOfTag.opacity(colorScheme == .dark ? 0.15 : 0.25))
-                .foregroundColor(colorOfTag == Color.white ? Color.black : colorOfTag)
+                .foregroundColor(colorOfTag)
                 .clipShape(Capsule())
                 .overlay(
                     Capsule()