-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use SymbolThemeFontFamily instead of hard-coded Segoe MDL2 Assets
- Loading branch information
1 parent
63e9cde
commit 9dae693
Showing
12 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
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,9 @@ | ||
# Overrides our root .editorconfig to match https://github.com/microsoft/microsoft-ui-xaml/blob/fd22d7ff96871f58fec5d9b284eba02fe762c60e/.editorconfig#L120-L126 | ||
|
||
[**.{xaml,xml}] | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8-bom | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
end_of_line = crlf |
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
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
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
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
33 changes: 33 additions & 0 deletions
33
...I.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/ToggleSplitButton/ToggleSplitButtonTests.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,33 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Uno.UI.RuntimeTests.Helpers; | ||
using MUXControlsTestApp.Utilities; | ||
using Private.Infrastructure; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Media; | ||
using Common; | ||
|
||
namespace Windows.UI.Xaml.Tests.MUXControls.ApiTests | ||
{ | ||
[TestClass] | ||
public class ToggleSplitButtonTests | ||
{ | ||
[TestMethod] | ||
[Description("Verifies that the TextBlock representing the Chevron glyph uses the correct font")] | ||
public void VerifyFontFamilyForChevron() | ||
{ | ||
Microsoft.UI.Xaml.Controls.ToggleSplitButton toggleSplitButton = null; | ||
using (StyleHelper.UseFluentStyles()) | ||
{ | ||
RunOnUIThread.Execute(() => | ||
{ | ||
toggleSplitButton = new Microsoft.UI.Xaml.Controls.ToggleSplitButton(); | ||
TestServices.WindowHelper.WindowContent = toggleSplitButton; | ||
|
||
var secondayButton = toggleSplitButton.GetTemplateChild("SecondaryButton"); | ||
var font = ((secondayButton as Button).Content as TextBlock).FontFamily; | ||
Verify.AreEqual((FontFamily)Application.Current.Resources["SymbolThemeFontFamily"], font); | ||
}); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.