Skip to content

Commit

Permalink
SwingSet3
Browse files Browse the repository at this point in the history
  • Loading branch information
bulenkov committed Mar 6, 2014
1 parent 44dfb81 commit c4c9517
Show file tree
Hide file tree
Showing 339 changed files with 20,105 additions and 37 deletions.
9 changes: 9 additions & 0 deletions .idea/copyright/JetBrains.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/fileColors.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/SwingSet3_Libraries.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/Darcula.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/Demos.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Darcula.iml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/swingset2" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/swingset3" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="IconLoader" level="project" />
<orderEntry type="library" name="SwingSet3 Libraries" level="project" />
</component>
</module>

Binary file added lib/demo/AnimatedTransitions.jar
Binary file not shown.
Binary file added lib/demo/AppFramework.jar
Binary file not shown.
Binary file added lib/demo/TimingFramework.jar
Binary file not shown.
Binary file added lib/demo/swing-worker.jar
Binary file not shown.
Binary file added lib/demo/swingx.jar
Binary file not shown.
16 changes: 16 additions & 0 deletions src/com/bulenkov/darcula/DarculaDefaultTableHeaderRenderer.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2000-2014 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.bulenkov.darcula;

import javax.swing.*;
Expand Down
17 changes: 17 additions & 0 deletions src/com/bulenkov/darcula/DarculaLaf.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2000-2014 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.bulenkov.darcula;

import com.bulenkov.iconloader.util.ColorUtil;
Expand Down Expand Up @@ -37,6 +53,7 @@ public DarculaLaf() {
} else {
final String name = UIManager.getSystemLookAndFeelClassName();
base = (BasicLookAndFeel)Class.forName(name).newInstance();
MetalLookAndFeel.setCurrentTheme(new DarculaMetalTheme());
}
}
catch (Exception ignore) {
Expand Down
16 changes: 16 additions & 0 deletions src/com/bulenkov/darcula/DarculaLookAndFeelInfo.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2000-2014 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.bulenkov.darcula;

import javax.swing.*;
Expand Down
98 changes: 98 additions & 0 deletions src/com/bulenkov/darcula/DarculaMetalTheme.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* Copyright 2000-2014 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.bulenkov.darcula;

import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
import java.awt.*;

/**
* @author Konstantin Bulenkov
*/
public class DarculaMetalTheme extends DefaultMetalTheme {
private final ColorUIResource myControlHighlightColor = new ColorUIResource(108, 111, 113);
private final ColorUIResource myControlDarkShadowColor = new ColorUIResource(39, 42, 44);
private final ColorUIResource myControlColor = new ColorUIResource(0x3c3f41);
private static final ColorUIResource white = new ColorUIResource(255, 255, 255);
private static final ColorUIResource darkBlue = new ColorUIResource(82, 108, 164);
private static final ColorUIResource lightGray = new ColorUIResource(214, 214, 214);
private final ColorUIResource mySeparatorForeground = new ColorUIResource(53, 56, 58);

public static final ColorUIResource primary1 = new ColorUIResource(53, 56, 58);
private static final ColorUIResource primary2 = new ColorUIResource(91, 135, 206);
private static final ColorUIResource primary3 = new ColorUIResource(166, 202, 240);



public String getName() {
return "Darcula theme";
}

public ColorUIResource getControl() {
return myControlColor;
}

@Override
public ColorUIResource getControlHighlight() {
return myControlHighlightColor;
}

@Override
public ColorUIResource getControlDarkShadow() {
return myControlDarkShadowColor;
}

public ColorUIResource getSeparatorBackground() {
return getControl();
}

public ColorUIResource getSeparatorForeground() {
return mySeparatorForeground;
}

public ColorUIResource getMenuBackground() {
return lightGray;
}

public ColorUIResource getMenuSelectedBackground() {
return darkBlue;
}

public ColorUIResource getMenuSelectedForeground() {
return white;
}

public ColorUIResource getAcceleratorSelectedForeground() {
return white;
}

public ColorUIResource getFocusColor() {
return new ColorUIResource(Color.black);
}

protected ColorUIResource getPrimary1() {
return primary1;
}

protected ColorUIResource getPrimary2() {
return primary2;
}

protected ColorUIResource getPrimary3() {
return primary3;
}
}
16 changes: 16 additions & 0 deletions src/com/bulenkov/darcula/DarculaTableHeaderBorder.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2000-2014 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.bulenkov.darcula;

import javax.swing.border.Border;
Expand Down
2 changes: 1 addition & 1 deletion src/com/bulenkov/darcula/DarculaTableHeaderUI.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2014 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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/bulenkov/darcula/DarculaUIUtil.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/bulenkov/darcula/darcula.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 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.
Expand Down
16 changes: 16 additions & 0 deletions src/com/bulenkov/darcula/darcula.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright 2000-2014 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.
#

# suppress inspection "UnusedProperty" for whole file
darcula.background=3c3f41
darcula.textBackground=3c3f41
Expand Down
16 changes: 16 additions & 0 deletions src/com/bulenkov/darcula/darcula_linux.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright 2000-2014 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.
#

# suppress inspection "UnusedProperty" for whole file
darcula.selectionBackground=2F65CA
darcula.selectionForeground=bbbbbb
Expand Down
16 changes: 16 additions & 0 deletions src/com/bulenkov/darcula/darcula_mac.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright 2000-2014 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.
#

# suppress inspection "UnusedProperty" for whole file
darcula.selectionBackground=2F65CA
#Menu.arrowIcon=AllIcons.Mac.Tree_white_right_arrow
Expand Down
28 changes: 25 additions & 3 deletions src/com/bulenkov/darcula/darcula_windows.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
#
# Copyright 2000-2014 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.
#

# suppress inspection "UnusedProperty" for whole file
darcula.selectionBackground=4B6EAF
darcula.selectionForeground=bbbbbb

PopupMenu.border=com.bulenkov.darcula.ui.DarculaPopupMenuBorder

MenuBar.border=com.bulenkov.darcula.ui.DarculaMenuBarBorder
#InternalFrameUI=com.bulenkov.darcula.ui.DarculaInternalFrameUI
#InternalFrame.border=com.bulenkov.darcula.ui.DarculaInternalBorder
#RootPaneUI=com.bulenkov.darcula.ui.DarculaRootPaneUI

ToolBar.floatingBackground=3c3f41
ToolBar.floatingForeground=bbbbbb
ToolBar.borderColor=555555
ToolBar.shadow=555555
menu=3c3f41
MenuBar.gradient=null
MenuBar.borderColor=555555
MenuBar.highlight=555555
2 changes: 1 addition & 1 deletion src/com/bulenkov/darcula/ui/DarculaButtonPainter.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/bulenkov/darcula/ui/DarculaButtonUI.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 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.
Expand Down
Loading

0 comments on commit c4c9517

Please sign in to comment.