-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nayaku
committed
Feb 2, 2023
1 parent
67ad55e
commit ccea151
Showing
22 changed files
with
250 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Stylet; | ||
using System.Reflection; | ||
|
||
namespace ImageManager.ViewModels | ||
{ | ||
public class AboutViewModel : PropertyChangedBase | ||
{ | ||
public string Version { get => Assembly.GetEntryAssembly().GetName().Version.ToString(); } | ||
|
||
public void OpenProjectHome() | ||
{ | ||
System.Diagnostics.Process.Start("explorer.exe", "https://github.com/nayaku/ImageManager"); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<hc:Window | ||
x:Class="ImageManager.Views.AboutView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:hc="https://handyorg.github.io/handycontrol" | ||
xmlns:local="clr-namespace:ImageManager.Views" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:s="https://github.com/canton7/Stylet" | ||
xmlns:viewmodels="clr-namespace:ImageManager.ViewModels" | ||
Title="关于" | ||
Width="600" | ||
Height="350" | ||
d:DataContext="{d:DesignInstance Type=viewmodels:AboutViewModel}" | ||
mc:Ignorable="d"> | ||
<hc:Window.Resources> | ||
<Style x:Key="LinkButton" TargetType="Button"> | ||
|
||
<Setter Property="Width" Value="Auto" /> | ||
|
||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="Button"> | ||
<ContentPresenter | ||
VerticalAlignment="Center" | ||
Content="{TemplateBinding Content}" | ||
ContentTemplate="{TemplateBinding ContentTemplate}"> | ||
<ContentPresenter.Resources> | ||
<Style TargetType="{x:Type TextBlock}"> | ||
<Setter Property="TextDecorations" Value="Underline" /> | ||
</Style> | ||
</ContentPresenter.Resources> | ||
</ContentPresenter> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
<Setter Property="Foreground" Value="#FF55AAFF" /> | ||
<Setter Property="Cursor" Value="Hand" /> | ||
<Style.Triggers> | ||
<Trigger Property="IsMouseOver" Value="true"> | ||
<Setter Property="Foreground" Value="#FFD64C4C" /> | ||
</Trigger> | ||
</Style.Triggers> | ||
</Style> | ||
</hc:Window.Resources> | ||
<StackPanel> | ||
<TextBlock | ||
Margin="0,40" | ||
HorizontalAlignment="Center" | ||
FontSize="40" | ||
FontWeight="SemiBold" | ||
Foreground="Orange"> | ||
素 材 管 理 姬 | ||
</TextBlock> | ||
<StackPanel | ||
Margin="0,5" | ||
HorizontalAlignment="Center" | ||
Orientation="Horizontal"> | ||
<TextBlock FontSize="15"> | ||
版本号: | ||
</TextBlock> | ||
<TextBlock FontSize="15" Text="{Binding Version}" /> | ||
</StackPanel> | ||
|
||
<Border Height="80" /> | ||
<StackPanel | ||
Margin="0,5" | ||
HorizontalAlignment="Center" | ||
Orientation="Horizontal"> | ||
<TextBlock> | ||
项目地址: | ||
</TextBlock> | ||
<Button | ||
Command="{s:Action OpenProjectHome}" | ||
Content="https://github.com/nayaku/ImageManager" | ||
Style="{DynamicResource LinkButton}" /> | ||
</StackPanel> | ||
<TextBlock Margin="0,5" HorizontalAlignment="Center"> | ||
作者: Nayaku | ||
</TextBlock> | ||
</StackPanel> | ||
</hc:Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace ImageManager.Views | ||
{ | ||
/// <summary> | ||
/// AboutView.xaml 的交互逻辑 | ||
/// </summary> | ||
public partial class AboutView | ||
{ | ||
public AboutView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.