forked from microsoft/TemplateStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUITestStyleValuesProvider.cs
More file actions
39 lines (32 loc) · 1.21 KB
/
Copy pathUITestStyleValuesProvider.cs
File metadata and controls
39 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.Templates.UI.Services;
namespace Microsoft.UI.Test
{
public class UITestStyleValuesProvider : BaseStyleValuesProvider
{
public override event EventHandler ThemeChanged;
public override System.Windows.Media.Brush GetColor(string className, string memberName)
{
return new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Black);
}
public override System.Windows.Media.FontFamily GetFontFamily()
{
return new System.Windows.Media.FontFamily("Segoe UI");
}
public override double GetFontSize(string fontSizeResourceKey)
{
return 12.0;
}
public override System.Drawing.Color GetThemedColor(string className, string memberName)
{
return System.Drawing.Color.FromArgb(255, System.Drawing.Color.Black);
}
private void OnThemeChanged()
{
ThemeChanged?.Invoke(this, EventArgs.Empty);
}
}
}