-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
204 lines (192 loc) · 11.7 KB
/
Copy pathMainWindow.xaml
File metadata and controls
204 lines (192 loc) · 11.7 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<Window x:Class="CloudIgnore.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="CloudIgnore" Height="780" Width="1280"
Loaded="Window_Loaded"
Background="#F6F8FB"
FontFamily="Segoe UI">
<Window.Resources>
<Style x:Key="CardStyle" TargetType="Border">
<Setter Property="Background" Value="White" />
<Setter Property="BorderBrush" Value="#E5EAF2" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="14" />
<Setter Property="Padding" Value="16" />
</Style>
<Style x:Key="PrimaryButton" TargetType="Button">
<Setter Property="Background" Value="#2563EB" />
<Setter Property="Foreground" Value="White" />
<Setter Property="Padding" Value="14,9" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="10" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="SecondaryButton" TargetType="Button" BasedOn="{StaticResource PrimaryButton}">
<Setter Property="Background" Value="White" />
<Setter Property="Foreground" Value="#334155" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderBrush="#E5EAF2" BorderThickness="1" CornerRadius="10" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="240" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- Sidebar -->
<Border Grid.Column="0" Background="White" BorderBrush="#E5EAF2" BorderThickness="0,0,1,0">
<DockPanel Margin="20">
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="0,0,0,24">
<Border Background="#2563EB" CornerRadius="10" Width="38" Height="38">
<TextBlock Text="CI" Foreground="White" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<StackPanel Margin="10,0,0,0">
<TextBlock Text="CloudIgnore" FontWeight="Bold" FontSize="16" />
<TextBlock Text="Dropbox sync helper" Foreground="#64748B" FontSize="11" />
</StackPanel>
</StackPanel>
<Border DockPanel.Dock="Bottom" Background="#F8FAFC" BorderBrush="#E5EAF2" BorderThickness="1" CornerRadius="12" Padding="12">
<StackPanel>
<TextBlock Text="Safety Mode On" FontWeight="Bold" Margin="0,0,0,4" />
<TextBlock Text="No changes are made until you scan, preview, select items, and confirm Apply Ignore."
TextWrapping="Wrap" Foreground="#64748B" FontSize="11" />
</StackPanel>
</Border>
<StackPanel DockPanel.Dock="Top" Margin="0,8,0,0">
<TextBlock Text="Dashboard" Padding="10" Background="#EFF6FF" Foreground="#2563EB" FontWeight="Bold" />
</StackPanel>
</DockPanel>
</Border>
<!-- Main -->
<Grid Grid.Column="1" Margin="28">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Topbar -->
<Grid Grid.Row="0" Margin="0,0,0,20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Dropbox Ignore Manager" FontSize="26" FontWeight="Bold" />
<TextBlock Text="Scan generated folders and apply Dropbox ignore flags only after preview." Foreground="#64748B" Margin="0,4,0,0" />
</StackPanel>
<Button Grid.Column="1" Content="Browse Root" Style="{StaticResource SecondaryButton}" Click="BrowseRoot_Click" />
</Grid>
<!-- Root card -->
<Border Grid.Row="1" Background="#EFF6FF" BorderBrush="#BFDBFE" BorderThickness="1" CornerRadius="14" Padding="16" Margin="0,0,0,16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="SELECTED ROOT" FontWeight="Bold" FontSize="11" Foreground="#1D4ED8" />
<TextBlock x:Name="RootPathText" Text="No folder selected — choose one with Browse Root" FontFamily="Consolas" Margin="0,4,0,0" />
<TextBlock x:Name="RootSourceText" Text="" Foreground="#1D4ED8" FontSize="11" Margin="0,4,0,0" TextWrapping="Wrap" />
</StackPanel>
<Button Grid.Column="1" Content="Scan Now" Style="{StaticResource PrimaryButton}" Click="ScanNow_Click" />
</Grid>
</Border>
<!-- Stats -->
<Grid Grid.Row="2" Margin="0,0,0,16">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Style="{StaticResource CardStyle}" Margin="0,0,8,0">
<StackPanel>
<TextBlock Text="Active Profile" Foreground="#64748B" FontSize="12" />
<TextBlock x:Name="ActiveProfileText" Text=".NET Build" FontSize="20" FontWeight="Bold" Margin="0,6,0,0" />
</StackPanel>
</Border>
<Border Grid.Column="1" Style="{StaticResource CardStyle}" Margin="8,0,8,0">
<StackPanel>
<TextBlock Text="Rules" Foreground="#64748B" FontSize="12" />
<TextBlock x:Name="RuleCountText" Text="0 active" FontSize="20" FontWeight="Bold" Margin="0,6,0,0" />
</StackPanel>
</Border>
<Border Grid.Column="2" Style="{StaticResource CardStyle}" Margin="8,0,8,0">
<StackPanel>
<TextBlock Text="Matches Found" Foreground="#64748B" FontSize="12" />
<TextBlock x:Name="MatchesFoundText" Text="0" FontSize="20" FontWeight="Bold" Margin="0,6,0,0" />
</StackPanel>
</Border>
<Border Grid.Column="3" Style="{StaticResource CardStyle}" Margin="8,0,0,0">
<StackPanel>
<TextBlock Text="Ready to Apply" Foreground="#64748B" FontSize="12" />
<TextBlock x:Name="ReadyToApplyText" Text="0" FontSize="20" FontWeight="Bold" Margin="0,6,0,0" />
</StackPanel>
</Border>
</Grid>
<!-- Content grid -->
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Style="{StaticResource CardStyle}" Margin="0,0,16,0" VerticalAlignment="Top">
<StackPanel>
<TextBlock Text="Ignore Profiles" FontWeight="Bold" FontSize="16" Margin="0,0,0,12" />
<Button Content="Import .gitignore..." Style="{StaticResource SecondaryButton}" Margin="0,0,0,12" HorizontalAlignment="Stretch" Click="ImportGitignore_Click" />
<ListBox x:Name="ProfileList" BorderThickness="0" SelectionChanged="ProfileList_SelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="#E5EAF2" BorderThickness="1" CornerRadius="10" Padding="10" Margin="0,0,0,8">
<StackPanel>
<TextBlock Text="{Binding Name}" FontWeight="Bold" />
<TextBlock Text="{Binding Description}" Foreground="#64748B" FontSize="11" Margin="0,4,0,0" TextWrapping="Wrap" />
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</Border>
<Border Grid.Column="1" Style="{StaticResource CardStyle}" VerticalAlignment="Stretch">
<DockPanel>
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="0,0,0,12">
<Button Content="Apply Ignore" Style="{StaticResource PrimaryButton}" Margin="0,0,8,0" Click="ApplyIgnore_Click" />
<Button Content="Undo Ignore" Style="{StaticResource SecondaryButton}" Margin="0,0,8,0" Click="UndoIgnore_Click" />
<Button Content="Clear Results" Style="{StaticResource SecondaryButton}" Click="ClearResults_Click" />
</StackPanel>
<DataGrid x:Name="ResultsGrid" AutoGenerateColumns="False" IsReadOnly="False"
CanUserAddRows="False" GridLinesVisibility="Horizontal" HeadersVisibility="Column"
BorderThickness="0" RowHeight="36">
<DataGrid.Columns>
<DataGridCheckBoxColumn Header="Use" Binding="{Binding Selected}" Width="50" />
<DataGridTextColumn Header="Name" Binding="{Binding Name}" Width="140" IsReadOnly="True" />
<DataGridTextColumn Header="Type" Binding="{Binding Type}" Width="70" IsReadOnly="True" />
<DataGridTextColumn Header="Rule" Binding="{Binding MatchedRule}" Width="80" IsReadOnly="True" />
<DataGridTextColumn Header="Status" Binding="{Binding StatusLabel}" Width="120" IsReadOnly="True" />
<DataGridTextColumn Header="Path" Binding="{Binding FullPath}" Width="*" IsReadOnly="True" />
</DataGrid.Columns>
</DataGrid>
</DockPanel>
</Border>
</Grid>
</Grid>
</Grid>
</Window>