Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit a9b927e

Browse files
author
NATSUME Hiroaki
committed
Add FAQ section with corresponding resources and update HelpType enumeration
1 parent 2d621d7 commit a9b927e

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

Tunny/WPF/Assets/Resources.xaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,18 @@
192192
</DrawingImage.Drawing>
193193
</DrawingImage>
194194

195+
<DrawingImage x:Key="Export">
196+
<DrawingImage.Drawing>
197+
<GeometryDrawing Brush="#0C0C6A" Geometry="M23,12L19,8V11H10V13H19V16M1,18V6C1,4.89 1.9,4 3,4H15A2,2 0 0,1 17,6V9H15V6H3V18H15V15H17V18A2,2 0 0,1 15,20H3A2,2 0 0,1 1,18Z" />
198+
</DrawingImage.Drawing>
199+
</DrawingImage>
200+
201+
<DrawingImage x:Key="FrequentlyAskedQuestions">
202+
<DrawingImage.Drawing>
203+
<GeometryDrawing Brush="#0C0C6A" Geometry="M18,15H6L2,19V3A1,1 0 0,1 3,2H18A1,1 0 0,1 19,3V14A1,1 0 0,1 18,15M23,9V23L19,19H8A1,1 0 0,1 7,18V17H21V8H22A1,1 0 0,1 23,9M8.19,4C7.32,4 6.62,4.2 6.08,4.59C5.56,5 5.3,5.57 5.31,6.36L5.32,6.39H7.25C7.26,6.09 7.35,5.86 7.53,5.7C7.71,5.55 7.93,5.47 8.19,5.47C8.5,5.47 8.76,5.57 8.94,5.75C9.12,5.94 9.2,6.2 9.2,6.5C9.2,6.82 9.13,7.09 8.97,7.32C8.83,7.55 8.62,7.75 8.36,7.91C7.85,8.25 7.5,8.55 7.31,8.82C7.11,9.08 7,9.5 7,10H9C9,9.69 9.04,9.44 9.13,9.26C9.22,9.08 9.39,8.9 9.64,8.74C10.09,8.5 10.46,8.21 10.75,7.81C11.04,7.41 11.19,7 11.19,6.5C11.19,5.74 10.92,5.13 10.38,4.68C9.85,4.23 9.12,4 8.19,4M7,11V13H9V11H7M13,13H15V11H13V13M13,4V10H15V4H13Z" />
204+
</DrawingImage.Drawing>
205+
</DrawingImage>
206+
195207
<DrawingGroup x:Key="TunnyIconInput">
196208
<DrawingGroup.ClipGeometry>
197209
<RectangleGeometry Rect="0.0,0.0,100.0,100.0" />

Tunny/WPF/Common/HelpType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ public enum HelpType
99
TunnyLicense,
1010
PythonPackagesLicense,
1111
OtherLicense,
12+
FAQ,
1213
}
1314
}

Tunny/WPF/MainWindow.xaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@
392392
<RibbonButton
393393
Command="{Binding ListOutputCommand}"
394394
Label="Selection"
395-
LargeImageSource="{StaticResource TunnyIcon}"
396-
SmallImageSource="{StaticResource TunnyIcon}" />
395+
LargeImageSource="{StaticResource Export}"
396+
SmallImageSource="{StaticResource Export}" />
397397
</RibbonGroup>
398398
</RibbonTab>
399399

@@ -472,6 +472,12 @@
472472
Label="Tunny"
473473
LargeImageSource="{StaticResource TunnyIcon}"
474474
SmallImageSource="{StaticResource TunnyIcon}" />
475+
<RibbonButton
476+
Command="{Binding OpenHelpPageCommand}"
477+
CommandParameter="{x:Static common:HelpType.FAQ}"
478+
Label="FAQ"
479+
LargeImageSource="{StaticResource FrequentlyAskedQuestions}"
480+
SmallImageSource="{StaticResource FrequentlyAskedQuestions}" />
475481
<RibbonButton
476482
Command="{Binding OpenHelpPageCommand}"
477483
CommandParameter="{x:Static common:HelpType.OptunaSampler}"

Tunny/WPF/Views/Pages/HelpPage.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ internal void OpenSite(HelpType? type)
4848
case HelpType.OtherLicense:
4949
_browser.Value.Address = "https://github.com/hrntsm/Tunny/blob/main/THIRD_PARTY_LICENSES";
5050
break;
51+
case HelpType.FAQ:
52+
_browser.Value.Address = "https://tunny-docs.deno.dev/docs/faq";
53+
break;
5154
default:
5255
throw new ArgumentOutOfRangeException(nameof(type), type, null);
5356
}

0 commit comments

Comments
 (0)