From c4642f1e9997d40d394bb553debb8255ac44d1a7 Mon Sep 17 00:00:00 2001 From: gramps Date: Fri, 30 Oct 2026 09:18:50 -0700 Subject: [PATCH] design: every window inherits Inter (implicit Window style) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dialogs are separate WPF windows, so the FontFamily set on MainWindow never reached them — GoLive, Socials and the four pickers still rendered Segoe UI while the main window used Inter. The theme now carries an implicit Window style (family + Display text mode + layout rounding). Guard: DialogTypographyTests opens a real Window inside the real app and asserts it resolves the bundled Inter family — which fails if the style or the font resource goes missing — and asserts no dialog sets FontFamily itself, i.e. nobody opts out of the standard. --- Themes/Controls.xaml | 10 +++++ ytLive.Tests/DialogTypographyTests.cs | 57 +++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 ytLive.Tests/DialogTypographyTests.cs diff --git a/Themes/Controls.xaml b/Themes/Controls.xaml index b409b7d..625a077 100644 --- a/Themes/Controls.xaml +++ b/Themes/Controls.xaml @@ -2,6 +2,16 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Helpers="clr-namespace:ytLive.Helpers"> + + +