Commit e418bb2a authored by Konstantin Bulenkov's avatar Konstantin Bulenkov
Browse files

use UIUtil.getSidePanelColor()

parent bef8a7fa
Showing with 4 additions and 3 deletions
+4 -3
......@@ -203,7 +203,7 @@ public class ProjectStructureConfigurable extends BaseConfigurable implements Se
toolbar.setTargetComponent(myComponent);
myToolbarComponent = toolbar.getComponent();
if (Registry.is("ide.new.project.settings")) {
left.setBackground(new Color(0xD2D6DD));
left.setBackground(UIUtil.getSidePanelColor());
} else {
left.add(myToolbarComponent, BorderLayout.NORTH);
}
......
......@@ -26,6 +26,7 @@ import com.intellij.ui.navigation.History;
import com.intellij.ui.navigation.Place;
import com.intellij.ui.popup.list.GroupedItemsListRenderer;
import com.intellij.util.ui.EmptyIcon;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
......@@ -58,7 +59,7 @@ public class SidePanel extends JPanel {
myModel = new DefaultListModel();
myList = new JBList(myModel);
if (Registry.is("ide.new.project.settings")) {
myList.setBackground(new Color(0xD2D6DD));
myList.setBackground(UIUtil.getSidePanelColor());
myList.setBorder(new EmptyBorder(5, 0, 0, 0));
}
final ListItemDescriptor descriptor = new ListItemDescriptor() {
......@@ -109,7 +110,7 @@ public class SidePanel extends JPanel {
@Override
protected Color getBackground() {
return Registry.is("ide.new.project.settings") ? new Color(0xD2D6DD) : super.getBackground();
return Registry.is("ide.new.project.settings") ? UIUtil.getSidePanelColor() : super.getBackground();
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment