From 58eb640c4edc26c6934da194d2a8ee93a7747141 Mon Sep 17 00:00:00 2001 From: gramps Date: Wed, 4 Nov 2026 14:28:47 -0800 Subject: [PATCH] feat(text): add static text editor and preview TextOverlay layers now have a multiline editor, Windows font and size controls, color/emphasis/alignment settings, and a visible draggable preview. Text sources follow OBS's static text-source conventions: https://obsproject.com/kb/text-sources --- Controls/LeftPanel.xaml | 64 +++++++++++++- Controls/PreviewPane.xaml | 38 +++++++- Controls/index.md | 4 +- Models/Source.cs | 2 +- ViewModels/MainViewModel.Sources.cs | 12 ++- ViewModels/index.md | 2 +- ytLive.Tests/TextLayerEditorPreviewTests.cs | 98 +++++++++++++++++++++ 7 files changed, 210 insertions(+), 10 deletions(-) create mode 100644 ytLive.Tests/TextLayerEditorPreviewTests.cs diff --git a/Controls/LeftPanel.xaml b/Controls/LeftPanel.xaml index 01e73a7..81fc224 100644 --- a/Controls/LeftPanel.xaml +++ b/Controls/LeftPanel.xaml @@ -2,7 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Helpers="clr-namespace:ytLive.Helpers" - xmlns:models="clr-namespace:ytLive.Models"> + xmlns:models="clr-namespace:ytLive.Models" + xmlns:media="clr-namespace:System.Windows.Media;assembly=PresentationCore"> diff --git a/Controls/PreviewPane.xaml b/Controls/PreviewPane.xaml index f3e0597..da34157 100644 --- a/Controls/PreviewPane.xaml +++ b/Controls/PreviewPane.xaml @@ -2,7 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Helpers="clr-namespace:ytLive.Helpers" - xmlns:local="clr-namespace:ytLive" xmlns:controls="clr-namespace:ytLive.Controls"> + xmlns:local="clr-namespace:ytLive" xmlns:controls="clr-namespace:ytLive.Controls" + xmlns:models="clr-namespace:ytLive.Models"> @@ -175,6 +176,41 @@ + + + + +