From 95548a68e088963745cc3e619a7718a95652231a Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sat, 30 Sep 2017 20:34:00 +0800 Subject: [PATCH] refine icons --- src/resources/icons/create_subdir.svg | 9 +++++++++ src/resources/icons/sort.svg | 18 +++++++----------- src/vdirectorytree.cpp | 3 ++- src/vnote.qrc | 1 + 4 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 src/resources/icons/create_subdir.svg diff --git a/src/resources/icons/create_subdir.svg b/src/resources/icons/create_subdir.svg new file mode 100644 index 00000000..76f13692 --- /dev/null +++ b/src/resources/icons/create_subdir.svg @@ -0,0 +1,9 @@ + + + Layer 1 + + + + + + diff --git a/src/resources/icons/sort.svg b/src/resources/icons/sort.svg index 14f9bc25..9dcee9ac 100644 --- a/src/resources/icons/sort.svg +++ b/src/resources/icons/sort.svg @@ -1,12 +1,8 @@ - - - - - - - - - - + + + + Layer 2 + A + Z + diff --git a/src/vdirectorytree.cpp b/src/vdirectorytree.cpp index 2529c1b2..c4428a87 100644 --- a/src/vdirectorytree.cpp +++ b/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); diff --git a/src/vnote.qrc b/src/vnote.qrc index 7c2b6ce6..5783fc0b 100644 --- a/src/vnote.qrc +++ b/src/vnote.qrc @@ -129,5 +129,6 @@ resources/icons/locate_attachment.svg resources/icons/delete_attachment.svg resources/icons/sort.svg + resources/icons/create_subdir.svg