RequiredIcons returns the list of icon names from required_icons.txt. This is the single source of truth for which icons should be embedded.
()
| 21 | // RequiredIcons returns the list of icon names from required_icons.txt. |
| 22 | // This is the single source of truth for which icons should be embedded. |
| 23 | func RequiredIcons() []string { |
| 24 | var icons []string |
| 25 | scanner := bufio.NewScanner(strings.NewReader(requiredIconsTxt)) |
| 26 | for scanner.Scan() { |
| 27 | line := strings.TrimSpace(scanner.Text()) |
| 28 | // Skip empty lines and comments |
| 29 | if line == "" || strings.HasPrefix(line, "#") { |
| 30 | continue |
| 31 | } |
| 32 | icons = append(icons, line) |
| 33 | } |
| 34 | return icons |
| 35 | } |
| 36 | |
| 37 | // Theme represents the color theme of an icon. |
| 38 | type Theme string |
no outgoing calls