MCPcopy
hub / github.com/arduino/Arduino / getThemeFile

Method getThemeFile

app/src/processing/app/Theme.java:670–685  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

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) {

Callers 1

getThemeResourceMethod · 0.95

Calls 2

getSketchbookFolderMethod · 0.95
existsMethod · 0.45

Tested by

no test coverage detected