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

Method updateTheme

app/src/processing/app/ui/ModeSelector.java:74–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 public void updateTheme() {
75 titleFont = Theme.getFont("mode.title.font");
76 titleColor = Theme.getColor("mode.title.color");
77
78 // getGraphics() is null (even for editor) and no offscreen yet
79 //titleWidth = getToolkit().getFontMetrics(titleFont).stringWidth(title);
80 //titleWidth = editor.getGraphics().getFontMetrics(titleFont).stringWidth(title);
81
82 // Theme for mode popup is handled inside Editor.handleTheme()
83 // because Editor owns the parent object.
84
85 backgroundColor = Theme.getColor("mode.background.color");
86 outlineColor = Theme.getColor("mode.outline.color");
87 }
88
89 @Override
90 public void paintComponent(Graphics g) {

Callers 1

ModeSelectorMethod · 0.95

Calls 2

getFontMethod · 0.95
getColorMethod · 0.95

Tested by

no test coverage detected