소스 검색

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()