|
45 | 45 | </UserControl.CommandBindings> |
46 | 46 |
|
47 | 47 | <DockPanel> |
48 | | - <Border Background="Transparent" DockPanel.Dock="Top"> |
| 48 | + <Border Background="Transparent" TextBlock.Foreground="Black" DockPanel.Dock="Top"> |
49 | 49 | <DockPanel> |
50 | 50 | <Border |
51 | 51 | Width="42" |
|
78 | 78 | </TextBlock> |
79 | 79 | <TextBlock |
80 | 80 | Margin="8 0 0 0" |
81 | | - Foreground="{DynamicResource SystemControlAcrylicWindowForegroundBrush}" |
| 81 | + Foreground="White" |
| 82 | + VerticalAlignment="Center" |
| 83 | + HorizontalAlignment="Left" |
| 84 | + Text="SETTINGS - MSIX HERO"> |
| 85 | + <TextBlock.Effect> |
| 86 | + <BlurEffect |
| 87 | + Radius="2.0" |
| 88 | + KernelType="Box"/> |
| 89 | + </TextBlock.Effect> |
| 90 | + </TextBlock> |
| 91 | + <TextBlock |
| 92 | + Margin="8 0 0 0" |
82 | 93 | VerticalAlignment="Center" |
83 | 94 | HorizontalAlignment="Left" |
84 | 95 | Text="SETTINGS - MSIX HERO" /> |
|
98 | 109 | </StackPanel> |
99 | 110 | </Border> |
100 | 111 |
|
101 | | - <Border Visibility="{Binding AllSettings.IsValid, Converter={StaticResource NegativeBooleanToVisibilityConverter}}" Background="#FFDDDD" Padding="8" DockPanel.Dock="Bottom"> |
102 | | - <TextBlock Text="{Binding AllSettings.ValidationMessage}" VerticalAlignment="Center" /> |
| 112 | + <Border Visibility="{Binding AllSettings.IsValid, Converter={StaticResource NegativeBooleanToVisibilityConverter}}" Background="#FFE39E" Padding="8" DockPanel.Dock="Bottom"> |
| 113 | + <DockPanel> |
| 114 | + <Border |
| 115 | + DockPanel.Dock="Left" |
| 116 | + VerticalAlignment="Center" |
| 117 | + Margin="0 0 8 0" |
| 118 | + CornerRadius="14" Width="14" Height="14" Background="IndianRed" HorizontalAlignment="Right"> |
| 119 | + <TextBlock Text="!" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="10" LineHeight="10" LineStackingStrategy="BlockLineHeight" FontWeight="Bold" Foreground="White" /> |
| 120 | + </Border> |
| 121 | + |
| 122 | + <TextBlock Text="{Binding AllSettings.ValidationMessage}" VerticalAlignment="Center" /> |
| 123 | + </DockPanel> |
| 124 | + |
103 | 125 | </Border> |
104 | 126 |
|
105 | 127 | <Border Background="White"> |
106 | | - <TabControl SelectedIndex="1" Margin="16 0 16 16" x:Name="MainContent" view:SearchHelper.SearchString="test"> |
107 | | - <TabItem Visibility="Collapsed" Header="General"> |
| 128 | + <TabControl SelectedIndex="0" Margin="16 0 16 16" x:Name="MainContent" view:SearchHelper.SearchString="test"> |
| 129 | + <TabItem Header="Interface"> |
108 | 130 | <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
109 | | - <UniformGrid HorizontalAlignment="Left" Rows="1" Columns="2"> |
110 | | - <Border Margin="0 0 8 8"> |
111 | | - <StackPanel> |
112 | | - <Image Source="Images/sidebar.png" Stretch="None" /> |
113 | | - <RadioButton IsChecked="{Binding SidebarDefaultState.CurrentValue}" GroupName="g1" Content="With sidebar" Margin="0 8 0 0" /> |
114 | | - </StackPanel> |
115 | | - </Border> |
116 | | - <Border Margin="0 0 8 8"> |
117 | | - <StackPanel> |
118 | | - <Image Source="Images/no-sidebar.png" Stretch="None" /> |
119 | | - <RadioButton IsChecked="{Binding SidebarDefaultState.CurrentValue, Converter={StaticResource NegativeConverter}}" Content="Without sidebar" Margin="0 8 0 0" /> |
120 | | - </StackPanel> |
121 | | - </Border> |
122 | | - </UniformGrid> |
| 131 | + <StackPanel> |
| 132 | + <Label Style="{StaticResource FormLabel}">Start-up</Label> |
| 133 | + |
| 134 | + <TextBlock Style="{StaticResource DataHeader}" Text="Initial screen" Margin="0 0 0 6" /> |
| 135 | + <ComboBox |
| 136 | + SelectedValuePath="Tag" |
| 137 | + SelectedValue="{Binding DefaultScreen.CurrentValue}"> |
| 138 | + <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Dashboard}">Tools dashboard</ComboBoxItem> |
| 139 | + <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Packages}">Packages</ComboBoxItem> |
| 140 | + <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Volumes}">Volumes</ComboBoxItem> |
| 141 | + <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Events}">Event viewer</ComboBoxItem> |
| 142 | + <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.System}">System state</ComboBoxItem> |
| 143 | + </ComboBox> |
| 144 | + |
| 145 | + <TextBlock Text="Release notes" Style="{StaticResource DataHeader}" Margin="0 16 0 6" /> |
| 146 | + <CheckBox IsChecked="{Binding ShowReleaseNotes.CurrentValue}" Content="Show Release Notes after each update of MSIX Hero" /> |
| 147 | + |
| 148 | + <Label Style="{StaticResource FormLabel}" Margin="0 20 0 6">Prompts</Label> |
| 149 | + |
| 150 | + <CheckBox IsChecked="{Binding ConfirmDeletion.CurrentValue}" Content="Confirm removal of items" /> |
| 151 | + </StackPanel> |
123 | 152 | </ScrollViewer> |
124 | 153 | </TabItem> |
125 | 154 | <TabItem Header="Signing"> |
|
261 | 290 | <DataTemplate DataType="{x:Type tools:ToolViewModel}"> |
262 | 291 | <DockPanel> |
263 | 292 | <Image x:Name="PART_Image" Width="24" Height="24" |
264 | | - Stretch="UniformToFill" |
265 | | - SnapsToDevicePixels="True" |
266 | | - UseLayoutRounding="True" |
267 | | - VerticalAlignment="Center" |
268 | | - Margin="0 0 6 0"> |
| 293 | + Stretch="UniformToFill" |
| 294 | + SnapsToDevicePixels="True" |
| 295 | + UseLayoutRounding="True" |
| 296 | + VerticalAlignment="Center" |
| 297 | + Margin="0 0 6 0"> |
269 | 298 | <Image.Source> |
270 | 299 | <Binding Path="Image" /> |
271 | 300 | </Image.Source> |
272 | 301 | </Image> |
273 | 302 |
|
274 | 303 | <Viewbox |
275 | | - Visibility="Collapsed" |
276 | | - Width="24" |
277 | | - Height="24" |
278 | | - x:Name="PART_ImageFallback" |
279 | | - SnapsToDevicePixels="True" |
280 | | - UseLayoutRounding="True" |
281 | | - VerticalAlignment="Center" |
282 | | - Margin="0 0 6 0"> |
| 304 | + Visibility="Collapsed" |
| 305 | + Width="24" |
| 306 | + Height="24" |
| 307 | + x:Name="PART_ImageFallback" |
| 308 | + SnapsToDevicePixels="True" |
| 309 | + UseLayoutRounding="True" |
| 310 | + VerticalAlignment="Center" |
| 311 | + Margin="0 0 6 0"> |
283 | 312 | <Path Data="{StaticResource VectorGear}" Width="32" Height="32" Fill="{StaticResource Otor.MsixHero.Brushes.Accent}" /> |
284 | 313 | </Viewbox> |
285 | 314 |
|
286 | 315 | <Border ToolTip="{Binding ValidationMessage}" ToolTipService.Placement="Bottom" |
287 | | - ToolTipService.HasDropShadow="False" ToolTipService.InitialShowDelay="50" |
288 | | - ToolTipService.ShowDuration="10000" |
289 | | - Margin="6 -4 0 -4" Width="24" Height="24" |
290 | | - Background="Transparent" VerticalAlignment="Center" DockPanel.Dock="Right" Visibility="Collapsed" x:Name="PART_Error"> |
291 | | - <Viewbox VerticalAlignment="Center" HorizontalAlignment="Center" Width="24" Height="24"> |
292 | | - <Path Data="{StaticResource VectorError}" Width="32" Height="32" Fill="IndianRed" /> |
293 | | - </Viewbox> |
| 316 | + ToolTipService.HasDropShadow="False" ToolTipService.InitialShowDelay="50" |
| 317 | + ToolTipService.ShowDuration="10000" |
| 318 | + Margin="6 -4 0 -4" Width="24" Height="24" |
| 319 | + Background="Transparent" VerticalAlignment="Center" DockPanel.Dock="Right" Visibility="Collapsed" x:Name="PART_Error"> |
| 320 | + |
| 321 | + <Border |
| 322 | + VerticalAlignment="Center" |
| 323 | + Margin="0 0 0 0" |
| 324 | + CornerRadius="14" Width="14" Height="14" Background="IndianRed" HorizontalAlignment="Right"> |
| 325 | + <TextBlock Text="!" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="10" LineHeight="10" LineStackingStrategy="BlockLineHeight" FontWeight="Bold" Foreground="White" /> |
| 326 | + </Border> |
294 | 327 | </Border> |
295 | 328 |
|
296 | 329 | <TextBlock Text="{Binding Name.CurrentValue}" VerticalAlignment="Center" Margin="0" /> |
|
418 | 451 | </ScrollViewer> |
419 | 452 | </Grid> |
420 | 453 | </TabItem> |
421 | | - <TabItem Header="UI"> |
422 | | - <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
423 | | - <StackPanel> |
424 | | - <Label Margin="0 0 0 6" Style="{StaticResource FormLabel}">Start-up</Label> |
425 | | - |
426 | | - <TextBlock Style="{StaticResource DataHeader}" Text="Initial screen" Margin="0 0 0 6" /> |
427 | | - <ComboBox |
428 | | - SelectedValuePath="Tag" |
429 | | - SelectedValue="{Binding DefaultScreen.CurrentValue}"> |
430 | | - <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Dashboard}">Tools dashboard</ComboBoxItem> |
431 | | - <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Packages}">Packages</ComboBoxItem> |
432 | | - <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Volumes}">Volumes</ComboBoxItem> |
433 | | - <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.Events}">Event viewer</ComboBoxItem> |
434 | | - <ComboBoxItem Tag="{x:Static configuration:DefaultScreen.System}">System state</ComboBoxItem> |
435 | | - </ComboBox> |
436 | | - |
437 | | - <TextBlock Text="Release notes" Style="{StaticResource DataHeader}" Margin="0 16 0 6" /> |
438 | | - <CheckBox IsChecked="{Binding ShowReleaseNotes.CurrentValue}" Content="Show Release Notes after each update of MSIX Hero" /> |
439 | | - |
440 | | - <Label Style="{StaticResource FormLabel}" Margin="0 20 0 6">Prompts</Label> |
441 | | - |
442 | | - <CheckBox IsChecked="{Binding ConfirmDeletion.CurrentValue}" Content="Confirm removal of items" /> |
443 | | - </StackPanel> |
444 | | - </ScrollViewer> |
445 | | - </TabItem> |
446 | 454 | <TabItem Header="Other"> |
447 | 455 | <b:Interaction.Behaviors> |
448 | 456 | <validation:ValidationBehavior ValidatedChangeable="{Binding TabOther}" /> |
449 | 457 | </b:Interaction.Behaviors> |
450 | 458 | <StackPanel> |
451 | | - <Label Margin="0 0 0 6" Content="Certificates" Style="{StaticResource FormLabel}" /> |
| 459 | + <Label Content="Certificates" Style="{StaticResource FormLabel}" /> |
452 | 460 |
|
453 | 461 | <TextBlock Text="Default folder where certificates are extracted" Style="{StaticResource DataHeader}" Margin="0 0 0 6" /> |
454 | 462 | <DockPanel Margin="0 0 0 16"> |
455 | 463 | <Button DockPanel.Dock="Right" Content="..." Command="{Binding CertificateOutputPath.Browse}" Margin="4 0 0 0" /> |
456 | 464 | <TextBox Text="{Binding CertificateOutputPath.CurrentValue, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" /> |
457 | 465 | </DockPanel> |
458 | 466 |
|
459 | | - <Label Margin="0 0 0 6" Content="Packing" Style="{StaticResource FormLabel}" /> |
| 467 | + <Label Content="Packing" Style="{StaticResource FormLabel}" /> |
460 | 468 | <CheckBox IsChecked="{Binding PackerSignByDefault.CurrentValue}" Margin="0 0 0 16"> |
461 | 469 | <TextBlock Text="Sign packages after packing" TextWrapping="Wrap" /> |
462 | 470 | </CheckBox> |
|
0 commit comments