From fe5edd9c5dcc280ecdabb4262caea3aa982fdc84 Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Mon, 24 Nov 2025 12:23:59 +0100 Subject: [PATCH] First set of UX changes to flyout --- .../Configuration/AppConstants.cs | 5 +- .../PowerDisplay/PowerDisplay.csproj | 1 + .../PowerDisplayXAML/MainWindow.xaml | 520 +++++++----------- .../PowerDisplayXAML/MainWindow.xaml.cs | 48 +- .../PowerDisplay/Strings/en-us/Resources.resw | 2 +- 5 files changed, 215 insertions(+), 361 deletions(-) diff --git a/src/modules/powerdisplay/PowerDisplay/Configuration/AppConstants.cs b/src/modules/powerdisplay/PowerDisplay/Configuration/AppConstants.cs index 30467dd4b4..82642c8952 100644 --- a/src/modules/powerdisplay/PowerDisplay/Configuration/AppConstants.cs +++ b/src/modules/powerdisplay/PowerDisplay/Configuration/AppConstants.cs @@ -52,12 +52,11 @@ namespace PowerDisplay.Configuration public static class UI { // Window dimensions - public const int WindowWidth = 640; + public const int WindowWidth = 386; public const int MaxWindowHeight = 650; - public const int WindowRightMargin = 10; + public const int WindowRightMargin = 12; // Animation and layout update delays (milliseconds) - public const int AnimationDelayMs = 100; public const int LayoutUpdateDelayMs = 50; public const int MonitorDiscoveryDelayMs = 200; diff --git a/src/modules/powerdisplay/PowerDisplay/PowerDisplay.csproj b/src/modules/powerdisplay/PowerDisplay/PowerDisplay.csproj index 2e9f8ff011..d4208b63db 100644 --- a/src/modules/powerdisplay/PowerDisplay/PowerDisplay.csproj +++ b/src/modules/powerdisplay/PowerDisplay/PowerDisplay.csproj @@ -45,6 +45,7 @@ + diff --git a/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml b/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml index 60a938ac5f..57164b3993 100644 --- a/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml +++ b/src/modules/powerdisplay/PowerDisplay/PowerDisplayXAML/MainWindow.xaml @@ -1,351 +1,241 @@ - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - + - + - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - + + + + + - - - - - - - + + + + + + + - + + - + + + + + + - - + - + + - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - + + + + - - - - + + - - - - - + + +