Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguzubiaga97@gmail.com>2011-12-23 18:59:59 (GMT)
committer Agustin Zubiaga <aguzubiaga97@gmail.com>2011-12-23 18:59:59 (GMT)
commitf2029654f2a4a8de021bbd69ae587b7e8fab1aa8 (patch)
treebbc07fcd10b5fc92225ed332087f7a7401804a8c
parentd9423a5b85c1ee1004df8f9f31b1817c545c58e9 (diff)
Icono de la actividad modificado para que no quede tan ancho y definido el color del numero 6
-rw-r--r--activity/activity-terronesweeper.svg38
-rw-r--r--terronesweeper.py18
2 files changed, 28 insertions, 28 deletions
diff --git a/activity/activity-terronesweeper.svg b/activity/activity-terronesweeper.svg
index 516dc84..5586fe2 100644
--- a/activity/activity-terronesweeper.svg
+++ b/activity/activity-terronesweeper.svg
@@ -41,7 +41,7 @@
inkscape:window-x="0"
inkscape:window-y="26"
inkscape:window-maximized="1"
- inkscape:current-layer="g12206-1" />
+ inkscape:current-layer="g12206" />
<g
transform="matrix(-0.46612423,0,0,0.4963097,170.29069,-111.5885)"
id="g12206"
@@ -49,11 +49,11 @@
<g
style="display:inline"
id="g12206-5"
- transform="matrix(-1,0,0,1,593.68667,0.90641663)">
+ transform="matrix(-1.1112747,0,0,0.64515639,623.20998,92.157643)">
<path
d="m 325.96875,243.9375 c -0.92219,0.005 -1.79444,0.38082 -2.4375,1.03125 -0.64585,0.65097 -1.00565,1.52397 -1,2.4375 0,0.10537 -0.001,3.63619 0,6.75 l -20,0 c -3.28583,0 -5.96875,2.68202 -5.96875,5.96875 l 0,1.96875 -8.3125,0.0312 c -1.89041,0.008 -3.47561,1.53439 -3.46875,3.4375 0.005,0.9228 0.38216,1.79462 1.03125,2.4375 0.65125,0.64556 1.52427,1.00565 2.4375,1 0.13205,-10e-6 4.80478,0.002 8.3125,0 l 0,11.4375 0,0.0312 c -7.6e-4,0.0543 0,0.10781 0,0.125 -10e-6,0.25352 0.0265,7.62089 0.0312,10.75 -0.0868,-8e-5 -0.34375,0 -0.34375,0 a 0.84615704,0.84615704 0 0 0 -0.0312,0 c -1.91528,0.0394 -3.44277,1.63389 -3.40625,3.53125 0.0373,1.88541 1.62836,3.36376 3.5,3.34375 0.0106,-1.1e-4 0.0206,2.1e-4 0.0312,0 l 3.71875,0 a 0.84615704,0.84615704 0 0 0 0.0312,0 c 1.90469,-0.0359 3.39433,-1.62669 3.375,-3.5 -1.1e-4,-0.0106 2.1e-4,-0.0206 0,-0.0312 l 0,-7.6875 19.0625,0 0,7.6875 c -2e-4,0.0106 10e-5,0.0207 0,0.0312 -0.0182,1.87272 1.47031,3.46411 3.375,3.5 a 0.84615704,0.84615704 0 0 0 0.0312,0 l 3.71875,0 c 0.0106,2.1e-4 0.0207,-1.1e-4 0.0312,0 1.8719,0.02 3.46266,-1.4585 3.5,-3.34375 0.0377,-1.89767 -1.49083,-3.49181 -3.40625,-3.53125 a 0.84615704,0.84615704 0 0 0 -0.0312,0 c 0,0 -0.25695,-8e-5 -0.34375,0 0.004,-2.67201 0.0301,-8.54239 0.0312,-10.28125 l 0,-0.0312 0,-20.90625 c 0,-0.002 9e-5,-0.038 0,-0.0625 l 0,-0.0312 -0.0312,-12.65625 c -0.01,-1.88963 -1.54597,-3.44433 -3.4375,-3.4375 z"
id="path12204-5"
- style="fill:&stroke_color;;fill-opacity:1;stroke:&fill_color;;stroke-width:2.91072258;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ style="fill:&stroke_color;;fill-opacity:1;stroke:&fill_color;;stroke-width:2.91072249;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
inkscape:original="M 325.96875 244.78125 C 325.27314 244.7847 324.61448 245.06741 324.125 245.5625 C 323.63467 246.05672 323.37069 246.70976 323.375 247.40625 C 323.375 247.53605 323.37241 251.58398 323.375 255 L 302.53125 255 C 299.70346 255 297.40625 257.29635 297.40625 260.125 L 297.40625 262.9375 L 288.25 262.96875 C 286.80916 262.97521 285.61983 264.12899 285.625 265.5625 C 285.62846 266.259 285.91117 266.9159 286.40625 267.40625 C 286.90091 267.89659 287.55394 268.16056 288.25 268.15625 C 288.4061 268.15624 293.82246 268.15884 297.40625 268.15625 L 297.40625 280.46875 C 297.40497 280.50843 297.40625 280.55407 297.40625 280.59375 C 297.40624 280.76926 297.4362 289.63573 297.4375 292.1875 C 296.86263 292.18837 296.25 292.1875 296.25 292.1875 C 294.78371 292.21767 293.62864 293.40937 293.65625 294.84375 C 293.68471 296.2807 294.87726 297.40346 296.3125 297.375 L 300.0625 297.375 C 301.52708 297.3474 302.65303 296.15485 302.625 294.71875 L 302.625 286.15625 L 323.375 286.15625 L 323.375 294.71875 C 323.34783 296.15484 324.47293 297.3474 325.9375 297.375 L 329.6875 297.375 C 331.12316 297.40345 332.31529 296.28071 332.34375 294.84375 C 332.37221 293.40979 331.21629 292.21769 329.75 292.1875 C 329.74999 292.18749 329.13694 292.18837 328.5625 292.1875 C 328.56336 289.96091 328.59246 282.93676 328.59375 281.0625 C 328.59376 281.06033 328.59375 281.03384 328.59375 281.03125 L 328.59375 260.125 C 328.59376 260.10817 328.59418 260.07889 328.59375 260.0625 L 328.5625 247.375 C 328.55515 245.93372 327.40356 244.77607 325.96875 244.78125 z "
inkscape:radius="0.84607244"
sodipodi:type="inkscape:offset"
@@ -62,29 +62,29 @@
inkscape:connector-curvature="0"
d="m 334.99702,256.29924 c 0.9656,-0.13714 1.86004,0.53391 1.99675,1.50036 0.13671,0.96646 -0.53477,1.85918 -1.50036,1.99718 -0.96603,0.13628 -1.85917,-0.53477 -1.99675,-1.50079 -0.13671,-0.9656 0.5352,-1.86004 1.50036,-1.99675 z"
id="path10092-4"
- style="fill:none;fill-opacity:0;stroke:&fill_color;;opacity:1;stroke-opacity:1;stroke-width:2.07908756;stroke-miterlimit:4;stroke-dasharray:none" />
+ style="fill:none;stroke:&fill_color;;stroke-width:2.0790875;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
d="m 325.80856,257.60252 c 0.96559,-0.13628 1.8596,0.53563 1.99631,1.50079 0.13671,0.96516 -0.53477,1.86003 -1.50036,1.99631 -0.96517,0.13714 -1.8596,-0.5339 -1.99631,-1.50036 -0.13715,-0.96516 0.53476,-1.8596 1.50036,-1.99674 z"
id="path10094-7"
- style="fill:none;fill-opacity:0;stroke:&fill_color;;opacity:1;stroke-opacity:1;stroke-width:2.07908756;stroke-miterlimit:4;stroke-dasharray:none" />
+ style="fill:none;stroke:&fill_color;;stroke-width:2.0790875;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
d="m 328.14212,272.50478 c -1.65907,-1.18166 -4.29149,-4.48427 -3.34487,-6.73071 0.33336,-0.78835 1.06953,-0.29973 1.86952,0.10609 1.91178,0.97034 4.18669,1.09756 6.2257,0.48258 1.03804,-0.31352 1.92558,-0.81853 2.76956,-1.49691 0.51407,-0.41271 1.91567,-2.061 2.68849,-1.31405 0.60031,0.58134 0.70425,1.30543 0.70425,1.30888 0.86554,5.52964 -5.9816,11.15631 -10.91265,7.64412 z"
id="path10096-6"
- style="fill:none;fill-opacity:0;stroke:&fill_color;;opacity:1;stroke-opacity:1;stroke-width:2.07908756;stroke-miterlimit:4;stroke-dasharray:none" />
+ style="fill:none;stroke:&fill_color;;stroke-width:2.0790875;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
i:knockout="Off"
d="m 313.27177,233.27244 c 2.82261,-4.83315 11.68418,-4.8711 13.28934,0.96603 0.53951,1.96353 0.49423,6.18775 -1.65863,7.32973 -0.75644,0.40193 -1.01908,-0.44205 -1.38263,-1.26187 -0.86942,-1.96009 -2.55264,-3.49495 -4.52221,-4.30659 -1.00183,-0.41271 -2.00968,-0.58134 -3.09129,-0.58867 -0.6594,-0.004 -2.78725,0.38814 -2.91447,-0.67881 -0.0988,-0.82974 0.27946,-1.45809 0.27989,-1.45982 z"
id="path10098-5"
- style="fill:&stroke_color;;fill-opacity:1;stroke:&fill_color;;stroke-width:2.03958488000000004;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ style="fill:&stroke_color;;fill-opacity:1;stroke:&fill_color;;stroke-width:2.03958488;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
i:knockout="Off"
d="m 333.84944,245.28266 c -6.18775,-5.04534 -4.28545,-17.54158 4.29623,-18.51365 2.88557,-0.32776 8.82793,0.66975 9.96301,3.95467 0.39978,1.15492 -0.84872,1.33864 -2.08342,1.66942 -2.95501,0.79352 -5.48954,2.82606 -7.06752,5.42182 -0.80345,1.32139 -1.26274,2.70445 -1.51244,4.2268 -0.1518,0.92808 -0.069,4.01376 -1.59998,3.95726 -1.19072,-0.0431 -1.9933,-0.71546 -1.99588,-0.71632 z"
id="path10100-6"
- style="fill:&stroke_color;;fill-opacity:1;stroke:&fill_color;;stroke-width:2.03958488000000004;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ style="fill:&stroke_color;;fill-opacity:1;stroke:&fill_color;;stroke-width:2.03958488;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
<g
style="display:inline"
@@ -97,34 +97,34 @@
inkscape:original="M 325.96875 244.78125 C 325.27314 244.7847 324.61448 245.06741 324.125 245.5625 C 323.63467 246.05672 323.37069 246.70976 323.375 247.40625 C 323.375 247.53605 323.37241 251.58398 323.375 255 L 302.53125 255 C 299.70346 255 297.40625 257.29635 297.40625 260.125 L 297.40625 262.9375 L 288.25 262.96875 C 286.80916 262.97521 285.61983 264.12899 285.625 265.5625 C 285.62846 266.259 285.91117 266.9159 286.40625 267.40625 C 286.90091 267.89659 287.55394 268.16056 288.25 268.15625 C 288.4061 268.15624 293.82246 268.15884 297.40625 268.15625 L 297.40625 280.46875 C 297.40497 280.50843 297.40625 280.55407 297.40625 280.59375 C 297.40624 280.76926 297.4362 289.63573 297.4375 292.1875 C 296.86263 292.18837 296.25 292.1875 296.25 292.1875 C 294.78371 292.21767 293.62864 293.40937 293.65625 294.84375 C 293.68471 296.2807 294.87726 297.40346 296.3125 297.375 L 300.0625 297.375 C 301.52708 297.3474 302.65303 296.15485 302.625 294.71875 L 302.625 286.15625 L 323.375 286.15625 L 323.375 294.71875 C 323.34783 296.15484 324.47293 297.3474 325.9375 297.375 L 329.6875 297.375 C 331.12316 297.40345 332.31529 296.28071 332.34375 294.84375 C 332.37221 293.40979 331.21629 292.21769 329.75 292.1875 C 329.74999 292.18749 329.13694 292.18837 328.5625 292.1875 C 328.56336 289.96091 328.59246 282.93676 328.59375 281.0625 C 328.59376 281.06033 328.59375 281.03384 328.59375 281.03125 L 328.59375 260.125 C 328.59376 260.10817 328.59418 260.07889 328.59375 260.0625 L 328.5625 247.375 C 328.55515 245.93372 327.40356 244.77607 325.96875 244.78125 z "
inkscape:radius="0.84607244"
sodipodi:type="inkscape:offset"
- transform="translate(18.590396,-5.6226252)" />
+ transform="matrix(1.1112747,0,0,0.64515639,-18.006769,87.623754)" />
<path
inkscape:connector-curvature="0"
- d="m 334.99702,256.29924 c 0.9656,-0.13714 1.86004,0.53391 1.99675,1.50036 0.13671,0.96646 -0.53477,1.85918 -1.50036,1.99718 -0.96603,0.13628 -1.85917,-0.53477 -1.99675,-1.50079 -0.13671,-0.9656 0.5352,-1.86004 1.50036,-1.99675 z"
+ d="m 333.6079,256.60432 c 1.07305,-0.0885 2.06702,0.34445 2.21894,0.96796 0.15192,0.62352 -0.59428,1.19947 -1.66731,1.2885 -1.07353,0.0879 -2.06605,-0.34501 -2.21894,-0.96824 -0.15192,-0.62298 0.59476,-1.20002 1.66731,-1.28822 z"
id="path10092"
- style="fill:&fill_color;;fill-opacity:0;stroke:&stroke_color;;stroke-width:2.07908756;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ style="fill:&fill_color;;fill-opacity:0;stroke:&stroke_color;;stroke-width:1.76041877;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
- d="m 325.80856,257.60252 c 0.96559,-0.13628 1.8596,0.53563 1.99631,1.50079 0.13671,0.96516 -0.53477,1.86003 -1.50036,1.99631 -0.96517,0.13714 -1.8596,-0.5339 -1.99631,-1.50036 -0.13715,-0.96516 0.53476,-1.8596 1.50036,-1.99674 z"
+ d="m 323.397,257.44514 c 1.07304,-0.0879 2.06653,0.34556 2.21845,0.96824 0.15192,0.62268 -0.59428,1.20002 -1.66731,1.28793 -1.07257,0.0885 -2.06654,-0.34445 -2.21845,-0.96796 -0.15241,-0.62268 0.59426,-1.19974 1.66731,-1.28821 z"
id="path10094"
- style="fill:&fill_color;;fill-opacity:0;stroke:&stroke_color;;stroke-opacity:1;stroke-width:2.07908756;stroke-miterlimit:4;stroke-dasharray:none" />
+ style="fill:&fill_color;;fill-opacity:0;stroke:&stroke_color;;stroke-width:1.76041877;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
- d="m 328.14212,272.50478 c -1.65907,-1.18166 -4.29149,-4.48427 -3.34487,-6.73071 0.33336,-0.78835 1.06953,-0.29973 1.86952,0.10609 1.91178,0.97034 4.18669,1.09756 6.2257,0.48258 1.03804,-0.31352 1.92558,-0.81853 2.76956,-1.49691 0.51407,-0.41271 1.91567,-2.061 2.68849,-1.31405 0.60031,0.58134 0.70425,1.30543 0.70425,1.30888 0.86554,5.52964 -5.9816,11.15631 -10.91265,7.64412 z"
+ d="m 325.99023,267.05942 c -1.84369,-0.76234 -4.76903,-2.89305 -3.71707,-4.34235 0.37045,-0.50862 1.18854,-0.19337 2.07755,0.0685 2.12451,0.62602 4.65255,0.70809 6.91846,0.31134 1.15355,-0.20227 2.13984,-0.52808 3.07774,-0.96575 0.57128,-0.26626 2.12884,-1.32965 2.98765,-0.84776 0.66712,0.37506 0.78262,0.8422 0.78262,0.84443 0.96185,3.56748 -6.64721,7.19756 -12.12695,4.93165 z"
id="path10096"
- style="fill:&fill_color;;fill-opacity:0;stroke:&stroke_color;;stroke-opacity:1;stroke-width:2.07908756;stroke-miterlimit:4;stroke-dasharray:none" />
+ style="fill:&fill_color;;fill-opacity:0;stroke:&stroke_color;;stroke-width:1.76041877;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
i:knockout="Off"
- d="m 313.27177,233.27244 c 2.82261,-4.83315 11.68418,-4.8711 13.28934,0.96603 0.53951,1.96353 0.49423,6.18775 -1.65863,7.32973 -0.75644,0.40193 -1.01908,-0.44205 -1.38263,-1.26187 -0.86942,-1.96009 -2.55264,-3.49495 -4.52221,-4.30659 -1.00183,-0.41271 -2.00968,-0.58134 -3.09129,-0.58867 -0.6594,-0.004 -2.78725,0.38814 -2.91447,-0.67881 -0.0988,-0.82974 0.27946,-1.45809 0.27989,-1.45982 z"
+ d="m 309.46518,241.74843 c 3.1367,-3.11813 12.98433,-3.14262 14.76811,0.62324 0.59954,1.26679 0.54923,3.99207 -1.84319,4.72882 -0.84062,0.25931 -1.13248,-0.28519 -1.53649,-0.8141 -0.96616,-1.26457 -2.83668,-2.25479 -5.02541,-2.77842 -1.11331,-0.26627 -2.23331,-0.37506 -3.43528,-0.37979 -0.73277,-0.003 -3.09739,0.25041 -3.23877,-0.43794 -0.1098,-0.53531 0.31056,-0.94069 0.31103,-0.94181 z"
id="path10098"
- style="fill:&fill_color;;fill-opacity:1;stroke:&stroke_color;;stroke-width:2.03958488;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ style="fill:&fill_color;;fill-opacity:1;stroke:&stroke_color;;stroke-width:1.72697091;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
i:knockout="Off"
- d="m 333.84944,245.28266 c -6.18775,-5.04534 -4.28545,-17.54158 4.29623,-18.51365 2.88557,-0.32776 8.82793,0.66975 9.96301,3.95467 0.39978,1.15492 -0.84872,1.33864 -2.08342,1.66942 -2.95501,0.79352 -5.48954,2.82606 -7.06752,5.42182 -0.80345,1.32139 -1.26274,2.70445 -1.51244,4.2268 -0.1518,0.92808 -0.069,4.01376 -1.59998,3.95726 -1.19072,-0.0431 -1.9933,-0.71546 -1.99588,-0.71632 z"
+ d="m 332.33262,249.4969 c -6.87628,-3.25504 -4.7623,-11.31707 4.7743,-11.9442 3.20666,-0.21145 9.81025,0.43209 11.07164,2.55138 0.44427,0.7451 -0.94317,0.86363 -2.31525,1.07705 -3.28383,0.51193 -6.10039,1.82324 -7.85396,3.49792 -0.89285,0.85249 -1.40325,1.74479 -1.68074,2.72694 -0.16869,0.59876 -0.0766,2.5895 -1.77801,2.55305 -1.32322,-0.0279 -2.2151,-0.46158 -2.21798,-0.46214 z"
id="path10100"
- style="fill:&fill_color;;fill-opacity:1;stroke:&stroke_color;;stroke-width:2.03958488;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ style="fill:&fill_color;;fill-opacity:1;stroke:&stroke_color;;stroke-width:1.72697091;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
</g>
</svg>
diff --git a/terronesweeper.py b/terronesweeper.py
index 689108a..7b16f73 100644
--- a/terronesweeper.py
+++ b/terronesweeper.py
@@ -22,16 +22,16 @@ from sugar.graphics.menuitem import MenuItem
from timer import Timer
-NUM_COLORS = {1 : gtk.gdk.Color("#0092d0"),
- 2 : gtk.gdk.Color("#00c51c"),
- 3 : gtk.gdk.Color("#ff0000"),
- 4 : gtk.gdk.Color("#0000ba"),
- 5 : gtk.gdk.Color("#aa0800"),
- 6 : gtk.gdk.Color(0, 0, 0, 255),
- 7 : gtk.gdk.Color(0, 0, 0, 255),
- 8 : gtk.gdk.Color(0, 0, 0, 255)}
+NUM_COLORS = {1 : gtk.gdk.Color("#0092D0"),
+ 2 : gtk.gdk.Color("#00C51C"),
+ 3 : gtk.gdk.Color("#FF0000"),
+ 4 : gtk.gdk.Color("#0000BA"),
+ 5 : gtk.gdk.Color("#AA0800"),
+ 6 : gtk.gdk.Color("#A020F0"),
+ 7 : gtk.gdk.Color("#000000"),
+ 8 : gtk.gdk.Color("#000000")}
-BUTTON_COLOR = gtk.gdk.Color("#0092d0")
+BUTTON_COLOR = gtk.gdk.Color("#0092D0") # Definir aca el color del boton
class TerronesTable(gtk.Table):