diff --git a/OpenUtau/Controls/TrackHeader.axaml b/OpenUtau/Controls/TrackHeader.axaml index 24374fb0a..fa4b04cbc 100644 --- a/OpenUtau/Controls/TrackHeader.axaml +++ b/OpenUtau/Controls/TrackHeader.axaml @@ -102,12 +102,11 @@ - - - + + - + @@ -115,137 +114,150 @@ Text="{Binding TrackNo}" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/> - - - - - - - - + + - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OpenUtau/Controls/TrackHeader.axaml.cs b/OpenUtau/Controls/TrackHeader.axaml.cs index 5c7559326..941f01bdc 100644 --- a/OpenUtau/Controls/TrackHeader.axaml.cs +++ b/OpenUtau/Controls/TrackHeader.axaml.cs @@ -116,20 +116,12 @@ void SingerButtonClicked(object sender, RoutedEventArgs args) { args.Handled = true; } - void SingerButtonContextRequested(object sender, ContextRequestedEventArgs args) { - args.Handled = true; - } - void PhonemizerButtonClicked(object sender, RoutedEventArgs args) { ViewModel?.RefreshPhonemizers(); PhonemizersMenu.Open((Control)sender); args.Handled = true; } - void PhonemizerButtonContextRequested(object sender, ContextRequestedEventArgs args) { - args.Handled = true; - } - void RendererButtonClicked(object sender, RoutedEventArgs args) { ViewModel?.RefreshRenderers(); if (ViewModel?.RenderersMenuItems?.Count > 0) { @@ -138,10 +130,6 @@ void RendererButtonClicked(object sender, RoutedEventArgs args) { args.Handled = true; } - void RendererButtonContextRequested(object sender, ContextRequestedEventArgs args) { - args.Handled = true; - } - void VolumeFaderPointerPressed(object sender, PointerPressedEventArgs args) { if (args.GetCurrentPoint((Visual?)sender).Properties.IsRightButtonPressed && ViewModel != null) { ViewModel.Volume = 0; diff --git a/OpenUtau/ViewConstants.cs b/OpenUtau/ViewConstants.cs index 116a91fb4..49506d289 100644 --- a/OpenUtau/ViewConstants.cs +++ b/OpenUtau/ViewConstants.cs @@ -7,10 +7,10 @@ static class ViewConstants { public const double TickWidthDefault = 24.0 / 480.0; public const double MinTicklineWidth = 12.0; - public const double TrackHeightMax = 147; - public const double TrackHeightMin = 42; - public const double TrackHeightDefault = 105; - public const double TrackHeightDelta = 21; + public const double TrackHeightMax = 144; + public const double TrackHeightMin = 44; + public const double TrackHeightDefault = 104; + public const double TrackHeightDelta = 20; public const double PianoRollTickWidthMax = 640.0 / 480.0; public const double PianoRollTickWidthMin = 4.0 / 480.0;