diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-08-01 18:12:34 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-08-01 18:12:34 +0200 |
commit | f978634e8607f568b83952db9255e08f3f7cbe92 (patch) | |
tree | d619d458e299cd37d9ef9ac0c674779bc20fc435 | |
parent | 74551d71e128efe0f105b52e84420555b70b9f6d (diff) |
new icons
-rw-r--r-- | images/edge-ak.svg | 36 | ||||
-rw-r--r-- | images/node-ak.svg | 14 | ||||
-rw-r--r-- | images/select-ak.svg | 9 | ||||
-rw-r--r-- | src/gui/toolpalette.cpp | 18 | ||||
-rw-r--r-- | tikzit.qrc | 13 |
5 files changed, 74 insertions, 16 deletions
diff --git a/images/edge-ak.svg b/images/edge-ak.svg new file mode 100644 index 0000000..eafc423 --- /dev/null +++ b/images/edge-ak.svg @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 60 60" style="enable-background:new 0 0 60 60;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:none;stroke:#4D4D4D;stroke-width:3;stroke-miterlimit:10;} + .st1{opacity:0.82;fill:none;stroke:#009245;stroke-width:3;stroke-miterlimit:10;enable-background:new ;} + .st2{fill:#CCCCCC;} + .st3{fill:#4D4D4D;} + .st4{fill:#39B54A;} + .st5{fill:#009245;} +</style> +<path class="st0" d="M21.5,15.5c27,0,27,29,0,28.5"/> +<line class="st1" x1="21.5" y1="15.5" x2="48.5" y2="15.5"/> +<g> + <circle class="st2" cx="14" cy="15" r="6.5"/> + <path class="st3" d="M14,10c2.8,0,5,2.2,5,5s-2.2,5-5,5s-5-2.2-5-5S11.2,10,14,10 M14,7c-4.4,0-8,3.6-8,8s3.6,8,8,8s8-3.6,8-8 + S18.4,7,14,7L14,7z"/> +</g> +<g> + <circle class="st4" cx="48.5" cy="15.5" r="3.5"/> + <path class="st5" d="M48.5,13c1.4,0,2.5,1.1,2.5,2.5S49.9,18,48.5,18S46,16.9,46,15.5S47.1,13,48.5,13 M48.5,11 + C46,11,44,13,44,15.5s2,4.5,4.5,4.5s4.5-2,4.5-4.5S51,11,48.5,11L48.5,11z"/> +</g> +<line class="st1" x1="21.5" y1="44" x2="48.5" y2="44"/> +<g> + <circle class="st4" cx="48.5" cy="44" r="3.5"/> + <path class="st5" d="M48.5,41.5c1.4,0,2.5,1.1,2.5,2.5s-1.1,2.5-2.5,2.5S46,45.4,46,44S47.1,41.5,48.5,41.5 M48.5,39.5 + c-2.5,0-4.5,2-4.5,4.5s2,4.5,4.5,4.5s4.5-2,4.5-4.5S51,39.5,48.5,39.5L48.5,39.5z"/> +</g> +<g> + <circle class="st2" cx="15" cy="44" r="6.5"/> + <path class="st3" d="M15,39c2.8,0,5,2.2,5,5s-2.2,5-5,5s-5-2.2-5-5S12.2,39,15,39 M15,36c-4.4,0-8,3.6-8,8s3.6,8,8,8s8-3.6,8-8 + S19.4,36,15,36L15,36z"/> +</g> +</svg> diff --git a/images/node-ak.svg b/images/node-ak.svg new file mode 100644 index 0000000..3bad649 --- /dev/null +++ b/images/node-ak.svg @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 60 60" style="enable-background:new 0 0 60 60;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#CCCCCC;} + .st1{fill:#4D4D4D;} +</style> +<g> + <circle class="st0" cx="29.5" cy="30.5" r="20"/> + <path class="st1" d="M29.5,13C39.1,13,47,20.9,47,30.5S39.1,48,29.5,48S12,40.1,12,30.5S19.9,13,29.5,13 M29.5,8 + C17.1,8,7,18.1,7,30.5S17.1,53,29.5,53S52,42.9,52,30.5S41.9,8,29.5,8L29.5,8z"/> +</g> +</svg> diff --git a/images/select-ak.svg b/images/select-ak.svg new file mode 100644 index 0000000..0f95547 --- /dev/null +++ b/images/select-ak.svg @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 60 60" style="enable-background:new 0 0 60 60;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#CCCCCC;stroke:#4D4D4D;stroke-width:3;stroke-miterlimit:10;} +</style> +<polygon class="st0" points="15.5,9.5 48.5,36.5 28.5,36.5 15.5,52.5 "/> +</svg> diff --git a/src/gui/toolpalette.cpp b/src/gui/toolpalette.cpp index 43a4a49..044e8d0 100644 --- a/src/gui/toolpalette.cpp +++ b/src/gui/toolpalette.cpp @@ -35,26 +35,32 @@ ToolPalette::ToolPalette(QWidget *parent) : tools = new QActionGroup(this); - select = new QAction(QIcon(":/images/Inkscape_icons_edit_select_all.svg"), "Select"); - vertex = new QAction(QIcon(":/images/Inkscape_icons_draw_ellipse.svg"), "Add Vertex"); - edge = new QAction(QIcon(":/images/Inkscape_icons_draw_path.svg"), "Add Edge"); + // select = new QAction(QIcon(":/images/Inkscape_icons_edit_select_all.svg"), "Select"); + // vertex = new QAction(QIcon(":/images/Inkscape_icons_draw_ellipse.svg"), "Add Vertex"); + // edge = new QAction(QIcon(":/images/Inkscape_icons_draw_path.svg"), "Add Edge"); + // crop = new QAction(QIcon(":/images/crop.svg"), "Bounding Box"); + + select = new QAction(QIcon(":/images/select-ak.svg"), "Select"); + vertex = new QAction(QIcon(":/images/node-ak.svg"), "Add Vertex"); + edge = new QAction(QIcon(":/images/edge-ak.svg"), "Add Edge"); crop = new QAction(QIcon(":/images/crop.svg"), "Bounding Box"); + tools->addAction(select); tools->addAction(vertex); tools->addAction(edge); - tools->addAction(crop); + //tools->addAction(crop); select->setCheckable(true); vertex->setCheckable(true); edge->setCheckable(true); - crop->setCheckable(true); + //crop->setCheckable(true); select->setChecked(true); addAction(select); addAction(vertex); addAction(edge); - addAction(crop); + //addAction(crop); } ToolPalette::Tool ToolPalette::currentTool() const @@ -8,16 +8,9 @@ <file>images/document-open.png</file>
<file>images/document-new.svg</file>
<file>images/document-open.svg</file>
- <file>images/Inkscape_icons_draw_calligraphic.svg</file>
- <file>images/Inkscape_icons_draw_ellipse.svg</file>
- <file>images/Inkscape_icons_draw_path.svg</file>
- <file>images/Inkscape_icons_draw_rectangle.svg</file>
- <file>images/Inkscape_icons_node_segment_curve.svg</file>
- <file>images/Inkscape_icons_edit_select_all.svg</file>
- <file>images/crop.svg</file>
- <file>images/edge.svg</file>
- <file>images/node.svg</file>
- <file>images/select.svg</file>
+ <file>images/edge-ak.svg</file>
+ <file>images/node-ak.svg</file>
+ <file>images/select-ak.svg</file>
<file>images/refresh.svg</file>
</qresource>
<qresource prefix="/qt/etc">
|