Download File Option (#80)

This adds to the context menu to give the ability to download a file. It
also fixes a couple bugs and improves some formatting of the directory
view.
This commit is contained in:
Sylvie Crowe
2024-06-26 12:14:59 -07:00
committed by GitHub
parent 566f6764c2
commit 0a8c97858c
6 changed files with 42 additions and 6 deletions
+3 -2
View File
@@ -39,7 +39,8 @@ type DateTimeFormatConfigType struct {
}
type MimeTypeConfigType struct {
Icon string `json:"icon"`
Icon string `json:"icon"`
Color string `json:"color"`
}
type BlockHeaderOpts struct {
@@ -67,7 +68,7 @@ func getSettingsConfigDefaults() SettingsConfigType {
"audio": {Icon: "file-audio"},
"application/pdf": {Icon: "file-pdf"},
"application/json": {Icon: "file-lines"},
"directory": {Icon: "folder"},
"directory": {Icon: "folder", Color: "#2e62d2"},
"font": {Icon: "book-font"},
"image": {Icon: "file-image"},
"text": {Icon: "file-lines"},