-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
101 lines (91 loc) · 4.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<Application x:Class="NITHtester.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
StartupUri="MainWindow.xaml">
<Application.Resources>
<sys:Double x:Key="boxesWidth">600</sys:Double>
<Style TargetType="ScrollBar">
<Setter Property="Background" Value="Black" />
<Setter Property="Foreground" Value="White" />
<Setter Property="BorderBrush" Value="Black" />
</Style>
<Style TargetType="StackPanel">
<Setter Property="Margin" Value="0,0,0,5" />
</Style>
<Style TargetType="DockPanel">
<Setter Property="Margin" Value="0,0,0,5" />
</Style>
<Style TargetType="Label">
<Setter Property="Foreground" Value="White" />
<Setter Property="FontFamily" Value="Consolas" />
</Style>
<Style TargetType="TextBlock" x:Key="WhiteText">
<Setter Property="Foreground" Value="White" />
<Setter Property="FontFamily" Value="Consolas" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="TextBox" x:Key="WhiteTextBlackBox">
<Setter Property="Foreground" Value="White" />
<Setter Property="FontFamily" Value="Consolas" />
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Border Background="Black" BorderBrush="Transparent" BorderThickness="0" CornerRadius="10">
<ScrollViewer x:Name="PART_ContentHost" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" Value="0" />
</Style>
<Style TargetType="Border" x:Key="BlackBorder">
<Setter Property="Background" Value="Black" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
</Style>
<Style TargetType="Label" x:Key="EntryLabel">
<Setter Property="Width" Value="200px" />
<Setter Property="Height" Value="30px" />
<Setter Property="Foreground" Value="White" />
</Style>
<Style TargetType="Button">
<Setter Property="Background" Value="#555555" />
<Setter Property="Foreground" Value="White" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="RichTextBox">
<Setter Property="Background" Value="Black" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="Padding" Value="5" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RichTextBox">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="5">
<ScrollViewer x:Name="PART_ContentHost" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
</Application>