Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit bb0eae6

Browse files
committed
Merge pull request #87 from tiwiz/fixes-tree-node-theme
Fixes tree node theme
2 parents fe9cb77 + fe34024 commit bb0eae6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ClassySharkWS/src/com/google/classyshark/gui/panel/chart/RingChart.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.google.classyshark.gui.panel.chart;
1818

19+
import com.google.classyshark.gui.GuiMode;
1920
import com.google.classyshark.silverghost.methodscounter.ClassNode;
2021

2122
import java.awt.AlphaComposite;
@@ -160,6 +161,7 @@ public void render(int width, int height, ClassNode rootNode, Graphics g) {
160161
imageG2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
161162
imageG2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
162163
imageG2d.setComposite(AlphaComposite.Src);
164+
imageG2d.setColor(GuiMode.getTheme().getBackgroundColor());
163165
imageG2d.fillRect(0, 0, width, height);
164166

165167
int graphWidth = width - MARGIN * 2;

ClassySharkWS/src/com/google/classyshark/gui/panel/methodscount/MethodsCountPanel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.google.classyshark.gui.GuiMode;
2020
import com.google.classyshark.gui.panel.FileTransferHandler;
2121
import com.google.classyshark.gui.panel.ViewerController;
22+
import com.google.classyshark.gui.panel.tree.CellRenderer;
2223
import com.google.classyshark.gui.theme.Theme;
2324
import com.google.classyshark.silverghost.methodscounter.ClassNode;
2425
import com.google.classyshark.silverghost.methodscounter.RootBuilder;
@@ -65,6 +66,7 @@ private void setup() {
6566
treeModel = new DefaultTreeModel(new DefaultMutableTreeNode(null));
6667
jTree = new JTree(treeModel);
6768
jTree.setRootVisible(false);
69+
jTree.setCellRenderer(new CellRenderer());
6870
theme.applyTo(jTree);
6971

7072
DefaultTreeCellRenderer cellRenderer = (DefaultTreeCellRenderer) jTree.getCellRenderer();

0 commit comments

Comments
 (0)