Browse Source
Merge branch 'master' into PopupFocusFixes
pull/4632/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
14 additions and
5 deletions
-
build/NetFX.props
-
src/Avalonia.DesignerSupport/Remote/HtmlTransport/HtmlTransport.cs
-
src/Avalonia.OpenGL/Angle/AngleEglInterface.cs
-
src/Avalonia.Themes.Fluent/CheckBox.xaml
-
src/Avalonia.Themes.Fluent/RadioButton.xaml
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<Project> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2" PrivateAssets="All" /> |
|
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -38,11 +38,13 @@ namespace Avalonia.DesignerSupport.Remote.HtmlTransport |
|
|
|
public HtmlWebSocketTransport(IAvaloniaRemoteTransportConnection signalTransport, Uri listenUri) |
|
|
|
{ |
|
|
|
if (listenUri.Scheme != "http") |
|
|
|
throw new ArgumentException("listenUri"); |
|
|
|
throw new ArgumentException("URI scheme is not HTTP.", nameof(listenUri)); |
|
|
|
|
|
|
|
var resourcePrefix = "Avalonia.DesignerSupport.Remote.HtmlTransport.webapp.build."; |
|
|
|
_resources = typeof(HtmlWebSocketTransport).Assembly.GetManifestResourceNames() |
|
|
|
.Where(r => r.StartsWith(resourcePrefix) && r.EndsWith(".gz")).ToDictionary( |
|
|
|
.Where(r => r.StartsWith(resourcePrefix, StringComparison.OrdinalIgnoreCase) |
|
|
|
&& r.EndsWith(".gz", StringComparison.OrdinalIgnoreCase)) |
|
|
|
.ToDictionary( |
|
|
|
r => r.Substring(resourcePrefix.Length).Substring(0,r.Length-resourcePrefix.Length-3), |
|
|
|
r => |
|
|
|
{ |
|
|
|
|
|
|
|
@ -17,14 +17,19 @@ namespace Avalonia.OpenGL.Angle |
|
|
|
|
|
|
|
static Func<string, IntPtr> LoadAngle() |
|
|
|
{ |
|
|
|
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) |
|
|
|
throw new PlatformNotSupportedException(); |
|
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) |
|
|
|
{ |
|
|
|
var disp = eglGetProcAddress("eglGetPlatformDisplayEXT"); |
|
|
|
|
|
|
|
if (disp == IntPtr.Zero) |
|
|
|
{ |
|
|
|
throw new OpenGlException("libegl.dll doesn't have eglGetPlatformDisplayEXT entry point"); |
|
|
|
} |
|
|
|
|
|
|
|
return eglGetProcAddress; |
|
|
|
} |
|
|
|
|
|
|
|
throw new PlatformNotSupportedException(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -8,6 +8,7 @@ |
|
|
|
<Setter Property="Background" Value="{DynamicResource CheckBoxBackgroundUnchecked}" /> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource CheckBoxForegroundUnchecked}" /> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource CheckBoxBorderBrushUnchecked}" /> |
|
|
|
<Setter Property="Padding" Value="8,0,0,0" /> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" /> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center" /> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" /> |
|
|
|
|
|
|
|
@ -13,6 +13,7 @@ |
|
|
|
<Setter Property="Background" Value="{DynamicResource RadioButtonBackground}" /> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource RadioButtonForeground}" /> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource RadioButtonBorderBrush}" /> |
|
|
|
<Setter Property="Padding" Value="8,0,0,0" /> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" /> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center" /> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" /> |
|
|
|
|