Permalink
Browse files

Added [color]-to-play buttons.

  • Loading branch information...
1 parent 542505e commit bf8a6c33d2f6a9f811f713ab2acaa811228b5581 @lukaszlew committed Oct 25, 2010
View
4 src/net/sf/gogui/gogui/GoGuiActions.java
@@ -206,12 +206,12 @@ public void actionPerformed(ActionEvent e) {
m_goGui.actionClockStart(); } };
public final Action m_actionToggleComputerColorBlack =
- new Action("ACT_COMPUTER_PLAYS_BLACK") {
+ new Action("ACT_COMPUTER_PLAYS_BLACK", null, "gogui-computer-black") {
public void actionPerformed(ActionEvent e) {
m_goGui.actionToggleComputerColorBlack(); } };
public final Action m_actionToggleComputerColorWhite =
- new Action("ACT_COMPUTER_PLAYS_WHITE") {
+ new Action("ACT_COMPUTER_PLAYS_WHITE", null, "gogui-computer-white") {
public void actionPerformed(ActionEvent e) {
m_goGui.actionToggleComputerColorWhite(); } };
View
3 src/net/sf/gogui/gogui/GoGuiToolBar.java
@@ -33,6 +33,9 @@ public GoGuiToolBar(GoGui goGui)
addToggleButton(actions.m_actionSetupBlack);
addToggleButton(actions.m_actionSetupWhite);
addSeparator();
+ addToggleButton(actions.m_actionToggleComputerColorBlack);
+ addToggleButton(actions.m_actionToggleComputerColorWhite);
+ addSeparator();
addButton(actions.m_actionBeginning);
addButton(actions.m_actionBackwardTen);
addButton(actions.m_actionBackward);
View
BIN src/net/sf/gogui/images/gogui-computer-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
107 src/net/sf/gogui/images/gogui-computer-black.svg
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.0"
+ width="22"
+ height="22"
+ id="svg1910">
+ <defs
+ id="defs1912">
+ <linearGradient
+ id="linearGradient7916">
+ <stop
+ id="stop7918"
+ style="stop-color:#ffffff;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop7920"
+ style="stop-color:#ffffff;stop-opacity:0.34020618"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient1322">
+ <stop
+ id="stop1324"
+ style="stop-color:#729fcf;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop1326"
+ style="stop-color:#5187d6;stop-opacity:1"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient9454">
+ <stop
+ id="stop9456"
+ style="stop-color:#eeeeec;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop9458"
+ style="stop-color:#555753;stop-opacity:1"
+ offset="1" />
+ </linearGradient>
+ <radialGradient
+ cx="23.716686"
+ cy="34.693275"
+ r="9.457016"
+ fx="23.836168"
+ fy="28.83235"
+ id="radialGradient9462"
+ xlink:href="#linearGradient9454"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.952869,-0.209637,0.137367,0.624524,-3.116399,17.89217)" />
+ <linearGradient
+ x1="34.892849"
+ y1="36.422989"
+ x2="45.918697"
+ y2="48.547989"
+ id="linearGradient2123"
+ xlink:href="#linearGradient1322"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.45965,0,0,0.478358,-14.55984,6.531786)" />
+ <linearGradient
+ x1="16.874998"
+ y1="22.851799"
+ x2="27.900846"
+ y2="34.976799"
+ id="linearGradient2125"
+ xlink:href="#linearGradient7916"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.45965,0,0,0.478358,-6.277902,13.02368)" />
+ </defs>
+ <metadata
+ id="metadata1915">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1">
+ <path
+ d="m 33.079155,32.901022 a 9.8943748,9.8943748 0 1 1 -0.075,-0.104095"
+ transform="matrix(0.960196,0,0,0.960085,-14.51825,-27.58942)"
+ id="path9460"
+ style="fill:url(#radialGradient9462);fill-opacity:1;stroke:none;display:inline" />
+ <rect
+ width="11.5"
+ height="10"
+ ry="1.9413829"
+ x="10"
+ y="11.5"
+ id="rect3781"
+ style="fill:#75a1d0;fill-opacity:1;fill-rule:evenodd;stroke:#3465a4;stroke-width:1.07778299px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ </g>
+</svg>
View
BIN src/net/sf/gogui/images/gogui-computer-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
198 src/net/sf/gogui/images/gogui-computer-white.svg
@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.0"
+ width="22"
+ height="22"
+ id="svg1910">
+ <defs
+ id="defs1912">
+ <linearGradient
+ id="linearGradient2786">
+ <stop
+ id="stop2788"
+ style="stop-color:#ffffff;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop2790"
+ style="stop-color:#b4bbad;stop-opacity:1"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient2780">
+ <stop
+ id="stop2782"
+ style="stop-color:#171716;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop2784"
+ style="stop-color:#373737;stop-opacity:0"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient3979">
+ <stop
+ id="stop3981"
+ style="stop-color:#ffffff;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop3983"
+ style="stop-color:#d3d7cf;stop-opacity:1"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient3759">
+ <stop
+ id="stop3761"
+ style="stop-color:#171716;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop3763"
+ style="stop-color:#343434;stop-opacity:0.02272727"
+ offset="1" />
+ </linearGradient>
+ <radialGradient
+ cx="24.181818"
+ cy="44.180717"
+ r="9.5210056"
+ fx="24.592691"
+ fy="46.159111"
+ id="radialGradient3723"
+ xlink:href="#linearGradient3759"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.258895,3.610761e-8,-2.381149e-8,1.246699,-6.260551,-10.89932)" />
+ <linearGradient
+ id="linearGradient7916">
+ <stop
+ id="stop7918"
+ style="stop-color:#ffffff;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop7920"
+ style="stop-color:#ffffff;stop-opacity:0.34020618"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient1322">
+ <stop
+ id="stop1324"
+ style="stop-color:#729fcf;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop1326"
+ style="stop-color:#5187d6;stop-opacity:1"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient9454">
+ <stop
+ id="stop9456"
+ style="stop-color:#eeeeec;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop9458"
+ style="stop-color:#555753;stop-opacity:1"
+ offset="1" />
+ </linearGradient>
+ <radialGradient
+ cx="23.716686"
+ cy="34.693275"
+ r="9.457016"
+ fx="23.836168"
+ fy="28.83235"
+ id="radialGradient9462"
+ xlink:href="#linearGradient9454"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.952869,-0.209637,0.137367,0.624524,-3.116399,17.89217)" />
+ <radialGradient
+ cx="23.716686"
+ cy="34.693275"
+ r="9.457016"
+ fx="23.836168"
+ fy="28.83235"
+ id="radialGradient3090"
+ xlink:href="#linearGradient3979"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.952869,-0.209637,0.137367,0.624524,-3.116399,17.89217)" />
+ <radialGradient
+ cx="24.181818"
+ cy="44.180717"
+ r="9.5210056"
+ fx="24.592691"
+ fy="46.159111"
+ id="radialGradient3989"
+ xlink:href="#linearGradient3759"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.258895,3.610761e-8,-2.381149e-8,1.246699,-6.260551,-10.89932)" />
+ <radialGradient
+ cx="23.716686"
+ cy="34.693275"
+ r="9.457016"
+ fx="23.836168"
+ fy="28.83235"
+ id="radialGradient3991"
+ xlink:href="#linearGradient3979"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.952869,-0.209637,0.137367,0.624524,-3.116399,17.89217)" />
+ <radialGradient
+ cx="23.716686"
+ cy="34.693275"
+ r="9.457016"
+ fx="23.836168"
+ fy="28.83235"
+ id="radialGradient3995"
+ xlink:href="#linearGradient2786"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.952869,-0.209637,0.137367,0.624524,-3.116399,17.89217)" />
+ <radialGradient
+ cx="24.181818"
+ cy="44.180717"
+ r="9.5210056"
+ fx="24.592691"
+ fy="46.159111"
+ id="radialGradient3997"
+ xlink:href="#linearGradient2780"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.3645,-5.486648e-7,5.636687e-7,1.246697,-8.814292,-10.89923)" />
+ </defs>
+ <metadata
+ id="metadata1915">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1">
+ <path
+ d="m 34.290648,37.306553 a 12.401417,11.86883 0 1 1 -0.094,-0.124868"
+ transform="matrix(0.806405,0,0,0.842589,-10.00035,-27.22714)"
+ id="path8507"
+ style="fill:url(#radialGradient3997);fill-opacity:1;stroke:none;display:inline" />
+ <path
+ d="m 33.079155,32.901022 a 9.8943748,9.8943748 0 1 1 -0.075,-0.104095"
+ transform="matrix(0.960196,0,0,0.960085,-14.51825,-27.58943)"
+ id="path3088"
+ style="fill:url(#radialGradient3995);fill-opacity:1;stroke:none;display:inline" />
+ <rect
+ width="11.5"
+ height="10"
+ ry="1.9413829"
+ x="10"
+ y="11.5"
+ id="rect3781"
+ style="fill:#75a1d0;fill-opacity:1;fill-rule:evenodd;stroke:#3465a4;stroke-width:1.07778299px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ </g>
+</svg>

0 comments on commit bf8a6c3

Please sign in to comment.