From 441dc0e6a734f315e41b0c3f489a9baf1b01015e Mon Sep 17 00:00:00 2001 From: Rebecca Wallander Date: Sun, 12 Apr 2026 11:32:02 +0200 Subject: [PATCH] [GUI] Highlight long BD sector --- Aaru.Gui/ViewModels/Windows/ViewSectorViewModel.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Aaru.Gui/ViewModels/Windows/ViewSectorViewModel.cs b/Aaru.Gui/ViewModels/Windows/ViewSectorViewModel.cs index 79c2de483..3e923d9cb 100644 --- a/Aaru.Gui/ViewModels/Windows/ViewSectorViewModel.cs +++ b/Aaru.Gui/ViewModels/Windows/ViewSectorViewModel.cs @@ -158,6 +158,20 @@ public sealed partial class ViewSectorViewModel : ViewModelBase return; } + if(SectorData.Length == 2052 && LongSectorChecked) + { + // Blu-ray sector + + ColorRange bd_edc = new ColorRange + { + Color = Brushes.LimeGreen, + Start = 2048, + End = 2051 + }; + + HighlightRanges = [bd_edc]; + } + // Not a standard CD sector if(SectorData.Length != 2352) return;