blob: e555183eb0c7863362c5182c532ffa31338cf7b5 [file] [log] [blame]
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.ide.ui.laf;
import com.intellij.ui.UIBundle;
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
import java.awt.*;
public class IdeaBlueMetalTheme extends DefaultMetalTheme {
public String getName() {
return UIBundle.message("idea.blue.metal.theme.name");
}
private static final ColorUIResource darkGray = new ColorUIResource(132, 130, 132);
private static final ColorUIResource white = new ColorUIResource(255, 255, 255);
private static final ColorUIResource darkBlue = new ColorUIResource(82, 108, 164);
// private static ColorUIResource lightGray = new ColorUIResource(214, 211, 206);
private static final ColorUIResource lightGray = new ColorUIResource(214, 214, 214);
public ColorUIResource getControl() {
return lightGray;
}
public ColorUIResource getSeparatorBackground() {
return white;
}
public ColorUIResource getSeparatorForeground() {
return darkGray;
}
public ColorUIResource getMenuBackground() {
return lightGray;
}
public ColorUIResource getMenuSelectedBackground() {
return darkBlue;
}
public ColorUIResource getMenuSelectedForeground() {
return white;
}
public ColorUIResource getAcceleratorSelectedForeground() {
return white;
}
public static final ColorUIResource primary1 = new ColorUIResource(10, 36, 106);
private static final ColorUIResource primary2 = new ColorUIResource(91, 135, 206);
private static final ColorUIResource primary3 = new ColorUIResource(166, 202, 240);
public ColorUIResource getFocusColor() {
return new ColorUIResource(Color.black);
}
protected ColorUIResource getPrimary1() {
return primary1;
}
protected ColorUIResource getPrimary2() {
return primary2;
}
protected ColorUIResource getPrimary3() {
return primary3;
}
}