From 308197c15e295441711f77675a29e2de0ca3f7b4 Mon Sep 17 00:00:00 2001 From: Msystech Date: Wed, 12 Aug 2026 12:54:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=84=EB=8F=84=20=EC=B0=BD=20=EC=A0=84?= =?UTF-8?q?=EC=88=98=20=EC=A0=90=EA=B2=80=20=E2=80=94=20=EC=95=94=EC=8B=9C?= =?UTF-8?q?=20Window=20=EC=8A=A4=ED=83=80=EC=9D=BC=EC=9D=B4=20=ED=8C=8C?= =?UTF-8?q?=EC=83=9D=20=ED=81=B4=EB=9E=98=EC=8A=A4=EC=97=90=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9=EB=90=9C=20=EC=A0=81=EC=9D=B4=20=EC=97=86=EC=97=88?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사용자 지적: "다른 창으로(새창으로 열리는) 실행하는 항목들도 모두 점검해줘". [근본 원인 — 대화상자 전체가 다크에서 흰 창이었다] WPF 는 암시 스타일을 요소의 **정확한 런타임 타입**으로만 찾는다. 저장소의 모든 창이 Window 를 상속한 클래스(SheetOpenDialogView : Window, QueryEditorWindow : Window …)라 DesignerTheme.xaml 의 + + diff --git a/src/SheetMe.Designer/Views/ColorPickerWindow.cs b/src/SheetMe.Designer/Views/ColorPickerWindow.cs index 1b92bbc..d6354e7 100644 --- a/src/SheetMe.Designer/Views/ColorPickerWindow.cs +++ b/src/SheetMe.Designer/Views/ColorPickerWindow.cs @@ -54,6 +54,11 @@ public sealed class ColorPickerWindow : Window private ColorPickerWindow(string? initialHex) { Title = "색상 선택"; + // 암시 Window 스타일은 파생 클래스에 적용되지 않는다 — 직접 걸지 않으면 다크에서 흰 창이 된다 + if (Application.Current?.TryFindResource("ThemedWindow") is Style themed) + { + Style = themed; + } Width = 300; SizeToContent = SizeToContent.Height; WindowStartupLocation = WindowStartupLocation.CenterOwner; diff --git a/src/SheetMe.Designer/Views/FontManagerDialogView.xaml b/src/SheetMe.Designer/Views/FontManagerDialogView.xaml index 5bda3bc..ef22180 100644 --- a/src/SheetMe.Designer/Views/FontManagerDialogView.xaml +++ b/src/SheetMe.Designer/Views/FontManagerDialogView.xaml @@ -2,7 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="폰트 일괄 변경" Width="620" Height="560" MinWidth="520" MinHeight="420" - WindowStartupLocation="CenterOwner" ShowInTaskbar="False"> + WindowStartupLocation="CenterOwner" ShowInTaskbar="False" + Style="{StaticResource ThemedWindow}"> diff --git a/src/SheetMe.Designer/Views/MainView.xaml b/src/SheetMe.Designer/Views/MainView.xaml index 20b1c8d..f3af249 100644 --- a/src/SheetMe.Designer/Views/MainView.xaml +++ b/src/SheetMe.Designer/Views/MainView.xaml @@ -16,7 +16,8 @@ Width="1440" Height="920" MinWidth="940" MinHeight="640" WindowStyle="None" WindowStartupLocation="CenterScreen" Background="{DynamicResource B.AppBg}" FontFamily="Malgun Gothic" FontSize="13" - Loaded="OnWindowLoaded" StateChanged="OnWindowStateChanged" Closing="OnWindowClosing"> + Loaded="OnWindowLoaded" StateChanged="OnWindowStateChanged" Closing="OnWindowClosing" + Style="{StaticResource ThemedWindow}">