| 112 | } |
| 113 | |
| 114 | UIIcon UITheme::getFileIcon(const std::string& filename) { |
| 115 | if (filename.back() == '/') { |
| 116 | return Folder; |
| 117 | } |
| 118 | if (FsHelpers::hasEpubExtension(filename) || FsHelpers::hasXtcExtension(filename)) { |
| 119 | return Book; |
| 120 | } |
| 121 | if (FsHelpers::hasTxtExtension(filename) || FsHelpers::hasMarkdownExtension(filename)) { |
| 122 | return Text; |
| 123 | } |
| 124 | if (FsHelpers::hasBmpExtension(filename)) { |
| 125 | return Image; |
| 126 | } |
| 127 | return File; |
| 128 | } |
| 129 | |
| 130 | int UITheme::getStatusBarHeight() { |
| 131 | const ThemeMetrics& metrics = UITheme::getInstance().getMetrics(); |
nothing calls this directly
no test coverage detected