5.4.9.4 Beta

This commit is contained in:
Frank Skare
2021-08-24 08:22:59 +02:00
parent 9b5f9a64fd
commit 970dfc069d
5 changed files with 20 additions and 6 deletions

View File

@@ -1117,14 +1117,19 @@ namespace mpvnet
{
base.OnHandleCreated(e);
const int LWA_ColorKey = 1;
SetLayeredWindowAttributes(Handle, 0x111111, 255, LWA_ColorKey);
if (Environment.OSVersion.Version > new Version(10, 0))
SetLayeredWindowAttributes(Handle, 0x111111, 255, LWA_ColorKey);
}
protected override CreateParams CreateParams {
get {
const int WS_EX_LAYERED = 0x00080000;
CreateParams cp = base.CreateParams;
cp.ExStyle = cp.ExStyle | WS_EX_LAYERED;
if (Environment.OSVersion.Version > new Version(10, 0))
cp.ExStyle = cp.ExStyle | WS_EX_LAYERED;
return cp;
}
}

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.9.3")]
[assembly: AssemblyFileVersion("5.4.9.3")]
[assembly: AssemblyVersion("5.4.9.4")]
[assembly: AssemblyFileVersion("5.4.9.4")]

View File

@@ -17,7 +17,8 @@
<KeyBinding Gesture="Enter" Command="{Binding ExecuteCommand}"/>
</UserControl.InputBindings>
<Border BorderThickness="1,0,1,1"
<Border Name="MainBorder"
BorderThickness="1,0,1,1"
CornerRadius="0,0,5,5"
Padding="0,0,0,5"
BorderBrush="{Binding Theme.MenuHighlight}"

View File

@@ -33,6 +33,9 @@ namespace mpvnet
SearchControl.SearchTextBox.PreviewKeyDown += SearchTextBox_PreviewKeyDown;
SearchControl.SearchTextBox.TextChanged += SearchTextBox_TextChanged;
SearchControl.HideClearButton = true;
if (Environment.OSVersion.Version < new Version(10, 0))
MainBorder.CornerRadius = new CornerRadius(0);
}
void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e)