diff options
author | sr55 <[email protected]> | 2019-08-29 21:58:42 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-08-29 21:58:56 +0100 |
commit | 3293f1984f227a61dfe0f0d130bad8d09b19025d (patch) | |
tree | abf953b910b2d65719ca971679934cc0125fb097 /win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs | |
parent | aa4c030d83dbc42722facefc00165f063648d1a9 (diff) |
WinGui: Various small UI/UX fixes Fixes #2280 #2278
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs b/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs index a8277ec3b..9f9c16de1 100644 --- a/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs +++ b/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs @@ -575,8 +575,6 @@ namespace HandBrakeWPF.Controls this.UpdateNumberBindingFromBox();
}
-
- this.RefreshNumberBoxColor();
}
/// <summary>
@@ -601,8 +599,6 @@ namespace HandBrakeWPF.Controls if (this.AllowEmpty && this.Number == 0)
{
this.numberBox.Text = this.hasFocus ? string.Empty : this.NoneCaption;
-
- // this.numberBox.Foreground = new SolidColorBrush(Colors.Gray);
}
else
{
@@ -614,19 +610,7 @@ namespace HandBrakeWPF.Controls {
this.numberBox.Text = this.Number.ToString(CultureInfo.InvariantCulture);
}
-
- // this.numberBox.Foreground = new SolidColorBrush(Colors.Black);
}
-
- this.RefreshNumberBoxColor();
- }
-
- /// <summary>
- /// The refresh number box color.
- /// </summary>
- private void RefreshNumberBoxColor()
- {
- this.numberBox.Foreground = this.numberBox.Text == this.NoneCaption ? new SolidColorBrush(Colors.Gray) : new SolidColorBrush(Colors.Black);
}
/// <summary>
@@ -717,5 +701,21 @@ namespace HandBrakeWPF.Controls }
#endregion
+
+ private void UpButton_OnKeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Space)
+ {
+ this.IncrementNumber();
+ }
+ }
+
+ private void DownButton_OnKeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Space)
+ {
+ this.DecrementNumber();
+ }
+ }
}
}
\ No newline at end of file |