-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add icon for each dialog window * update Application Name and About menu
- Loading branch information
Showing
5 changed files
with
51 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
<Application xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:PurpleExplorer" | ||
x:Class="PurpleExplorer.App"> | ||
xmlns:vm="clr-namespace:PurpleExplorer.ViewModels;assembly=PurpleExplorer" | ||
x:Class="PurpleExplorer.App" | ||
Name="Purple Explorer"> | ||
<Application.DataTemplates> | ||
<local:ViewLocator/> | ||
<local:ViewLocator /> | ||
</Application.DataTemplates> | ||
|
||
<Application.Styles> | ||
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/> | ||
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/> | ||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Default.xaml"/> | ||
<StyleInclude Source="/Styles/Icons.xaml"/> | ||
<StyleInclude Source="/Styles/CustomStyles.xaml"/> | ||
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml" /> | ||
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml" /> | ||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Default.xaml" /> | ||
<StyleInclude Source="/Styles/Icons.xaml" /> | ||
<StyleInclude Source="/Styles/CustomStyles.xaml" /> | ||
</Application.Styles> | ||
</Application> | ||
|
||
<Design.DataContext> | ||
<vm:AppWindowViewModel /> | ||
</Design.DataContext> | ||
|
||
<NativeMenu.Menu> | ||
<NativeMenu> | ||
<NativeMenuItem Header="About Purple Explorer" Command="{Binding Path=AboutPageCommand}" /> | ||
</NativeMenu> | ||
</NativeMenu.Menu> | ||
</Application> |
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,25 @@ | ||
using System.Reactive; | ||
using PurpleExplorer.Helpers; | ||
using ReactiveUI; | ||
|
||
namespace PurpleExplorer.ViewModels | ||
{ | ||
public class AppWindowViewModel : ViewModelBase | ||
{ | ||
public AppWindowViewModel() | ||
{ | ||
AboutPageCommand = ReactiveCommand.Create(AboutPage); | ||
} | ||
|
||
public ReactiveCommand<Unit, Unit> AboutPageCommand { get; } | ||
|
||
public async void AboutPage() | ||
{ | ||
await MessageBoxHelper.ShowMessage("About Purple Explorer", | ||
"Purple Explorer - cross-platform Azure Service Bus explorer (Windows, macOS, Linux) \n\n" + | ||
"Thank you for using Purple Explorer! \n " + | ||
"For updated information on the functionalities that Purple Explorer supports, please visit: \n " + | ||
"https://github.com/telstrapurple/PurpleExplorer "); | ||
} | ||
} | ||
} |
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