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

Method updateTheme

app/src/processing/app/ui/EditorToolbar.java:106–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105
106 public void updateTheme() {
107 gradient = Theme.makeGradient("toolbar", Toolkit.zoom(400), HIGH);
108
109 rolloverLabel.setFont(Theme.getFont("toolbar.rollover.font"));
110 rolloverLabel.setForeground(Theme.getColor("toolbar.rollover.color"));
111
112 for (Component c : box.getComponents()) {
113 if (c instanceof EditorButton) {
114 ((EditorButton) c).updateTheme();
115 }
116 }
117 modeSelector.updateTheme();
118 repaint();
119 }
120
121
122 public void paintComponent(Graphics g) {

Callers 1

rebuildMethod · 0.95

Calls 5

makeGradientMethod · 0.95
zoomMethod · 0.95
getFontMethod · 0.95
getColorMethod · 0.95
repaintMethod · 0.80

Tested by

no test coverage detected