Browse Source

add Lockscreen widget

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
5bec1fab88

+ 2 - 2
Widget/Lockscreen/LockscreenWidgetView.swift

@@ -48,10 +48,10 @@ struct LockscreenWidgetView: View {
                         .scaledToFill()
                         .frame(width: 12, height: 12)
                     Text(NSLocalizedString("_recent_activity_", comment: ""))
-                        .font(.system(size: 11)).bold()
+                        .font(.system(size: 13)).bold()
                 }
                 Text(entry.activity)
-                    .font(.system(size: 9))
+                    .font(.system(size: 10))
                     .fontWeight(.light)
             }.widgetURL(entry.link)
         default:

+ 1 - 1
Widget/Widget.swift

@@ -84,7 +84,7 @@ struct LockscreenWidget: Widget {
                 LockscreenWidgetView(entry: entry)
             }
             .supportedFamilies([.accessoryRectangular, .accessoryCircular])
-            .configurationDisplayName("Lockscreen")
+            .configurationDisplayName(NSLocalizedString("_title_lockscreenwidget_", comment: ""))
             .description(NSLocalizedString("_description_lockscreenwidget_", comment: ""))
         } else {
             return EmptyWidgetConfiguration()

+ 2 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -892,6 +892,8 @@
 "_widget_available_nc25_"   = "Widget only available starting with Nextcloud 25";
 "_keep_running_"            = "Keep the app running for a better user experience";
 "_recent_activity_"         = "Recent activity";
+"_title_lockscreenwidget_"  = "Status";
+"_description_lockscreenwidget_" = "Keep an eye on available space and recent activity";
 
 // Video
 "_select_trace_"            = "Select the trace";