From 3731891418d127681979a3c93312274dfef3e342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Tue, 23 Apr 2024 10:32:31 +0200 Subject: [PATCH] Fixed an issue with bookmark menu --- ColorPicker/Pages/ConverterPage.xaml.cs | 2 ++ ColorPicker/Pages/HarmoniesPage.xaml.cs | 2 ++ ColorPicker/Pages/SelectorPage.xaml.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/ColorPicker/Pages/ConverterPage.xaml.cs b/ColorPicker/Pages/ConverterPage.xaml.cs index a8626e07..6af16b9d 100644 --- a/ColorPicker/Pages/ConverterPage.xaml.cs +++ b/ColorPicker/Pages/ConverterPage.xaml.cs @@ -190,6 +190,8 @@ internal void LoadDetails(bool setColor = false) ColorValidIconTxt.Text = "\uF299"; ColorValidIconTxt.Foreground = Global.GetColorFromResource("Green"); + LoadBookmarkMenu(); + // Load the bookmark icon if (!Global.Bookmarks.ColorBookmarks.Contains(HexTxt.Text)) { diff --git a/ColorPicker/Pages/HarmoniesPage.xaml.cs b/ColorPicker/Pages/HarmoniesPage.xaml.cs index 97fa7b57..37533445 100644 --- a/ColorPicker/Pages/HarmoniesPage.xaml.cs +++ b/ColorPicker/Pages/HarmoniesPage.xaml.cs @@ -210,6 +210,8 @@ internal void InitHarmonies() MonochromaticPanel.Children.Add(border); } + LoadBookmarkMenu(); + // Load the bookmark icon if (!Global.Bookmarks.ColorBookmarks.Contains($"#{ColorInfo.HEX.Value}")) { diff --git a/ColorPicker/Pages/SelectorPage.xaml.cs b/ColorPicker/Pages/SelectorPage.xaml.cs index 33c4db26..7535e998 100644 --- a/ColorPicker/Pages/SelectorPage.xaml.cs +++ b/ColorPicker/Pages/SelectorPage.xaml.cs @@ -319,6 +319,8 @@ internal void LoadDetails() YuvTxt.Text = $"{ColorInfo.YUV.Y:0.00}..; {ColorInfo.YUV.U:0.00}..; {ColorInfo.YUV.V:0.00}.."; DecTxt.Text = ColorInfo.DEC.Value.ToString(); + LoadBookmarkMenu(); + // Load the bookmark icon if (!Global.Bookmarks.ColorBookmarks.Contains(HexTxt.Text)) {