-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.axaml
More file actions
48 lines (46 loc) · 2.16 KB
/
App.axaml
File metadata and controls
48 lines (46 loc) · 2.16 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
46
47
48
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WowthingAutoUploader.App"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.Resources>
<FontFamily x:Key="RobotoMonoFont">avares://WowthingAutoUploader/Assets/Fonts#Roboto Mono</FontFamily>
</Application.Resources>
<Application.Styles>
<FluentTheme />
<Style Selector="HeaderedContentControl">
<Setter Property="Template">
<ControlTemplate>
<Grid RowDefinitions="Auto,*" ColumnDefinitions="Auto,*">
<!-- Header -->
<Border
ZIndex="1"
Background="{DynamicResource SystemControlBackgroundAltHighBrush}"
Padding="5,0,5,0"
Margin="5,0,0,0">
<TextBlock
Text="{TemplateBinding Header}"
FontWeight="Bold"/>
</Border>
<!-- Content Area -->
<Border
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
Grid.ColumnSpan="2"
Padding="0,5,0,0"
CornerRadius="4"
Margin="0,10,0,0"
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumBrush}"
BorderThickness="1">
<ContentPresenter
Name="PART_ContentPresenter"
Padding="8"
Content="{TemplateBinding Content}"/>
</Border>
</Grid>
</ControlTemplate>
</Setter>
</Style>
</Application.Styles>
</Application>