diff options
-rw-r--r-- | activity.py | 4 | ||||
-rwxr-xr-x | icons/minus.svg | 15 | ||||
-rwxr-xr-x | icons/plus.svg | 16 |
3 files changed, 33 insertions, 2 deletions
diff --git a/activity.py b/activity.py index 84fcc87..4d3638b 100644 --- a/activity.py +++ b/activity.py @@ -13,13 +13,13 @@ class PhysicsActivity(olpcgames.PyGameActivity): toolbar = super(PhysicsActivity, self).build_toolbar() # Add buttons - toolbar.button1 = ToolButton('activity-minus') + toolbar.button1 = ToolButton('minus') toolbar.button1.set_tooltip(_('Button One')) toolbar.button1.connect('clicked', self._button1_cb) toolbar.insert(toolbar.button1, 2) toolbar.button1.show() - toolbar.button2 = ToolButton('activity-plus') + toolbar.button2 = ToolButton('plus') toolbar.button2.set_tooltip(_('button-2')) toolbar.button2.connect('clicked', self._button2_cb) toolbar.insert(toolbar.button2, 2) diff --git a/icons/minus.svg b/icons/minus.svg new file mode 100755 index 0000000..5b1caef --- /dev/null +++ b/icons/minus.svg @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY fill_color "#FFFFFF">
+ <!ENTITY stroke_color "#000000">
+]>
+<svg version="1.1" id="Layer_5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="74.5px" height="74px" viewBox="0 0 74.5 74" enable-background="new 0 0 74.5 74" xml:space="preserve">
+<g>
+ <circle cx="37.026" cy="37.18" r="30" fill="&fill_color;"/>
+ <g>
+ <line fill="none" stroke="&stroke_color;" stroke-width="4" x1="55.026" y1="37.18" x2="19.026" y2="37.18"/>
+ </g>
+</g>
+</svg>
diff --git a/icons/plus.svg b/icons/plus.svg new file mode 100755 index 0000000..e1fc560 --- /dev/null +++ b/icons/plus.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
+ <!ENTITY fill_color "#FFFFFF">
+ <!ENTITY stroke_color "#000000">
+]>
+<svg version="1.1" id="Layer_5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="74.5px" height="74px" viewBox="0 0 74.5 74" enable-background="new 0 0 74.5 74" xml:space="preserve">
+<g>
+ <circle cx="37.026" cy="37.18" r="30" fill="&fill_color;"/>
+ <g>
+ <line fill="none" stroke="&stroke_color;" stroke-width="4" x1="37.026" y1="19.18" x2="37.026" y2="55.18"/>
+ <line fill="none" stroke="&stroke_color;" stroke-width="4" x1="55.026" y1="37.18" x2="19.026" y2="37.18"/>
+ </g>
+</g>
+</svg>
|