From a973b40789475607c9b90d1b43c0e0690bb2ff51 Mon Sep 17 00:00:00 2001 From: iTob Date: Tue, 10 Mar 2026 22:06:47 +0100 Subject: [PATCH] "Refactor: Replace PhotoPrism QR code display with generic BaseDialogOverlay for unified dialog handling, remove redundant code, and improve user experience" --- .../CamBooth.App/Core/BaseDialogOverlay.xaml | 58 +++ .../Core/BaseDialogOverlay.xaml.cs | 136 ++++++ .../Features/Camera/CameraService.cs | 453 +++++++++--------- .../PhotoPrismQRCodeDisplayWindow.xaml | 43 -- .../PhotoPrismQRCodeDisplayWindow.xaml.cs | 28 -- .../PictureGallery/PictureGalleryPage.xaml | 7 +- .../PictureGallery/PictureGalleryPage.xaml.cs | 103 +--- src/CamBooth/CamBooth.App/MainWindow.xaml | 113 +++-- src/CamBooth/CamBooth.App/MainWindow.xaml.cs | 131 ++--- 9 files changed, 574 insertions(+), 498 deletions(-) create mode 100644 src/CamBooth/CamBooth.App/Core/BaseDialogOverlay.xaml create mode 100644 src/CamBooth/CamBooth.App/Core/BaseDialogOverlay.xaml.cs delete mode 100644 src/CamBooth/CamBooth.App/Features/PhotoPrismUpload/PhotoPrismQRCodeDisplayWindow.xaml delete mode 100644 src/CamBooth/CamBooth.App/Features/PhotoPrismUpload/PhotoPrismQRCodeDisplayWindow.xaml.cs diff --git a/src/CamBooth/CamBooth.App/Core/BaseDialogOverlay.xaml b/src/CamBooth/CamBooth.App/Core/BaseDialogOverlay.xaml new file mode 100644 index 0000000..568a0ad --- /dev/null +++ b/src/CamBooth/CamBooth.App/Core/BaseDialogOverlay.xaml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + +