Bläddra i källkod

Improved Widget

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 år sedan
förälder
incheckning
70c1a4851b
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Widget/Dashboard/DashboardWidgetView.swift

+ 2 - 2
Widget/Dashboard/DashboardWidgetView.swift

@@ -121,7 +121,7 @@ struct DashboardWidgetView: View {
                                     .background(brandColor)
                                     .background(brandColor)
                                     .foregroundColor(brandTextColor)
                                     .foregroundColor(brandTextColor)
                                     .border(brandColor, width: 1)
                                     .border(brandColor, width: 1)
-                                    .cornerRadius(17)
+                                    .cornerRadius(18)
                             })
                             })
                         }
                         }
                     }
                     }
@@ -152,7 +152,7 @@ struct DashboardWidgetView: View {
 
 
 struct DashboardWidget_Previews: PreviewProvider {
 struct DashboardWidget_Previews: PreviewProvider {
     static var previews: some View {
     static var previews: some View {
-        let datas = Array(dashboardDatasTest[0...5])
+        let datas = Array(dashboardDatasTest[0...4])
         let title = "Dashboard"
         let title = "Dashboard"
         let titleImage = UIImage(named: "widget")!
         let titleImage = UIImage(named: "widget")!
         let entry = DashboardDataEntry(date: Date(), datas: datas, tableDashboard: nil, tableButton: nil, isPlaceholder: false, titleImage: titleImage, title: title, footerImage: "checkmark.icloud", footerText: "Nextcloud widget")
         let entry = DashboardDataEntry(date: Date(), datas: datas, tableDashboard: nil, tableButton: nil, isPlaceholder: false, titleImage: titleImage, title: title, footerImage: "checkmark.icloud", footerText: "Nextcloud widget")