changeset 332:d82e8dd0a828

UI Updates
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Tue, 30 Mar 2021 23:15:36 +0200
parents 47e4402a866e
children 41c9252fc76c
files LazyBear/Views/Home/Helpers/TopStockItem.swift
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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()