Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
cc40f29f16
1 changed files with 7 additions and 5 deletions
  1. 7 5
      Widget/Dashboard/DashboardWidgetView.swift

+ 7 - 5
Widget/Dashboard/DashboardWidgetView.swift

@@ -64,20 +64,22 @@ struct DashboardWidgetView: View {
                                 HStack {
                                     
                                     let subTitleColor = Color(white: 0.5)
-                                    let imageSize:CGFloat = 35
-                                    
+
                                     if entry.tableDashboard?.itemIconsRound ?? false {
                                         Image(uiImage: element.icon)
+                                            .renderingMode(.template)
                                             .resizable()
                                             .scaledToFill()
-                                            .frame(width: imageSize, height: imageSize)
+                                            .frame(width: 20, height: 20)
+                                            .foregroundColor(.white)
+                                            .padding(7)
+                                            .background(Color(.systemGray4))
                                             .clipShape(Circle())
-                                            .overlay(Circle().stroke(Color.white, lineWidth: 1))
                                     } else {
                                         Image(uiImage: element.icon)
                                             .resizable()
                                             .scaledToFill()
-                                            .frame(width: imageSize, height: imageSize)
+                                            .frame(width: 35, height: 35)
                                             .clipped()
                                             .cornerRadius(5)
                                     }