-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
164 lines (154 loc) · 19.7 KB
/
Copy pathMainWindow.xaml
File metadata and controls
164 lines (154 loc) · 19.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
<Window x:Class="LSPDFRManager.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="LSPDFR Manager"
Height="840" Width="1320"
MinHeight="640" MinWidth="980"
WindowStartupLocation="CenterScreen"
Background="{StaticResource AppBackground}"
FontFamily="Segoe UI">
<Window.Resources>
<LinearGradientBrush x:Key="ShellGlowAccent" StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#002C6D" Offset="0"/>
<GradientStop Color="#1A5DCC" Offset="0.5"/>
<GradientStop Color="#2A8BFF" Offset="1"/>
</LinearGradientBrush>
</Window.Resources>
<Grid x:Name="RootGrid">
<Grid.LayoutTransform>
<ScaleTransform x:Name="AppScaleTransform" ScaleX="1" ScaleY="1"/>
</Grid.LayoutTransform>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="248"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Style="{StaticResource ShellSidebar}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Logo area -->
<Border Grid.Row="0" Margin="14,18,14,10" CornerRadius="12" Padding="14,12" BorderBrush="{StaticResource AccentBorder}" BorderThickness="1" Background="{StaticResource CardGradient}">
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="LSPDFR" FontSize="18" FontWeight="Bold" Foreground="{StaticResource AccentPrimary}"/>
<TextBlock Text=" Manager" FontSize="18" FontWeight="Bold" Foreground="{StaticResource TextStrong}"/>
</StackPanel>
<TextBlock Text="{Binding AppVersionText}" Margin="0,4,0,0" Foreground="{StaticResource TextMuted}" FontSize="11"/>
</StackPanel>
</Border>
<!-- Nav buttons -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<StackPanel Margin="10,0,10,0">
<Button Command="{Binding NavigateCommand}" CommandParameter="Home">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Home" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsHomeActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Library">
<Button.Content>
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/>
<TextBlock Text="Library" FontSize="13" Margin="10,0,0,0"/>
<Border Background="#F59E0B" CornerRadius="8" Padding="5,1" Margin="8,0,0,0"
Visibility="{Binding HasDisabledMods, Converter={StaticResource BoolToVis}, FallbackValue=Collapsed}">
<TextBlock Text="{Binding DisabledModCount}" FontSize="10" FontWeight="Bold" Foreground="Black"/>
</Border>
</StackPanel>
</Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsLibraryActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Install">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Install" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsInstallActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Browse">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Browse" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsBrowseActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="PatrolReadiness">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Patrol Ready" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsPatrolReadinessActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="SafeMode">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Safe Mode" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsSafeModeActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Cleanup">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Cleanup" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsCleanupActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Diagnostics">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Diagnostics" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsDiagnosticsActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Profiles">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Profiles" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsProfilesActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Backups">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Backups" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsBackupsActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="History">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="History" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsHistoryActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Logs">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Logs" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsLogViewerActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Settings">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Settings" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsSettingsActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="ModConfig">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Mod Config" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsModConfigActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="Oiv">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="OIV Tools" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsOivActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="DevDiagnostics">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="Dev Diagnostics" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsDevDiagnosticsActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
<Button Command="{Binding NavigateCommand}" CommandParameter="ReactPreview">
<Button.Content><StackPanel Orientation="Horizontal"><TextBlock FontFamily="Segoe MDL2 Assets" Text="" FontSize="14" Width="20" TextAlignment="Center"/><TextBlock Text="React UI" FontSize="13" Margin="10,0,0,0"/></StackPanel></Button.Content>
<Button.Style><Style TargetType="Button" BasedOn="{StaticResource NavButton}"><Style.Triggers><DataTrigger Binding="{Binding IsReactPreviewActive}" Value="True"><Setter Property="Background" Value="{StaticResource AccentActiveBg}"/><Setter Property="BorderBrush" Value="{StaticResource AccentBorder}"/><Setter Property="Foreground" Value="{StaticResource TextStrong}"/><Setter Property="FontWeight" Value="Bold"/></DataTrigger></Style.Triggers></Style></Button.Style>
</Button>
</StackPanel>
</ScrollViewer>
<!-- Bottom status footer -->
<Border Grid.Row="2" Margin="10,0,10,12" Padding="10,8" CornerRadius="8" Background="{StaticResource Surface}" BorderBrush="{StaticResource BorderSubtle}" BorderThickness="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Ellipse Grid.Column="0" Width="8" Height="8" Margin="0,0,8,0" VerticalAlignment="Center" Fill="{StaticResource SuccessGreen}"/>
<TextBlock Grid.Column="1" Text="{Binding GtaStatusText}" FontSize="11" Foreground="{StaticResource TextMuted}" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"/>
</Grid>
</Border>
</Grid>
</Border>
<Grid Grid.Column="1" Margin="16,16,16,16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Height="4" Margin="0,0,0,8" CornerRadius="2" Background="{StaticResource ShellGlowAccent}"/>
<Border Grid.Row="0" Margin="0,8,0,10" Style="{StaticResource WarningBanner}" Visibility="{Binding HasGlobalError, Converter={StaticResource BoolToVis}}">
<DockPanel>
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}" Content="✕" VerticalAlignment="Top" Margin="8,0,0,0" Click="DismissError_Click"/>
<TextBlock Text="{Binding GlobalErrorMessage}" Foreground="{StaticResource ErrorText}" FontSize="13" TextWrapping="Wrap" VerticalAlignment="Center"/>
</DockPanel>
</Border>
<Border Grid.Row="1" Style="{StaticResource ShellContentPanel}">
<ContentControl Content="{Binding CurrentView}"/>
</Border>
</Grid>
</Grid>
</Window>