-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.xaml
More file actions
45 lines (40 loc) · 2.2 KB
/
App.xaml
File metadata and controls
45 lines (40 loc) · 2.2 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
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8" ?>
<Application
x:Class="CodingWithCalvin.VSToolbox.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:CodingWithCalvin.VSToolbox"
xmlns:converters="using:CodingWithCalvin.VSToolbox.Converters"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</ResourceDictionary.MergedDictionaries>
<!-- Converters -->
<converters:NullToBoolConverter x:Key="NullToBoolConverter"/>
<converters:FilePathToImageConverter x:Key="FilePathToImageConverter"/>
<converters:CountToVisibilityConverter x:Key="CountToVisibilityConverter"/>
<converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
<converters:ChannelTypeToBrushConverter x:Key="ChannelTypeToBrushConverter"/>
<x:Double x:Key="AppFontSize">14</x:Double>
<Style x:Key="AppTitleStyle" TargetType="TextBlock">
<Setter Property="Foreground" Value="{ThemeResource TextFillColorPrimaryBrush}" />
</Style>
<Style x:Key="PrimaryAction" TargetType="Button" BasedOn="{StaticResource AccentButtonStyle}">
<Setter Property="FontSize" Value="{StaticResource AppFontSize}" />
<Setter Property="Padding" Value="14,10" />
<Setter Property="CornerRadius" Value="8" />
</Style>
<!-- Subtle icon button style with hover effect -->
<Style x:Key="SubtleIconButton" TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="8"/>
<Setter Property="Opacity" Value="0.5"/>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>