Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions TouchSenderTablet.GUI/Strings/en-us/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@
<data name="Settings_About.Text" xml:space="preserve">
<value>About</value>
</data>
<data name="Settings_About_GitHubRepository.Header" xml:space="preserve">
<value>GitHub Repository</value>
</data>
<data name="Settings_About_GitHubIssues.Header" xml:space="preserve">
<value>Report a bug or send feedback</value>
</data>
<data name="Settings_AboutDescription.Text" xml:space="preserve">
<value>TODO: Replace with your app description.</value>
</data>
Expand Down
6 changes: 6 additions & 0 deletions TouchSenderTablet.GUI/Strings/ja-jp/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@
<data name="Settings_About.Text" xml:space="preserve">
<value>About</value>
</data>
<data name="Settings_About_GitHubRepository.Header" xml:space="preserve">
<value>GitHubリポジトリ</value>
</data>
<data name="Settings_About_GitHubIssues.Header" xml:space="preserve">
<value>バグ報告またはフィードバックの送信</value>
</data>
<data name="Settings_AboutDescription.Text" xml:space="preserve">
<value>TODO: Replace with your app description.</value>
</data>
Expand Down
14 changes: 14 additions & 0 deletions TouchSenderTablet.GUI/Views/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
IsTextSelectionEnabled="True"
Text="{x:Bind ViewModel.Version}" />
<toolkit:SettingsExpander.Items>
<toolkit:SettingsCard
x:Name="GitHubRepositorySettingsCard"
x:Uid="Settings_About_GitHubRepository"
ActionIcon="{ui:FontIcon Glyph=&#xE8A7;}"
Click="GitHubRepositorySettingsCard_Click"
IsClickEnabled="True" />
<toolkit:SettingsCard
x:Name="GitHubIssuesSettingsCard"
x:Uid="Settings_About_GitHubIssues"
ActionIcon="{ui:FontIcon Glyph=&#xE8A7;}"
Click="GitHubIssuesSettingsCard_Click"
IsClickEnabled="True" />
</toolkit:SettingsExpander.Items>
</toolkit:SettingsExpander>
<toolkit:SettingsCard x:Uid="LogFile" HeaderIcon="{ui:FontIcon Glyph=&#xE8E5;}">
<StackPanel Orientation="Horizontal" Spacing="12">
Expand Down
22 changes: 21 additions & 1 deletion TouchSenderTablet.GUI/Views/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.UI.Xaml;
using System.Diagnostics;

using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;

using TouchSenderTablet.GUI.Helpers;
Expand Down Expand Up @@ -28,4 +30,22 @@ private void OnThemeSelectionChanged(object sender, SelectionChangedEventArgs e)
ViewModel.SwitchThemeCommand.Execute(EnumHelper.GetEnum<ElementTheme>(selectedTheme));
}
}

private void GitHubRepositorySettingsCard_Click(object sender, RoutedEventArgs e)
{
Process.Start(new ProcessStartInfo
{
FileName = "https://github.com/voltaney/TouchSenderTablet",
UseShellExecute = true,
});
}

private void GitHubIssuesSettingsCard_Click(object sender, RoutedEventArgs e)
{
Process.Start(new ProcessStartInfo
{
FileName = "https://github.com/voltaney/TouchSenderTablet/issues",
UseShellExecute = true,
});
}
}
Loading