From 14d5eb6aea5446c74bea88dd6775339695df5d33 Mon Sep 17 00:00:00 2001 From: Owen McGirr Date: Tue, 28 Jul 2026 11:47:33 +0100 Subject: [PATCH 1/2] Fix switch profile sizing at high DPI --- .../Chrome/SwitchifyTitleBar.xaml | 17 +++++ .../Chrome/SwitchifyTitleBar.xaml.cs | 41 +++++++++++- .../SwitchControlProfileWindow.xaml | 45 ++++++++----- .../SwitchControlProfileWindow.xaml.cs | 65 +++++++++++++++++++ .../SwitchControlProfileWindowTests.cs | 42 +++++++++++- .../SwitchifyTitleBarTests.cs | 40 ++++++++++++ 6 files changed, 229 insertions(+), 21 deletions(-) diff --git a/src/SwitchifyPc.App/Chrome/SwitchifyTitleBar.xaml b/src/SwitchifyPc.App/Chrome/SwitchifyTitleBar.xaml index 1c555aa..fd6ca1d 100644 --- a/src/SwitchifyPc.App/Chrome/SwitchifyTitleBar.xaml +++ b/src/SwitchifyPc.App/Chrome/SwitchifyTitleBar.xaml @@ -155,6 +155,23 @@ AutomationProperties.Name="Minimize" Visibility="{Binding ShowMinimizeButton, RelativeSource={RelativeSource AncestorType=UserControl}, Converter={StaticResource BooleanToVisibilityConverter}}" Click="MinimizeButton_Click" /> +