# HG changeset patch # User Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> # Date 1617138936 -7200 # Node ID d82e8dd0a828a47e60c012f253ff4b9836214c97 # Parent 47e4402a866ea9be96405ad50a2ae5e6eefa58df UI Updates diff -r 47e4402a866e -r d82e8dd0a828 LazyBear/Views/Home/Helpers/TopStockItem.swift --- a/LazyBear/Views/Home/Helpers/TopStockItem.swift Tue Mar 30 23:15:19 2021 +0200 +++ b/LazyBear/Views/Home/Helpers/TopStockItem.swift Tue Mar 30 23:15:36 2021 +0200 @@ -8,14 +8,12 @@ import SwiftUI struct TopStockItem: View { - @Environment(\.colorScheme) var colorScheme var body: some View { RoundedRectangle(cornerRadius: 20) - .foregroundColor(colorScheme == .dark ? Color(.secondarySystemBackground) : Color.white) + .foregroundColor(Color(.secondarySystemBackground)) .aspectRatio(0.8, contentMode: .fit) .clipShape(RoundedRectangle(cornerRadius: 20)) - .shadow(color: Color.black.opacity(0.2), radius: 5) .overlay( VStack(alignment: .leading) { Group { @@ -28,10 +26,12 @@ .opacity(0.6) Text("$120.20") + .foregroundColor(.green) .fontWeight(.semibold) .padding(.top) Text("+\(1.22, specifier: "%.2f")%") + .foregroundColor(.green) .fontWeight(.semibold) } @@ -41,6 +41,7 @@ LineView() + .foregroundColor(.green) .padding(.vertical) .clipped()