-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainWindow.xaml
67 lines (61 loc) · 5.58 KB
/
MainWindow.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
<Window x:Class="VanguardToggler.MainWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:VanguardToggler"
mc:Ignorable="d"
Title="Vanguard Ducker" Height="600" Width="1000" ResizeMode="NoResize"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignBackground}"
FontFamily="{DynamicResource MaterialDesignFont}" Icon="/logo.png">
<Grid>
<TextBlock
Style="{StaticResource MaterialDesignHeadline4TextBlock}" Text="Vanguard Ducker" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="240,10,284,0" Height="41" VerticalAlignment="Top" FontSize="36">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform X="10"/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
<ToggleButton x:Name="toggler"
Style="{StaticResource MaterialDesignSwitchToggleButton}"
ToolTip="MaterialDesignSwitchLightToggleButton" Margin="541,177,0,0" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left" Width="49" Background="#FFD1373A" Checked="toggler_Checked" Unchecked="toggler_Unchecked" />
<TextBlock
Style="{StaticResource MaterialDesignBody1TextBlock}" Margin="397,173,0,0" Height="32" VerticalAlignment="Top" HorizontalAlignment="Left" Width="139" FontSize="20"><Run Language="hu-hu" Text="Run at startup:"/></TextBlock>
<Border BorderThickness="5" BorderBrush="#FF5B5B5B" HorizontalAlignment="Right" Margin="0,61,263,339" Width="2"/>
<TextBlock
Style="{StaticResource MaterialDesignCaptionTextBlock}" Margin="0,76,60,0" FontStyle="Normal" Height="83" VerticalAlignment="Top" HorizontalAlignment="Right" Width="190" FontSize="16"><Run Text="Don't forget to support "/><Run Text="my"/><LineBreak/><Run Text="work by giving "/><Run Text="me"/><Run Text=" a star"/><LineBreak/><Run Text="on GitHub"/><Run Text=" "/><Run Text="or "/><Run Text="by sharing"/><LineBreak/><Run Text="the apps I make."/><Run Language="hu-hu" Text=" 😁"/></TextBlock>
<TextBlock x:Name="ikleventeGitHubLink"
Style="{StaticResource MaterialDesignTextBlock}" Margin="0,166,136,0" FontSize="12" HorizontalAlignment="Right" Width="114" Height="22" VerticalAlignment="Top"><Hyperlink Click="Hyperlink_Click">github.com/iklevente</Hyperlink></TextBlock>
<TextBlock x:Name="ikleventeKofiLink"
Style="{StaticResource MaterialDesignTextBlock}" Margin="0,194,136,0" FontSize="12" HorizontalAlignment="Right" Width="114" Height="22" VerticalAlignment="Top"><Hyperlink Click="Hyperlink_Click2">ko-fi.com/iklevente</Hyperlink></TextBlock>
<TextBlock
Style="{StaticResource MaterialDesignCaptionTextBlock}" Margin="0,0,0,6" FontStyle="Italic" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="148"><Run Text="Hand-crafted by iklevente"/><Run Language="hu-hu" Text="."/><LineBreak/><LineBreak/><Run/></TextBlock>
<TextBlock x:Name="infoText"
Style="{StaticResource MaterialDesignBody1TextBlock}" x:FieldModifier="public" Margin="0,454,0,0" Height="32" VerticalAlignment="Top" HorizontalAlignment="Center" Width="580" FontSize="18" TextAlignment="Center" Text="infoText"/>
<Button x:Name="restartButton"
Style="{StaticResource MaterialDesignRaisedLightButton}"
Width="100"
ToolTip="Resource name: MaterialDesignRaisedLightButton" Margin="500,377,0,0" Background="#B28CFF03" Content="Restart PC" HorizontalAlignment="Left" Height="32" VerticalAlignment="Top" Click="restartButton_Click"/>
<Button x:Name="killVanguardButton"
Style="{StaticResource MaterialDesignRaisedLightButton}"
ToolTip="Resource name: MaterialDesignRaisedLightButton" Margin="0,377,512,0" Background="#FFD1373A" Content="Kill Vanguard" Height="32" VerticalAlignment="Top" HorizontalAlignment="Right" Width="121" Click="killVanguardButton_Click"/>
<TextBlock
Style="{StaticResource MaterialDesignBody1TextBlock}" Margin="250,251,0,0" Height="32" VerticalAlignment="Top" HorizontalAlignment="Left" Width="286" FontSize="20" Text="Enable Vanguard tray at startup:"/>
<ToggleButton x:Name="trayToggler"
Style="{StaticResource MaterialDesignSwitchToggleButton}"
ToolTip="MaterialDesignSwitchLightToggleButton" Margin="541,255,0,0" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left" Width="49" Background="#FFD1373A" Checked="trayToggler_Checked" Unchecked="trayToggler_Unchecked" />
<Image Margin="55,54,0,0" Stretch="Fill" Source="logo.png" Height="198" VerticalAlignment="Top" HorizontalAlignment="Left" Width="171"/>
<TextBlock
Style="{StaticResource MaterialDesignCaptionTextBlock}" Margin="10,0,842,6" FontStyle="Italic" Height="23" VerticalAlignment="Bottom"><Run Language="hu-hu" Text="version 1.3"/><LineBreak/><LineBreak/><Run/></TextBlock>
</Grid>
</Window>