aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/FilesView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/FilesView.swift')
-rw-r--r--Hotline/macOS/FilesView.swift20
1 files changed, 18 insertions, 2 deletions
diff --git a/Hotline/macOS/FilesView.swift b/Hotline/macOS/FilesView.swift
index 77db291..9624563 100644
--- a/Hotline/macOS/FilesView.swift
+++ b/Hotline/macOS/FilesView.swift
@@ -41,9 +41,25 @@ struct FileView: View {
.frame(width: 16, height: 16)
.opacity(0.5)
}
+ else if file.isAdminDropboxFolder {
+ Image("Admin Drop Box")
+ .resizable()
+ .scaledToFit()
+ .frame(width: 16, height: 16)
+ }
+ else if file.isDropboxFolder {
+ Image("Drop Box")
+ .resizable()
+ .scaledToFit()
+ .frame(width: 16, height: 16)
+ }
else if file.isFolder {
- FolderIconView()
+ Image("Folder")
+ .resizable()
+ .scaledToFit()
.frame(width: 16, height: 16)
+// FolderIconView(dropbox: file.isUploadFolder)
+// .frame(width: 16, height: 16)
}
else {
FileIconView(filename: file.name)
@@ -64,7 +80,7 @@ struct FileView: View {
Spacer()
if !file.isUnavailable {
if file.isFolder {
- Text("^[\(file.fileSize) \("file")](inflect: true)")
+ Text(file.fileSize == 0 ? "Empty" : "^[\(file.fileSize) \("file")](inflect: true)")
.foregroundStyle(.secondary)
.lineLimit(1)
.padding(.trailing, 6)