Skip to content

Commit

Permalink
chore: Add font and mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu-dgl committed Feb 25, 2025
1 parent a8539b7 commit 81ae25e
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
15 changes: 15 additions & 0 deletions kDrive/Resources/Assets.xcassets/file-font.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Kdrive Icon Font.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions kDrive/Resources/Assets.xcassets/file-mail.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Kdrive Icon.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions kDriveCore/Data/Models/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public enum ConvertedType: String, CaseIterable {
case font
case form
case image
case mail
case pdf
case presentation
case spreadsheet
Expand All @@ -55,11 +56,13 @@ public enum ConvertedType: String, CaseIterable {
case .folder:
return KDriveResourcesAsset.folderFilled.image
case .font:
return KDriveResourcesAsset.fileDefault.image
return KDriveResourcesAsset.fileFont.image
case .form:
return KDriveResourcesAsset.fileForm.image
case .image:
return KDriveResourcesAsset.fileImage.image
case .mail:
return KDriveResourcesAsset.fileMail.image
case .pdf:
return KDriveResourcesAsset.filePdf.image
case .presentation:
Expand Down Expand Up @@ -110,7 +113,7 @@ public enum ConvertedType: String, CaseIterable {
return KDriveResourcesStrings.Localizable.allOfficeGrids
case .text:
return KDriveResourcesStrings.Localizable.allOfficeDocs
case .unknown, .url, .font:
case .unknown, .url, .font, .mail:
return ""
case .video:
return KDriveResourcesStrings.Localizable.allVideo
Expand All @@ -135,6 +138,8 @@ public enum ConvertedType: String, CaseIterable {
return .data
case .image:
return .image
case .mail:
return .message
case .pdf:
return .pdf
case .presentation:
Expand Down

0 comments on commit 81ae25e

Please sign in to comment.