-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
168 lines (158 loc) · 8.26 KB
/
Copy pathMainWindow.xaml
File metadata and controls
168 lines (158 loc) · 8.26 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<Window x:Class="RestorePoint.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="RestorePoint" Height="520" Width="600"
WindowStartupLocation="CenterScreen"
ResizeMode="CanMinimize"
Background="#0D0D0D"
Foreground="#00E63C">
<Window.Resources>
<!-- Button Style -->
<Style x:Key="GreenButton" TargetType="Button">
<Setter Property="Background" Value="#0D0D0D"/>
<Setter Property="Foreground" Value="#00E63C"/>
<Setter Property="BorderBrush" Value="#00E63C"/>
<Setter Property="BorderThickness" Value="1.5"/>
<Setter Property="FontFamily" Value="Consolas"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Height" Value="48"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#0A2A0A"/>
<Setter TargetName="border" Property="BorderBrush" Value="#00FF50"/>
<Setter Property="Foreground" Value="#00FF50"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background" Value="#143D14"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="border" Property="BorderBrush" Value="#2A2A2A"/>
<Setter Property="Foreground" Value="#2A2A2A"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Danger Button Style -->
<Style x:Key="RedButton" TargetType="Button" BasedOn="{StaticResource GreenButton}">
<Setter Property="BorderBrush" Value="#E63C00"/>
<Setter Property="Foreground" Value="#E63C00"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#2A0A0A"/>
<Setter TargetName="border" Property="BorderBrush" Value="#FF5000"/>
<Setter Property="Foreground" Value="#FF5000"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background" Value="#3D1414"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ListBox Style -->
<Style x:Key="DarkListBox" TargetType="ListBox">
<Setter Property="Background" Value="#111111"/>
<Setter Property="BorderBrush" Value="#00E63C"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="#00E63C"/>
<Setter Property="FontFamily" Value="Consolas"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Padding" Value="4"/>
</Style>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="8,6"/>
<Setter Property="Foreground" Value="#00E63C"/>
<Setter Property="Background" Value="Transparent"/>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#0A2A0A"/>
<Setter Property="Foreground" Value="#00FF50"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#0D1F0D"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid Margin="24">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<StackPanel Grid.Row="0" Margin="0,0,0,20">
<TextBlock Text="Restore Point" FontFamily="Consolas" FontSize="26" FontWeight="Bold"
Foreground="#00E63C" HorizontalAlignment="Center"/>
<TextBlock Text="Version 1.0.0" FontFamily="Consolas" FontSize="11"
Foreground="#005A1A" HorizontalAlignment="Center" Margin="0,2,0,0"/>
<Rectangle Height="1" Fill="#00E63C" Margin="0,12,0,0" Opacity="0.4"/>
</StackPanel>
<!-- Status Bar -->
<Border Grid.Row="1" Background="#111111" BorderBrush="#00E63C" BorderThickness="1"
CornerRadius="4" Padding="12,8" Margin="0,0,0,16">
<TextBlock x:Name="StatusText" Text="Ready" FontFamily="Consolas" FontSize="13"
Foreground="#00E63C"/>
</Border>
<!-- Restore Points List -->
<Grid Grid.Row="2" Margin="0,0,0,16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="RESTORE POINTS" FontFamily="Consolas" FontSize="11"
Foreground="#005A1A" Margin="0,0,0,6"/>
<ListBox Grid.Row="1" x:Name="RestorePointsList" Style="{StaticResource DarkListBox}"
ScrollViewer.VerticalScrollBarVisibility="Auto"/>
</Grid>
<!-- Action Buttons -->
<Grid Grid.Row="3" Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="+ Create Restore Point"
Style="{StaticResource GreenButton}" Click="CreateClick"/>
<Button Grid.Column="2" Content="✕ Delete Selected"
Style="{StaticResource RedButton}" Click="DeleteClick"/>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="↺ Refresh List"
Style="{StaticResource GreenButton}" Click="RefreshClick"/>
<Button Grid.Column="2" Content="⚠ Delete All"
Style="{StaticResource RedButton}" Click="DeleteAllClick"/>
</Grid>
</Grid>
</Window>