|
|
@ -211,6 +211,11 @@ public class TemplateThemeBlock<T extends TemplateTheme> extends JPanel { |
|
|
|
public void paint(Graphics g) { |
|
|
|
public void paint(Graphics g) { |
|
|
|
super.paint(g); |
|
|
|
super.paint(g); |
|
|
|
Graphics2D g2d = (Graphics2D) g; |
|
|
|
Graphics2D g2d = (Graphics2D) g; |
|
|
|
|
|
|
|
Color oldColor = g2d.getColor(); |
|
|
|
|
|
|
|
g2d.setColor(Color.WHITE); |
|
|
|
|
|
|
|
g2d.fillRect(0, 0, getWidth(), getHeight()); |
|
|
|
|
|
|
|
g2d.setColor(oldColor); |
|
|
|
|
|
|
|
|
|
|
|
paintCenterImage(g2d, thumbnail != null ? thumbnail : LOADING_IMAGE); |
|
|
|
paintCenterImage(g2d, thumbnail != null ? thumbnail : LOADING_IMAGE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|