-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Correctly indicate support for DesktopAcrylicController and Mic…
…aController
- Loading branch information
1 parent
7987519
commit c4ee18a
Showing
4 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/Uno.UI.Composition/Composition/SystemBackdrops/DesktopAcrylicController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace Microsoft.UI.Composition.SystemBackdrops; | ||
|
||
public partial class DesktopAcrylicController : ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier | ||
{ | ||
/// <summary> | ||
/// Determines whether the acrylic material is supported on the current operating system. | ||
/// </summary> | ||
/// <remarks>Currently returns false on all targets except for WinUI.</remarks> | ||
/// <returns>True if the acrylic material is supported on the current operating system; otherwise, false.</returns> | ||
public static bool IsSupported() => false; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Uno.UI.Composition/Composition/SystemBackdrops/MicaController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Microsoft.UI.Composition.SystemBackdrops; | ||
|
||
public partial class MicaController : ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier | ||
{ | ||
/// <summary> | ||
/// Determines whether the mica material is supported on the current operating system. | ||
/// </summary> | ||
/// <remarks>Currently returns false on all targets except for WinUI.</remarks> | ||
/// <returns>True if the mica material is supported on the current operating system; otherwise, false.</returns> | ||
public static bool IsSupported() => false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters