diff --git a/Controls/OverlayHost.xaml b/Controls/OverlayHost.xaml index 604a23d..762fc51 100644 --- a/Controls/OverlayHost.xaml +++ b/Controls/OverlayHost.xaml @@ -35,106 +35,6 @@ - - - - - - - - + + + + - + - - - - - - - - - + ToolTip="Settings" + MouseLeftButtonUp="SettingsTab_Click"> diff --git a/Controls/PreviewPane.xaml.cs b/Controls/PreviewPane.xaml.cs index ad53974..a8a480c 100644 --- a/Controls/PreviewPane.xaml.cs +++ b/Controls/PreviewPane.xaml.cs @@ -730,22 +730,11 @@ public partial class PreviewPane : UserControl } } - /// Rail settings tab (creator ruling 2026-11-01): left-click opens the same app menu - /// the top-bar gear used to own, so Bug / Feature / About keep their only entry point. + /// Rail settings tab (creator ruling 2026-11-01): a left click opens the Settings + /// DRAWER immediately, exactly like the other rail tabs — no menu, no modal. private void SettingsTab_Click(object sender, MouseButtonEventArgs e) { - if (sender is not FrameworkElement { ContextMenu: { } menu } anchor) return; - menu.PlacementTarget = anchor; - menu.Placement = System.Windows.Controls.Primitives.PlacementMode.Left; - menu.IsOpen = true; + if (DataContext is MainViewModel vm) vm.ToggleSettingsDrawer(); e.Handled = true; } - - /// Right-click goes straight to App Settings — the same shortcut the old gear had. - private void SettingsTab_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) - { - e.Handled = true; - if (DataContext is MainViewModel { OpenSettingsCommand: { } open } && open.CanExecute(null)) - open.Execute(null); - } } diff --git a/Controls/SettingsDrawer.xaml b/Controls/SettingsDrawer.xaml new file mode 100644 index 0000000..da8e96c --- /dev/null +++ b/Controls/SettingsDrawer.xaml @@ -0,0 +1,104 @@ + + + + + + + + + +