Просмотр исходного кода

Issues button moved to backstage

Kenric Nugteren 9 месяцев назад
Родитель
Сommit
d6a2303468
2 измененных файлов с 12 добавлено и 10 удалено
  1. 11 10
      prs.desktop/MainWindow.xaml
  2. 1 0
      prs.desktop/MainWindow.xaml.cs

+ 11 - 10
prs.desktop/MainWindow.xaml

@@ -132,6 +132,15 @@
                             Size="Middle"
                             HorizontalAlignment="Stretch"
                             Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
+                        
+                        <fluent:Button
+                            x:Name="IssuesButton"
+                            Header="Support Tickets"
+                            Click="Issues_Click"
+                            Size="Middle"
+                            HorizontalAlignment="Stretch"
+                            ToolTip="Raise an issue with the PRS team"
+                            Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}"/>
 
                         <fluent:SeparatorTabItem x:Name="BackstageSeparator2" Height="20" />
 
@@ -790,7 +799,6 @@
                 <ColumnDefinition Width="*" />
                 <ColumnDefinition Width="*" />
                 <ColumnDefinition Width="*" />
-                <ColumnDefinition Width="*" />
             </Grid.ColumnDefinitions>
 
             <Grid.RowDefinitions>
@@ -806,7 +814,7 @@
                 Margin="0,0,5,0"
                 Background="WhiteSmoke"
                 Grid.Row="0"
-                Grid.Column="3"
+                Grid.Column="2"
                 Size="Middle"
                 Icon="Resources/team.png"
                 HorizontalAlignment="Stretch"
@@ -824,15 +832,8 @@
                            LargeIcon="Resources/contract.png"
                            Click="Forms_Click"
                            Margin="0,0,5,20"/>
-            
-            <fluent:Button Grid.Row="1" Grid.Column="2"
-                           Header="Issues"
-                           LargeIcon="Resources/appicon.png"
-                           Click="Issues_Click"
-                           ToolTip="Raise an issue with the PRS team"
-                           Margin="0,0,5,20"/>
 
-            <Border Grid.Row="1" Grid.Column="3" 
+            <Border Grid.Row="1" Grid.Column="2" 
                     BorderBrush="Silver" BorderThickness="0,0.75,0.75,0.75" Padding="0,0,5,20">
                 <StackPanel Orientation="Horizontal">
                     

+ 1 - 0
prs.desktop/MainWindow.xaml.cs

@@ -743,6 +743,7 @@ public partial class MainWindow : IPanelHostControl
 
         BackstageSeparator1a.Visibility = Visibility.Visible;
         SystemLogsButton.Visibility = Visibility.Visible;
+        IssuesButton.Visibility = Visibility.Visible;
 
         SetVisibility(DocumentTypeList, ClientFactory.IsSupported<DocumentType>() && Security.IsAllowed<CanViewDocumentTypes>());
         SetVisibleIfAny(BackstageSeparator2, DocumentTypeList);