-
Notifications
You must be signed in to change notification settings - Fork 48
/
App.xaml
49 lines (44 loc) · 2.08 KB
/
App.xaml
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
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8" ?>
<Application
x:Class="Microsoft.JavaScript.NodeApi.Examples.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.JavaScript.NodeApi.Examples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
<Color x:Key="Primary">#512BD4</Color>
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource Primary}" />
<SolidColorBrush x:Key="WhiteBrush" Color="White" />
<SolidColorBrush x:Key="BlackBrush" Color="Black" />
<x:Double x:Key="AppFontSize">14</x:Double>
<Style x:Key="MyLabel" TargetType="TextBlock">
<Setter Property="Foreground"
Value="{StaticResource PrimaryBrush}" />
</Style>
<Style x:Key="Action" TargetType="Button">
<Setter Property="FontSize"
Value="{StaticResource AppFontSize}" />
<Setter Property="Padding"
Value="14,10" />
</Style>
<Style x:Key="PrimaryAction"
TargetType="Button"
BasedOn="{StaticResource Action}">
<Setter Property="Background"
Value="{StaticResource PrimaryBrush}" />
<Setter Property="CornerRadius"
Value="8" />
<Setter Property="Foreground"
Value="{StaticResource WhiteBrush}" />
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>