瀏覽代碼

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父節點
當前提交
047d187d67
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      Widget/Nextcloud/NextcloudWidgetView.swift
  2. 1 1
      Widget/Toolbar/ToolbarWidgetView.swift

+ 1 - 0
Widget/Nextcloud/NextcloudWidgetView.swift

@@ -166,6 +166,7 @@ struct NextcloudWidgetView: View {
                     Text(entry.footerText)
                         .font(.caption2)
                         .padding(.trailing, 13.0)
+                        .foregroundColor(entry.isPlaceholder ? placeholderColor : brandColor)
                 }
                 .frame(maxWidth: geo.size.width - 5, maxHeight: geo.size.height - 2, alignment: .bottomTrailing)
             }

+ 1 - 1
Widget/Toolbar/ToolbarWidgetView.swift

@@ -102,8 +102,8 @@ struct ToolbarWidgetView: View {
 
                     Text(entry.footerText)
                         .font(.caption2)
-                        .foregroundColor(Color(NCBrandColor.shared.brand))
                         .padding(.trailing, 13.0)
+                        .foregroundColor(entry.isPlaceholder ? Color(white: 0.2) : Color(NCBrandColor.shared.brand))
                 }
                 .frame(maxWidth: geo.size.width - 5, maxHeight: geo.size.height - 2, alignment: .bottomTrailing)
             }.background(ContainerRelativeShape().fill(Color(.black)))