From 61b2ce648a015d910a064b71c5254aff362ae11e Mon Sep 17 00:00:00 2001
From: trawzified <55751269+tr4wzified@users.noreply.github.com>
Date: Tue, 28 Nov 2023 23:19:03 +0100
Subject: [PATCH] Adjust LinksView & hovering colors
---
Wabbajack.App.Wpf/Consts.cs | 3 +
Wabbajack.App.Wpf/Themes/Styles.xaml | 35 ++----
Wabbajack.App.Wpf/Views/LinksView.xaml | 104 +++++++++++++-----
Wabbajack.App.Wpf/Views/LinksView.xaml.cs | 12 +-
Wabbajack.App.Wpf/Views/MainWindow.xaml | 16 +--
.../Views/ModeSelectionView.xaml | 10 +-
.../Views/ModeSelectionView.xaml.cs | 2 +
7 files changed, 105 insertions(+), 77 deletions(-)
diff --git a/Wabbajack.App.Wpf/Consts.cs b/Wabbajack.App.Wpf/Consts.cs
index 7e47b8e6..f664e793 100644
--- a/Wabbajack.App.Wpf/Consts.cs
+++ b/Wabbajack.App.Wpf/Consts.cs
@@ -10,6 +10,9 @@ public static class Consts
public static string AppName = "Wabbajack";
public static Uri WabbajackBuildServerUri => new("https://build.wabbajack.org");
public static Uri WabbajackModlistWizardUri => new("https://wizard.wabbajack.org");
+ public static Uri WabbajackGithubUri => new("https://github.com/wabbajack-tools/wabbajack");
+ public static Uri WabbajackDiscordUri => new("https://discord.gg/wabbajack");
+ public static Uri WabbajackPatreonUri => new("https://www.patreon.com/user?u=11907933");
public static Version CurrentMinimumWabbajackVersion { get; set; } = Version.Parse("2.3.0.0");
public static bool UseNetworkWorkaroundMode { get; set; } = false;
public static AbsolutePath CefCacheLocation { get; } = KnownFolders.WabbajackAppLocal.Combine("Cef");
diff --git a/Wabbajack.App.Wpf/Themes/Styles.xaml b/Wabbajack.App.Wpf/Themes/Styles.xaml
index e947c272..2ab55a1b 100644
--- a/Wabbajack.App.Wpf/Themes/Styles.xaml
+++ b/Wabbajack.App.Wpf/Themes/Styles.xaml
@@ -25,8 +25,8 @@
#222531
- #222531
- #2A2B41
+ #3c3652
+ #4e4571
#424242
#222531
#424242
@@ -50,15 +50,15 @@
#8866ad
#270080
#1b0059
- #03DAC6
+ #3C3652
#0e8f83
#095952
#042421
#cef0ed
#8cede5
#00ffe7
- #C7FC86
- #8eb55e
+ #4e4571
+ #3C3652
#4b6130
#abf74d
#868CFC
@@ -1165,7 +1165,7 @@
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="3">
+ CornerRadius="16">
-
-
-
-
-
-
-
-
+ CornerRadius="20"
+ Padding="13">
-
+
diff --git a/Wabbajack.App.Wpf/Views/LinksView.xaml b/Wabbajack.App.Wpf/Views/LinksView.xaml
index ca346083..fe945a40 100644
--- a/Wabbajack.App.Wpf/Views/LinksView.xaml
+++ b/Wabbajack.App.Wpf/Views/LinksView.xaml
@@ -6,44 +6,90 @@
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:local="clr-namespace:Wabbajack"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:ic="clr-namespace:FluentIcons.WPF;assembly=FluentIcons.WPF"
mc:Ignorable="d">
-
+
-
diff --git a/Wabbajack.App.Wpf/Views/LinksView.xaml.cs b/Wabbajack.App.Wpf/Views/LinksView.xaml.cs
index cd86e41d..2c043542 100644
--- a/Wabbajack.App.Wpf/Views/LinksView.xaml.cs
+++ b/Wabbajack.App.Wpf/Views/LinksView.xaml.cs
@@ -17,18 +17,12 @@ namespace Wabbajack
}
private void GitHub_Click(object sender, RoutedEventArgs e)
- {
- UIUtils.OpenWebsite(new Uri("https://github.com/wabbajack-tools/wabbajack"));
- }
+ => UIUtils.OpenWebsite(Consts.WabbajackGithubUri);
private void Discord_Click(object sender, RoutedEventArgs e)
- {
- UIUtils.OpenWebsite(new Uri("https://discord.gg/wabbajack"));
- }
+ => UIUtils.OpenWebsite(Consts.WabbajackDiscordUri);
private void Patreon_Click(object sender, RoutedEventArgs e)
- {
- UIUtils.OpenWebsite(new Uri("https://www.patreon.com/user?u=11907933"));
- }
+ => UIUtils.OpenWebsite(Consts.WabbajackPatreonUri);
}
}
diff --git a/Wabbajack.App.Wpf/Views/MainWindow.xaml b/Wabbajack.App.Wpf/Views/MainWindow.xaml
index 068196a7..656734f0 100644
--- a/Wabbajack.App.Wpf/Views/MainWindow.xaml
+++ b/Wabbajack.App.Wpf/Views/MainWindow.xaml
@@ -46,16 +46,16 @@
-
+
-
+
-
+
-
+
@@ -102,22 +102,22 @@
diff --git a/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml b/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml
index 5b5bba54..1e50fc77 100644
--- a/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml
+++ b/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml
@@ -15,8 +15,8 @@
+
-
@@ -184,6 +184,7 @@
+
+
+
diff --git a/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml.cs b/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml.cs
index 05a838fa..d669bd1f 100644
--- a/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml.cs
+++ b/Wabbajack.App.Wpf/Views/ModeSelectionView.xaml.cs
@@ -29,6 +29,7 @@ namespace Wabbajack
InitializeComponent();
this.WhenActivated(dispose =>
{
+ /*
this.WhenAny(x => x.ViewModel.BrowseCommand)
.BindToStrict(this, x => x.BrowseButton.Command)
.DisposeWith(dispose);
@@ -38,6 +39,7 @@ namespace Wabbajack
this.WhenAny(x => x.ViewModel.CompileCommand)
.BindToStrict(this, x => x.CompileButton.Command)
.DisposeWith(dispose);
+ */
this.WhenAnyValue(x => x.ViewModel.Modlists)
.Select(x => x?.Length.ToString() ?? "0")
.BindToStrict(this, x => x.ModlistAmountTextBlock.Text)