diff --git a/src/SheetMe.Designer/Diagnostics/DialogShots.cs b/src/SheetMe.Designer/Diagnostics/DialogShots.cs index ccaf171..22f255c 100644 --- a/src/SheetMe.Designer/Diagnostics/DialogShots.cs +++ b/src/SheetMe.Designer/Diagnostics/DialogShots.cs @@ -130,6 +130,12 @@ public static class DialogShots // 'DB에서 열기' 대화상자를 지웠다. 그 자리를 좌측 서식 목록 샷이 대신한다 — // 안 그러면 서식명 잘림을 잡을 자리가 게이트에서 통째로 사라진다. ("01-sheet-list", () => NewMainShell(1440, 920, leftTab: 0, sheets: SampleSheets())), + // 문서 없는 시작 화면 — '새 서식'을 없앤 뒤로는 이것이 기본 상태다. + // 여기가 대조군이다: 00-main-default 는 문서가 있어 인스펙터가 보여야 하고, + // 이 샷은 없어서 접혀야 한다. 접히지 않으면 DataContext 가 null 인 채로 + // 안쪽 Visibility 바인딩이 전부 실패해 정렬 바·간격값이 남는다(WPF 는 실패를 Visible 로 떨군다). + ("00d-main-empty", () => NewMainShell(1440, 920, leftTab: 0, + sheets: SampleSheets(), withDocument: false)), ("02-sheet-history", () => new Views.SheetHistoryDialogView("S999", "표본 서식", SampleVersions())), ("03-query-editor", () => NewQueryEditor(designer, "SELECT ChtNum, PatNam FROM P_PatMst\nWHERE ChtNum = <>")), @@ -226,7 +232,7 @@ public static class DialogShots /// 빈 껍데기를 찍으면 잘림을 볼 수 없다. /// private static Window NewMainShell(double width, double height, int leftTab = 1, - List? sheets = null) + List? sheets = null, bool withDocument = true) { var window = new Views.MainView { @@ -240,7 +246,10 @@ public static class DialogShots { return window; } - shell.NewFileCommand?.Execute(null); + if (withDocument) + { + shell.AttachBlankForDiagnostics(); + } shell.SelectedLeftTabIndex = leftTab; // 진단 모드는 Loaded 커맨드를 안 돌리므로 목록이 비어 있다 — // 빈 목록을 찍으면 서식명 잘림을 볼 수 없다. 표본을 직접 넣는다. diff --git a/src/SheetMe.Designer/Themes/DesignerTheme.xaml b/src/SheetMe.Designer/Themes/DesignerTheme.xaml index cc6cb1a..386df64 100644 --- a/src/SheetMe.Designer/Themes/DesignerTheme.xaml +++ b/src/SheetMe.Designer/Themes/DesignerTheme.xaml @@ -647,11 +647,12 @@ BorderBrush="{DynamicResource B.Line}" BorderThickness="0,0,0,1" Padding="8,5,8,0"> + - -