Kaynağa Gözat

refine icons

Le Tan 8 yıl önce
ebeveyn
işleme
95548a68e0

+ 9 - 0
src/resources/icons/create_subdir.svg

@@ -0,0 +1,9 @@
+<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
+ <g>
+  <title>Layer 1</title>
+  <polygon fill="black" id="svg_1" points="272,170.0833282470703 189.9166717529297,170.0833282470703 189.9166717529297,88 157.0833282470703,88 157.0833282470703,170.0833282470703 75,170.0833282470703 75,202.9166717529297 157.0833282470703,202.9166717529297 157.0833282470703,285 189.9166717529297,285 189.9166717529297,202.9166717529297 272,202.9166717529297 "/>
+  <g id="svg_7"/>
+  <polygon id="svg_9" fill="black" points="435.5,307.5833282470703 353.41668701171875,307.5833282470703 353.41668701171875,225.5 320.58331298828125,225.5 320.58331298828125,307.5833282470703 238.5,307.5833282470703 238.5,340.4166717529297 320.58331298828125,340.4166717529297 320.58331298828125,422.5 353.41668701171875,422.5 353.41668701171875,340.4166717529297 435.5,340.4166717529297 "/>
+ </g>
+
+</svg>

+ 7 - 11
src/resources/icons/sort.svg

@@ -1,12 +1,8 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<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"
-	 width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
-<g>
-	<rect x="80" y="352" width="64" height="64"/>
-	<rect x="176" y="288" width="64" height="128"/>
-	<rect x="272" y="192" width="64" height="224"/>
-	<rect x="368" y="96" width="64" height="320"/>
-</g>
+<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
+ <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
+ <g>
+  <title>Layer 2</title>
+  <text fill="#000000" stroke-width="0" x="50.16984" y="94.53242" id="svg_1" font-size="24" font-family="Sans-serif" text-anchor="middle" xml:space="preserve" transform="matrix(14.638787563577418,0,0,15.425402876908336,-563.6705867690341,-1147.819919301283) " stroke="#000000">A</text>
+  <text id="svg_3" fill="#000000" stroke-width="0" x="42.10906" y="100.56143" font-size="24" font-family="Sans-serif" text-anchor="middle" xml:space="preserve" transform="matrix(14.638787563577418,0,0,15.425402876908336,-251.02721518700292,-1086.2459218037245) " stroke="#000000">Z</text>
+ </g>
 </svg>

+ 2 - 1
src/vdirectorytree.cpp

@@ -81,7 +81,8 @@ void VDirectoryTree::initActions()
     connect(newRootDirAct, &QAction::triggered,
             this, &VDirectoryTree::newRootDirectory);
 
-    newSubDirAct = new QAction(tr("&New Subfolder"), this);
+    newSubDirAct = new QAction(QIcon(":/resources/icons/create_subdir.svg"),
+                               tr("&New Subfolder"), this);
     newSubDirAct->setToolTip(tr("Create a subfolder"));
     connect(newSubDirAct, &QAction::triggered,
             this, &VDirectoryTree::newSubDirectory);

+ 1 - 0
src/vnote.qrc

@@ -129,5 +129,6 @@
         <file>resources/icons/locate_attachment.svg</file>
         <file>resources/icons/delete_attachment.svg</file>
         <file>resources/icons/sort.svg</file>
+        <file>resources/icons/create_subdir.svg</file>
     </qresource>
 </RCC>