MCPcopy Create free account
hub / github.com/google/gapid / loadColor

Method loadColor

gapic/src/main/com/google/gapid/widgets/Theme.java:395–402  ·  view source on GitHub ↗
(Method method)

Source from the content-addressed store, hash-verified

393 }
394
395 private boolean loadColor(Method method) {
396 RGB rgb = method.getDeclaredAnnotation(RGB.class);
397 if (rgb != null) {
398 resources.put(method.getName(), new Color(display, fromARGB(rgb.argb())));
399 return true;
400 }
401 return false;
402 }
403
404 private boolean loadTextStyle(Method method) {
405 TextStyle style = method.getDeclaredAnnotation(TextStyle.class);

Callers 1

loadResourceMethod · 0.95

Calls 3

fromARGBMethod · 0.80
putMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected