diff --git a/src/resources/icons/dir_item.svg b/src/resources/icons/dir_item.svg
new file mode 100644
index 00000000..fa77fea2
--- /dev/null
+++ b/src/resources/icons/dir_item.svg
@@ -0,0 +1,10 @@
+
+
+
+
diff --git a/src/resources/icons/notebook_item.svg b/src/resources/icons/notebook_item.svg
new file mode 100644
index 00000000..77fd4883
--- /dev/null
+++ b/src/resources/icons/notebook_item.svg
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/src/vdirectorytree.cpp b/src/vdirectorytree.cpp
index 5264ec7f..9de6b06b 100644
--- a/src/vdirectorytree.cpp
+++ b/src/vdirectorytree.cpp
@@ -102,6 +102,7 @@ void VDirectoryTree::fillDirectoryTreeItem(QTreeWidgetItem &item, QJsonObject it
{
item.setText(0, itemJson["name"].toString());
item.setData(0, Qt::UserRole, itemJson);
+ item.setIcon(0, QIcon(":/resources/icons/dir_item.svg"));
}
QTreeWidgetItem* VDirectoryTree::insertDirectoryTreeItem(QTreeWidgetItem *parent, QTreeWidgetItem *preceding,
diff --git a/src/vmainwindow.cpp b/src/vmainwindow.cpp
index f5235391..861a20d5 100644
--- a/src/vmainwindow.cpp
+++ b/src/vmainwindow.cpp
@@ -380,7 +380,8 @@ void VMainWindow::updateNotebookComboBox(const QVector ¬ebooks)
notebookComboMuted = true;
notebookComboBox->clear();
for (int i = 0; i < notebooks.size(); ++i) {
- notebookComboBox->addItem(notebooks[i].getName());
+ notebookComboBox->addItem(QIcon(":/resources/icons/notebook_item.svg"),
+ notebooks[i].getName());
}
notebookComboMuted = false;
@@ -398,7 +399,8 @@ void VMainWindow::updateNotebookComboBox(const QVector ¬ebooks)
void VMainWindow::notebookComboBoxAdded(const QVector ¬ebooks, int idx)
{
notebookComboMuted = true;
- notebookComboBox->insertItem(idx, notebooks[idx].getName());
+ notebookComboBox->insertItem(idx, QIcon(":/resources/icons/notebook_item.svg"),
+ notebooks[idx].getName());
notebookComboMuted = false;
if (notebookComboBox->currentIndex() == vconfig.getCurNotebookIndex()) {
setCurNotebookIndex(vconfig.getCurNotebookIndex());
diff --git a/src/vnote.qrc b/src/vnote.qrc
index 24e857b4..b6edbc03 100644
--- a/src/vnote.qrc
+++ b/src/vnote.qrc
@@ -67,5 +67,7 @@
resources/icons/copy.svg
resources/icons/cut.svg
resources/icons/paste.svg
+ resources/icons/dir_item.svg
+ resources/icons/notebook_item.svg