From 11fdfb4e57b1dc1a12a10c0ad58b327da925e0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikko=20Syrj=C3=A4?= Date: Sat, 16 Feb 2019 00:55:45 +0200 Subject: Toolbar icons. --- README.md | 8 +++ clear.png | Bin 479 -> 0 bytes copy.png | Bin 390 -> 0 bytes image/circle_center.png | Bin 0 -> 1905 bytes image/circle_corner.png | Bin 0 -> 2153 bytes image/circle_horizontal.png | Bin 0 -> 1892 bytes image/circle_vertical.png | Bin 0 -> 2022 bytes image/clipboard_copy_icon&48.png | Bin 0 -> 3902 bytes image/clipboard_cut_icon&48.png | Bin 0 -> 4656 bytes image/clipboard_past_icon&48.png | Bin 0 -> 3941 bytes image/line_poly.png | Bin 0 -> 949 bytes image/line_single.png | Bin 0 -> 1019 bytes image/rectangle_center.png | Bin 0 -> 1844 bytes image/rectangle_corner.png | Bin 0 -> 2146 bytes main.qml | 149 ++++++++++++++++++++++++++++++++++++++- qml.qrc | 13 +++- symedit.pro | 2 +- 17 files changed, 166 insertions(+), 6 deletions(-) delete mode 100644 clear.png delete mode 100644 copy.png create mode 100644 image/circle_center.png create mode 100644 image/circle_corner.png create mode 100644 image/circle_horizontal.png create mode 100644 image/circle_vertical.png create mode 100644 image/clipboard_copy_icon&48.png create mode 100644 image/clipboard_cut_icon&48.png create mode 100644 image/clipboard_past_icon&48.png create mode 100644 image/line_poly.png create mode 100644 image/line_single.png create mode 100644 image/rectangle_center.png create mode 100644 image/rectangle_corner.png diff --git a/README.md b/README.md index 29957b5..5bffef4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Symbol editor Simple symbol editor for use with 3D-Win. + +https://gentleface.com/free_icon_set.html + +krita: + icons: + 48x48 + transparent + line width 5pxkrita diff --git a/clear.png b/clear.png deleted file mode 100644 index 9edf96e..0000000 Binary files a/clear.png and /dev/null differ diff --git a/copy.png b/copy.png deleted file mode 100644 index df34b9f..0000000 Binary files a/copy.png and /dev/null differ diff --git a/image/circle_center.png b/image/circle_center.png new file mode 100644 index 0000000..39cb2c9 Binary files /dev/null and b/image/circle_center.png differ diff --git a/image/circle_corner.png b/image/circle_corner.png new file mode 100644 index 0000000..04d59e8 Binary files /dev/null and b/image/circle_corner.png differ diff --git a/image/circle_horizontal.png b/image/circle_horizontal.png new file mode 100644 index 0000000..a417b63 Binary files /dev/null and b/image/circle_horizontal.png differ diff --git a/image/circle_vertical.png b/image/circle_vertical.png new file mode 100644 index 0000000..ac872a2 Binary files /dev/null and b/image/circle_vertical.png differ diff --git a/image/clipboard_copy_icon&48.png b/image/clipboard_copy_icon&48.png new file mode 100644 index 0000000..f1387b8 Binary files /dev/null and b/image/clipboard_copy_icon&48.png differ diff --git a/image/clipboard_cut_icon&48.png b/image/clipboard_cut_icon&48.png new file mode 100644 index 0000000..82be5f4 Binary files /dev/null and b/image/clipboard_cut_icon&48.png differ diff --git a/image/clipboard_past_icon&48.png b/image/clipboard_past_icon&48.png new file mode 100644 index 0000000..4d90cc0 Binary files /dev/null and b/image/clipboard_past_icon&48.png differ diff --git a/image/line_poly.png b/image/line_poly.png new file mode 100644 index 0000000..ca26d19 Binary files /dev/null and b/image/line_poly.png differ diff --git a/image/line_single.png b/image/line_single.png new file mode 100644 index 0000000..73ea15a Binary files /dev/null and b/image/line_single.png differ diff --git a/image/rectangle_center.png b/image/rectangle_center.png new file mode 100644 index 0000000..4fb055a Binary files /dev/null and b/image/rectangle_center.png differ diff --git a/image/rectangle_corner.png b/image/rectangle_corner.png new file mode 100644 index 0000000..004ceaa Binary files /dev/null and b/image/rectangle_corner.png differ diff --git a/main.qml b/main.qml index b411df2..990c0be 100644 --- a/main.qml +++ b/main.qml @@ -241,10 +241,153 @@ ApplicationWindow { RowLayout { - anchors.fill: parent + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/clipboard_cut_icon&48.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/clipboard_copy_icon&48.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/clipboard_past_icon&48.png" + anchors.fill: parent + } + onClicked: + { - ToolButton { iconSource: "clear.png" } - ToolButton { iconSource: "copy.png" } + } + } + ToolButton { implicitWidth: 8 } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/line_single.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/line_poly.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton { implicitWidth: 8 } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/rectangle_corner.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/rectangle_center.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton { implicitWidth: 8 } + ToolButton + { + width: 32; height: 32 + tooltip: qsTr("Circle Corners") //%% + Image + { + source: "image/circle_corner.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/circle_center.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/circle_horizontal.png" + anchors.fill: parent + } + onClicked: + { + + } + } + ToolButton + { + width: 32; height: 32 + Image + { + source: "image/circle_vertical.png" + anchors.fill: parent + } + onClicked: + { + + } + } Item { Layout.fillWidth: true } CheckBox { diff --git a/qml.qrc b/qml.qrc index f21abe3..253ab56 100644 --- a/qml.qrc +++ b/qml.qrc @@ -1,8 +1,17 @@ main.qml - clear.png - copy.png Editor.qml + image/rectangle_center.png + image/rectangle_corner.png + image/circle_corner.png + image/circle_center.png + image/circle_horizontal.png + image/circle_vertical.png + image/line_single.png + image/line_poly.png + image/clipboard_copy_icon&48.png + image/clipboard_cut_icon&48.png + image/clipboard_past_icon&48.png diff --git a/symedit.pro b/symedit.pro index da59315..f90bcd5 100644 --- a/symedit.pro +++ b/symedit.pro @@ -34,4 +34,4 @@ HEADERS += \ symbol.h DISTFILES += \ - README.md + README.md -- cgit v1.2.3