From b3892a30563930e9f7ed63cdf82b99d758186c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=80=E9=B8=A3?= Date: Wed, 30 Aug 2023 15:03:21 +0800 Subject: [PATCH] 3.0.1 --- Colors.Rainbow.csproj | 2 +- MainPage.xaml | 6 ++--- Package.appxmanifest | 6 ++--- Views/ColorsPage.xaml | 47 ++++++++++++++++++++++------------------ Views/ColorsPage.xaml.cs | 5 ----- 5 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Colors.Rainbow.csproj b/Colors.Rainbow.csproj index a73ccd7..5d256a7 100644 --- a/Colors.Rainbow.csproj +++ b/Colors.Rainbow.csproj @@ -23,7 +23,7 @@ C:\Users\Shock Jockey\Desktop\ Always x64|arm64 - 5A0BF8439709A49B4461A62D501B413C3C6D9293 + 04D8CC40A318924D78CF923787628717EAA8188E False 0 OnApplicationRun diff --git a/MainPage.xaml b/MainPage.xaml index 7be8cf1..bde4f85 100644 --- a/MainPage.xaml +++ b/MainPage.xaml @@ -21,19 +21,19 @@ - + - + - + diff --git a/Package.appxmanifest b/Package.appxmanifest index e574541..5872c98 100644 --- a/Package.appxmanifest +++ b/Package.appxmanifest @@ -1,6 +1,6 @@  - + Colors.Rainbow @@ -15,8 +15,8 @@ - - + + diff --git a/Views/ColorsPage.xaml b/Views/ColorsPage.xaml index d5ce3e7..3013411 100644 --- a/Views/ColorsPage.xaml +++ b/Views/ColorsPage.xaml @@ -37,7 +37,8 @@ - + + @@ -51,7 +52,7 @@ - + @@ -65,26 +66,30 @@ - - - - - - - - - - - - - - - - - - + diff --git a/Views/ColorsPage.xaml.cs b/Views/ColorsPage.xaml.cs index ff31b94..6c2ff38 100644 --- a/Views/ColorsPage.xaml.cs +++ b/Views/ColorsPage.xaml.cs @@ -79,11 +79,6 @@ public void ShowColorInfo() InfoColor2Ellipse.Fill = solidColorBrush; InfoColor3Ellipse.Fill = solidColorBrush; - double total = RainbowViewModel.Instance.SelectedWinColor.RValue + RainbowViewModel.Instance.SelectedWinColor.GValue + RainbowViewModel.Instance.SelectedWinColor.BValue; - RGrid.Width = total > 0 ? (RainbowViewModel.Instance.SelectedWinColor.RValue / total) * RGBBarGrid.Width : 16; - GGrid.Width = total > 0 ? (RainbowViewModel.Instance.SelectedWinColor.GValue / total) * RGBBarGrid.Width : 16; - BGrid.Width = total > 0 ? (RainbowViewModel.Instance.SelectedWinColor.BValue / total) * RGBBarGrid.Width : 16; - ColorInfoGrid.Visibility = Visibility.Visible; ShowGridAnim.Begin(); }