MCPcopy Create free account
hub / github.com/benfry/processing4 / getStyle

Method getStyle

app/src/processing/app/ui/Theme.java:194–201  ·  view source on GitHub ↗
(String attribute)

Source from the content-addressed store, hash-verified

192
193
194 static public SyntaxStyle getStyle(String attribute) {
195 //String str = Preferences.get("editor.token." + attribute + ".style");
196 String str = theme.get("editor.token." + attribute + ".style");
197 if (str == null) {
198 throw new IllegalArgumentException("No style found for " + attribute);
199 }
200 return SyntaxStyle.fromString(str);
201 }
202
203
204 static public Image makeGradient(String attribute, int wide, int high) {

Callers 3

updateThemeMethod · 0.95
getMonoFontListMethod · 0.45
nextPageMethod · 0.45

Calls 2

fromStringMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected