Skip to content

Commit e91dd67

Browse files
committed
Added new icons
1 parent b7822d3 commit e91dd67

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

Constants.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ public static class Icons
1111
public const string Warning = "Images/warning.png";
1212

1313
public const string Section = "Images/section.png";
14-
public const string Notebook = "Images/section.png";
14+
public const string Notebook = "Images/notebook.png";
15+
public const string NewPage = "Images/new_page.png";
16+
public const string NewSection = "Images/new_section.png";
17+
public const string NewNotebook = "Images/new_notebook.png";
1518
}
1619
public static class Keywords
1720
{

Images/new_notebook.png

1.61 KB
Loading

Images/new_page.png

6.64 KB
Loading

Images/new_section.png

1.74 KB
Loading

ResultCreator.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,16 @@ public Result CreateNotebookResult(IOneNoteExtNotebook notebook, List<int> highl
100100
},
101101
};
102102
}
103+
104+
103105
public Result CreateNewPageResult(IOneNoteSection section, IOneNoteNotebook notebook, string pageTitle)
104106
{
105107
pageTitle = pageTitle.Trim();
106108
return new Result
107109
{
108110
Title = $"Create page: \"{pageTitle}\"",
109111
SubTitle = $"Path: {GetNicePath(section,notebook,true)}",
110-
//IcoPath = Constants.LogoIconPath,
112+
IcoPath = Icons.NewPage,
111113
Action = c =>
112114
{
113115
ScipBeExtensions.CreateAndOpenPage(LastSelectedSection, pageTitle);
@@ -125,6 +127,7 @@ public Result CreateNewSectionResult(IOneNoteNotebook notebook, string sectionTi
125127
{
126128
Title = $"Create section: \"{sectionTitle}\"",
127129
SubTitle = $"Path: {notebook.Name}",
130+
IcoPath = Icons.NewSection,
128131
Action = c =>
129132
{
130133
ScipBeExtensions.CreateAndOpenSection(LastSelectedNotebook,sectionTitle);
@@ -144,7 +147,7 @@ public Result CreateNewNotebookResult(string notebookTitle)
144147
Title = $"Create notebook: \"{notebookTitle}\"",
145148
//TitleHighlightData = context.API.FuzzySearch(notebookTitle,title).MatchData,
146149
SubTitle = $"Location: {ScipBeExtensions.GetDefaultNotebookLocation()}",
147-
//IcoPath =
150+
IcoPath = Icons.NewNotebook,
148151
Action = c =>
149152
{
150153
ScipBeExtensions.CreateAndOpenNotebook(context,notebookTitle);

0 commit comments

Comments
 (0)