(String name)
| 668 | } |
| 669 | |
| 670 | static private File getThemeFile(String name) { |
| 671 | File sketchBookThemeFolder = new File(BaseNoGui.getSketchbookFolder(), THEME_DIR); |
| 672 | File themeFile = new File(sketchBookThemeFolder, name); |
| 673 | if (themeFile.exists()) { |
| 674 | return themeFile; |
| 675 | } |
| 676 | |
| 677 | if (name.startsWith(THEME_DIR)) { |
| 678 | themeFile = new File(sketchBookThemeFolder, name.substring(THEME_DIR.length())); |
| 679 | if (themeFile.exists()) { |
| 680 | return themeFile; |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | return null; |
| 685 | } |
| 686 | |
| 687 | static private ZipEntry getThemeZipEntry(String name) { |
| 688 | if (zipTheme == null) { |
no test coverage detected