Mercurial > public > lazybear
comparison LazyBear/Views/Company/Helpers/CustomRectangleBox.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 | aa1f4b614b2b |
children |
comparison
equal
deleted
inserted
replaced
440:01fa77358b82 | 441:417148200aaf |
---|---|
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct CustomRectangleBox: View { | 10 struct CustomRectangleBox: View { |
11 @Environment(\.colorScheme) private var colorScheme | |
12 | |
11 var body: some View { | 13 var body: some View { |
12 RoundedRectangle(cornerRadius: 15) | 14 RoundedRectangle(cornerRadius: 15) |
13 .foregroundColor(.white) | 15 .foregroundColor(Color("customSecondaryBackground")) |
14 .shadow(color: Color(.systemGray).opacity(0.25), radius: 10, x: 0.0, y: 0.0) | 16 .if(colorScheme == .light) { content in |
17 content.shadow(color: Color(.systemGray).opacity(0.25), radius: 10, x: 0.0, y: 0.0) | |
18 } | |
19 | |
15 } | 20 } |
16 } | 21 } |
17 | 22 |
18 struct CustomRectangleBox_Previews: PreviewProvider { | 23 struct CustomRectangleBox_Previews: PreviewProvider { |
19 static var previews: some View { | 24 static var previews: some View { |