()
| 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) { |
no test coverage detected