@ -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);
@ -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.
void SetFrameThemeVariant(PlatformThemeVariant themeVariant);
/// Gets the <see cref="AcrylicPlatformCompensationLevels"/> for the platform.
@ -182,7 +182,9 @@ namespace Avalonia.DesignerSupport.Remote
public bool IsClientAreaExtendedToDecorations { get; }
public bool NeedsManagedDecorations => false;
}
@ -345,5 +345,10 @@ namespace Avalonia.Headless
{
public void SetFrameThemeVariant(PlatformThemeVariant themeVariant)
@ -104,6 +104,8 @@ public class CompositorTestsBase
public WindowTransparencyLevel TransparencyLevel { get; }
public AcrylicPlatformCompensationLevels AcrylicCompensationLevels { get; }