Browse Source

Color fix

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
f7149169a1
1 changed files with 3 additions and 6 deletions
  1. 3 6
      Widget/Files/FilesWidgetView.swift

+ 3 - 6
Widget/Files/FilesWidgetView.swift

@@ -55,14 +55,11 @@ struct FilesWidgetView: View {
                             Link(destination: element.url) {
                                 
                                 HStack {
-                                    
-                                    let subTitleColor = Color(white: 0.5)
-                                    let imageSize:CGFloat = 35
-                                    
+
                                     Image(uiImage: element.image)
                                         .resizable()
                                         .scaledToFill()
-                                        .frame(width: imageSize, height: imageSize)
+                                        .frame(width: 35, height: 35)
                                         .clipped()
                                         .cornerRadius(5)
                                     
@@ -74,7 +71,7 @@ struct FilesWidgetView: View {
                                         
                                         Text(element.subTitle)
                                             .font(.system(size: CGFloat(10)))
-                                            .foregroundColor(subTitleColor)
+                                            .foregroundColor(Color(.systemGray))
                                     }
                                     Spacer()
                                 }