Browse Source

Update tests and designer

pull/9913/head
Max Katz 3 years ago
parent
commit
36f93ae7bc
  1. 2
      src/Avalonia.Controls/Embedding/Offscreen/OffscreenTopLevelImpl.cs
  2. 6
      src/Avalonia.Controls/Platform/ITopLevelImpl.cs
  3. 4
      src/Avalonia.DesignerSupport/Remote/Stubs.cs
  4. 5
      src/Avalonia.Headless/HeadlessWindowImpl.cs
  5. 2
      tests/Avalonia.Base.UnitTests/Rendering/CompositorTestsBase.cs
  6. 2665
      tests/Avalonia.DesignerSupport.Tests/Remote/HtmlTransport/webapp/package-lock.json

2
src/Avalonia.Controls/Embedding/Offscreen/OffscreenTopLevelImpl.cs

@ -58,6 +58,8 @@ namespace Avalonia.Controls.Embedding.Offscreen
public Action<WindowTransparencyLevel>? TransparencyLevelChanged { get; set; }
public void SetFrameThemeVariant(PlatformThemeVariant themeVariant) { }
/// <inheritdoc/>
public AcrylicPlatformCompensationLevels AcrylicCompensationLevels { get; } = new AcrylicPlatformCompensationLevels(1, 1, 1);

6
src/Avalonia.Controls/Platform/ITopLevelImpl.cs

@ -163,6 +163,12 @@ namespace Avalonia.Platform
/// </summary>
WindowTransparencyLevel TransparencyLevel { get; }
/// <summary>
/// Sets the <see cref="PlatformThemeVariant"/> on the frame if it should be dark or light.
/// Also applies for the mobile status bar.
/// </summary>
void SetFrameThemeVariant(PlatformThemeVariant themeVariant);
/// <summary>
/// Gets the <see cref="AcrylicPlatformCompensationLevels"/> for the platform.
/// </summary>

4
src/Avalonia.DesignerSupport/Remote/Stubs.cs

@ -182,7 +182,9 @@ namespace Avalonia.DesignerSupport.Remote
public bool IsClientAreaExtendedToDecorations { get; }
public bool NeedsManagedDecorations => false;
public void SetFrameThemeVariant(PlatformThemeVariant themeVariant) { }
public AcrylicPlatformCompensationLevels AcrylicCompensationLevels { get; } = new AcrylicPlatformCompensationLevels(1, 1, 1);
}

5
src/Avalonia.Headless/HeadlessWindowImpl.cs

@ -345,5 +345,10 @@ namespace Avalonia.Headless
{
}
public void SetFrameThemeVariant(PlatformThemeVariant themeVariant)
{
}
}
}

2
tests/Avalonia.Base.UnitTests/Rendering/CompositorTestsBase.cs

@ -104,6 +104,8 @@ public class CompositorTestsBase
}
public WindowTransparencyLevel TransparencyLevel { get; }
public void SetFrameThemeVariant(PlatformThemeVariant themeVariant) { }
public AcrylicPlatformCompensationLevels AcrylicCompensationLevels { get; }
}

2665
tests/Avalonia.DesignerSupport.Tests/Remote/HtmlTransport/webapp/package-lock.json

File diff suppressed because it is too large
Loading…
Cancel
Save