diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-04-04 14:59:31 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-04-04 14:59:31 (GMT) |
commit | 8d5c802377ee7cb5d9041f272bb2efc33d405dce (patch) | |
tree | 25e8027a95504b19340931132e286a7bd77bbacf | |
parent | 51f3580c314de10ffeab81213fe82fedb15cd9e6 (diff) |
new artwork; remove unnecessary button
-rw-r--r-- | XOEditorActivity.py | 8 | ||||
-rw-r--r-- | icons/save-colors.svg | 58 |
2 files changed, 63 insertions, 3 deletions
diff --git a/XOEditorActivity.py b/XOEditorActivity.py index ac17622..8322049 100644 --- a/XOEditorActivity.py +++ b/XOEditorActivity.py @@ -96,15 +96,17 @@ class XOEditorActivity(activity.Activity): toolbox.set_current_toolbar(1) self.toolbar = games_toolbar + ''' _rotate_button = button_factory( 'view-refresh', self.toolbar, self._rotate_cb, tooltip=_('Rotate colors')) + ''' if _have_toolbox: separator_factory(toolbox.toolbar, True, False) self._save_colors_button = button_factory( - 'document-save', self.toolbar, self._save_colors_cb, + 'save-colors', self.toolbar, self._save_colors_cb, tooltip=_('Save colors')) if _have_toolbox: @@ -115,7 +117,7 @@ class XOEditorActivity(activity.Activity): def _save_colors_cb(self, button=None): ''' Save the new XO colors. ''' - ''' We warn the user if the plugin was previously loaded ''' + ''' We warn the user if they are going to save their selection ''' alert = ConfirmationAlert() alert.props.title = _('Saving colors') alert.props.msg = _('Do you want to save these colors?') @@ -140,7 +142,7 @@ class XOEditorActivity(activity.Activity): self._game.colors[0], self._game.colors[1])) alert = NotifyAlert() alert.props.title = _('Saving colors') - alert.props.msg = _('Restart required before new colors will appear.') + alert.props.msg = _('A restart is required before your new colors will appear.') def _notification_alert_response_cb(alert, response_id, self): self.remove_alert(alert) diff --git a/icons/save-colors.svg b/icons/save-colors.svg new file mode 100644 index 0000000..d0fe05c --- /dev/null +++ b/icons/save-colors.svg @@ -0,0 +1,58 @@ +<?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" + version="1.1" + width="55" + height="55" + viewBox="0 0 55 55" + id="Layer_1" + xml:space="preserve"><metadata + id="metadata36"><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><defs + id="defs34"> + + + + + + + + + + + + </defs> +<g + transform="translate(-0.41999817,0.062)" + id="g26"> + <line + x1="41.169998" + x2="52.441002" + y1="16.188" + y2="4.9169998" + id="line28" + style="fill:none;stroke:#ffffff;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round" /> + <polyline + points=" 51.562,15.306 41.17,16.188 42.053,5.794 " + id="polyline30" + style="fill:none;stroke:#ffffff;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round" /> + </g> +<g + transform="matrix(0.8671392,0,0,0.8671392,-5.3229905,6.1528047)" + id="stock-xo_1_" + style="fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;display:block"><path + d="m 33.233,35.1 10.102,10.1 c 0.752,0.75 1.217,1.783 1.217,2.932 0,2.287 -1.855,4.143 -4.146,4.143 -1.145,0 -2.178,-0.463 -2.932,-1.211 l -10.102,-10.103 -10.1,10.1 c -0.75,0.75 -1.787,1.211 -2.934,1.211 -2.284,0 -4.143,-1.854 -4.143,-4.141 0,-1.146 0.465,-2.184 1.212,-2.934 L 21.511,35.095 11.409,24.995 c -0.747,-0.748 -1.212,-1.785 -1.212,-2.93 0,-2.289 1.854,-4.146 4.146,-4.146 1.143,0 2.18,0.465 2.93,1.214 L 27.372,29.235 37.474,19.132 c 0.754,-0.749 1.787,-1.214 2.934,-1.214 2.289,0 4.146,1.856 4.146,4.145 0,1.146 -0.467,2.18 -1.217,2.932 L 33.233,35.1 z" + id="path3082" + style="fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-width:3.5;stroke-opacity:1" /><circle + cx="27.371" + cy="10.849" + r="8.1219997" + id="circle3084" + style="fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-width:3.5;stroke-opacity:1" /></g></svg>
\ No newline at end of file |