|
1 | 1 | package icon |
2 | 2 |
|
| 3 | +// InitIcon initializes the icon configuration for the application. |
| 4 | +// It sets up different icons based on whether nerd fonts are enabled and configures directory icon colors. |
| 5 | +// |
| 6 | +// Parameters: |
| 7 | +// - nerdfont: boolean flag to determine if nerd fonts should be used |
| 8 | +// When false, uses simple ASCII characters for icons |
| 9 | +// When true, uses nerd font icons (default behavior) |
| 10 | +// - directoryIconColor: string representing the color for directory icons |
| 11 | +// If empty, defaults to "NONE" (dark yellowish) |
| 12 | +// |
| 13 | +// The function configures various icons for: |
| 14 | +// - System directories (Home, Download, Documents, etc.) |
| 15 | +// - File operations (Compress, Extract, Copy, Cut, Delete) |
| 16 | +// - UI elements (Cursor, Browser, Select, etc.) |
| 17 | +// - Status indicators (Error, Warn, Done, InOperation) |
| 18 | +// - Navigation and sorting (Directory, Search, SortAsc, SortDesc) |
3 | 19 | func InitIcon(nerdfont bool, directoryIconColor string) { |
4 | 20 | // Make sure that these alternatives are ASCII characters only. |
5 | 21 | // Dont place any special unicode characters here. |
6 | 22 | if !nerdfont { |
7 | | - // Do we need this to be empty ? Maybe it should just be normal space ? |
| 23 | + // When nerdfont is disabled, we use simple ASCII characters |
| 24 | + // Space is set to empty string because we don't need special spacing |
| 25 | + // for ASCII characters, unlike nerd fonts which often need proper spacing |
| 26 | + // to display correctly |
8 | 27 | Space = "" |
9 | 28 | SuperfileIcon = "" |
10 | 29 |
|
@@ -36,6 +55,7 @@ func InitIcon(nerdfont bool, directoryIconColor string) { |
36 | 55 | Search = "" |
37 | 56 | SortAsc = "^" |
38 | 57 | SortDesc = "v" |
| 58 | + Terminal = "" |
39 | 59 | Pinned = "" |
40 | 60 | Disk = "" |
41 | 61 | } |
|
0 commit comments