From 5ef66423066b7147ba34246629d62d70cf04e6e6 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 14 Oct 2022 20:49:02 +0800 Subject: [PATCH] style: re-design the style for Welcome page --- src/Views/Launcher.xaml.cs | 2 +- src/Views/Widgets/Welcome.xaml | 8 ++++++-- src/Views/Widgets/Welcome.xaml.cs | 7 +++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/Views/Launcher.xaml.cs b/src/Views/Launcher.xaml.cs index 4aa6a1e7..ea5db650 100644 --- a/src/Views/Launcher.xaml.cs +++ b/src/Views/Launcher.xaml.cs @@ -87,7 +87,7 @@ namespace SourceGit.Views { iconMode.Width = 12; iconMode.Height = 12; iconMode.Data = FindResource(icon) as Geometry; - iconMode.SetResourceReference(Path.FillProperty, "Brush.FG2"); + iconMode.SetResourceReference(Path.FillProperty, "Brush.FG1"); var item = new MenuItem(); item.Icon = iconMode; diff --git a/src/Views/Widgets/Welcome.xaml b/src/Views/Widgets/Welcome.xaml index a951aca4..3c0a8880 100644 --- a/src/Views/Widgets/Welcome.xaml +++ b/src/Views/Widgets/Welcome.xaml @@ -149,6 +149,7 @@ + - + - diff --git a/src/Views/Widgets/Welcome.xaml.cs b/src/Views/Widgets/Welcome.xaml.cs index 6ee3a0b0..8ff4c429 100644 --- a/src/Views/Widgets/Welcome.xaml.cs +++ b/src/Views/Widgets/Welcome.xaml.cs @@ -7,6 +7,7 @@ using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Media; +using System.Xml.Linq; namespace SourceGit.Views.Widgets { @@ -83,6 +84,12 @@ namespace SourceGit.Views.Widgets { e.Handled = true; } + private void OnExploreRepository(object sender, RoutedEventArgs e) { + var repo = (sender as Control).DataContext as Models.Repository; + Process.Start("explorer", repo.Path); + e.Handled = true; + } + private void OnChangeRepositoryBookmark(object sender, RoutedEventArgs e) { var btn = (sender as Button); var repo = btn.DataContext as Models.Repository;