diff --git a/MainWindow.xaml b/MainWindow.xaml index a2695ec..249c282 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -407,7 +407,8 @@ @@ -430,14 +431,15 @@ diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index b118340..07a73f9 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -572,15 +572,36 @@ public partial class MainWindow : Window } } + private void WebcamBorderAccept_Click(object sender, RoutedEventArgs e) + { + if (_snapshotElement is Models.Source src) + { + _snapshotBorderColor = src.BorderColor; + _snapshotBorderWidth = src.BorderWidth; + } + } + private void CountdownRevert_Click(object sender, RoutedEventArgs e) { if (_snapshotElement is Models.Source src) src.TimerMinutes = _snapshotTimerMinutes; } + private void CountdownAccept_Click(object sender, RoutedEventArgs e) + { + if (_snapshotElement is Models.Source src) + _snapshotTimerMinutes = src.TimerMinutes; + } + private void WebRevert_Click(object sender, RoutedEventArgs e) { if (_snapshotElement is Models.Source src) src.WebUri = _snapshotWebUri; } + + private void WebAccept_Click(object sender, RoutedEventArgs e) + { + if (_snapshotElement is Models.Source src) + _snapshotWebUri = src.WebUri; + } } diff --git a/TASKS.md b/TASKS.md index e173736..f6b4a0d 100644 --- a/TASKS.md +++ b/TASKS.md @@ -828,6 +828,7 @@ No changes to `MusicPlayer`, the 0.20 cap, the ducker, or the meter zones. Build 11. ✅ Elements scrollbar deselect fix — clicking the Elements panel scrollbar no longer deselects the selected element (scrollbar lives inside the ScrollViewer, not the StackPanel; guard now checks `ElementsScrollViewer` instead of `ElementsPanel`) 12. ✅ Web source URI + buttons inline — merged URI TextBox and check/revert buttons into a single DockPanel row (✓ rightmost, ✕ left); buttons no longer wrap to a separate line 13. ✅ Web source URI hidden for webcam — URI section was showing for webcam due to WPF binding path `SelectedElement.Type` not resolving on `WebcamSceneConfig`; replaced with `IsWebSource` virtual property on `SceneElement` (mirrors existing `IsWebcam` pattern), overridden in `Source` to return `Type == SourceType.WebSource`, bound via `BoolToVis` +14. ✅ Check/revert consistent order + accept — all three element sections (webcam border, countdown timer, web URI) now use consistent [✕][✓] button order; green check buttons enabled with click handlers that save current values as snapshot baseline (so revert undoes to last accepted state, not initial selection) ---