Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/CurrencyItem.swift @ 441:417148200aaf
Change background color and minor UI updates
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 20 Jun 2021 19:52:21 +0200 |
parents | 4effac4733b0 |
children | c6913f0ce46e |
comparison
equal
deleted
inserted
replaced
440:01fa77358b82 | 441:417148200aaf |
---|---|
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct CurrencyItem: View { | 10 struct CurrencyItem: View { |
11 var currency: CurrencyModel | 11 var currency: CurrencyModel |
12 @Environment(\.colorScheme) private var colorScheme | |
12 | 13 |
13 var body: some View { | 14 var body: some View { |
14 RoundedRectangle(cornerRadius: 8) | 15 RoundedRectangle(cornerRadius: 8) |
15 .foregroundColor(Color(.secondarySystemBackground)) | 16 .foregroundColor(Color("customSecondaryBackground")) |
17 .if(colorScheme == .light) { content in | |
18 content.shadow(color: Color(.systemGray).opacity(0.25), radius: 10, x: 0.0, y: 0.0) | |
19 } | |
16 .frame(width: 330, height: 50) | 20 .frame(width: 330, height: 50) |
17 .overlay( | 21 .overlay( |
18 HStack { | 22 HStack { |
19 Color(.systemBlue) | 23 Color(.systemBlue) |
20 .frame(width: 40) | 24 .frame(width: 40) |