|
13 | 13 | TitleCaps="False" |
14 | 14 | ShowTitleBar="true" |
15 | 15 | Closing="MetroWindow_Closing"> |
16 | | - |
| 16 | + |
17 | 17 | <controls:MetroWindow.RightWindowCommands> |
18 | 18 | <controls:WindowCommands> |
19 | 19 | <Button Name="BackupConfigsButton" Content="Backup configs" Click="BackupConfigsButton_Click"/> |
|
25 | 25 | <ResourceDictionary> |
26 | 26 |
|
27 | 27 | <Style x:Key="ListBoxStyle" BasedOn="{StaticResource {x:Type ListBox}}" TargetType="{x:Type ListBox}"> |
28 | | - <Setter Property="BorderBrush" Value="LightGray"/> |
| 28 | + <Setter Property="BorderBrush" Value="{DynamicResource TextBoxBorderBrush}"/> |
29 | 29 | <Setter Property="BorderThickness" Value="1"/> |
| 30 | + <Setter Property="Background" Value="{DynamicResource GrayBrush10}"/> |
| 31 | + </Style> |
| 32 | + |
| 33 | + <Style TargetType="ListBoxItem" BasedOn="{StaticResource MetroListBoxItem}"> |
| 34 | + <Setter Property="Background" Value="{DynamicResource GrayBrush10}" /> |
30 | 35 | </Style> |
31 | 36 |
|
32 | 37 | <Style x:Key="DockPanelStyle" TargetType="DockPanel"> |
|
42 | 47 | <Setter Property="Margin" Value="0,5,0,5"/> |
43 | 48 | </Style> |
44 | 49 |
|
| 50 | + <Style TargetType="TextBox" BasedOn="{StaticResource MetroTextBox}"> |
| 51 | + <Setter Property="Background" Value="{DynamicResource GrayBrush10}"/> |
| 52 | + </Style> |
| 53 | + |
| 54 | + <Style TargetType="PasswordBox" BasedOn="{StaticResource MetroPasswordBox}"> |
| 55 | + <Setter Property="Background" Value="{DynamicResource GrayBrush10}"/> |
| 56 | + </Style> |
| 57 | + |
| 58 | + <Style x:Key="SearchMetroTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource SearchMetroTextBox}"> |
| 59 | + <Setter Property="Background" Value="{DynamicResource GrayBrush10}"/> |
| 60 | + </Style> |
| 61 | + |
| 62 | + <Style TargetType="ComboBox" BasedOn="{StaticResource MetroComboBox}"> |
| 63 | + <Setter Property="Background" Value="{DynamicResource GrayBrush10}"/> |
| 64 | + </Style> |
| 65 | + |
45 | 66 | <Style TargetType="Separator"> |
46 | 67 | <Setter Property="Template"> |
47 | 68 | <Setter.Value> |
|
67 | 88 | <Button Name="NewButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0" Width="75" Content="New" Click="NewButton_Clicked" /> |
68 | 89 | <Button Name="DeleteButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="120,5,0,0" Width="75" Content="Delete" Click="DeleteButton_Clicked" /> |
69 | 90 | <ListBox Name="ConfigListBox" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="0,35,0,0" Width="200" SelectionChanged="ConfigListBox_SelectionChanged" /> |
70 | | - <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="200,30,0,0" Height="5" IsHitTestVisible="False"> |
71 | | - <Rectangle.Fill> |
72 | | - <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> |
73 | | - <GradientStopCollection> |
74 | | - <GradientStop Offset="0" Color="Transparent" /> |
75 | | - <GradientStop Offset="1" Color="#44000000" /> |
76 | | - </GradientStopCollection> |
77 | | - </LinearGradientBrush> |
78 | | - </Rectangle.Fill> |
79 | | - </Rectangle> |
80 | 91 | <Line X1="200" X2="200" Y2="1000" VerticalAlignment="Stretch" Stroke="{DynamicResource BlackColorBrush}" StrokeThickness="1" /> |
81 | | - <ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="201,35,0,0"> |
82 | | - <Grid Margin="0,5,0,5"> |
| 92 | + <ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="201,5,0,0"> |
| 93 | + <Grid Margin="0,0,0,5"> |
83 | 94 | <StackPanel> |
84 | 95 |
|
85 | 96 | <!-- Section 1 --> |
|
118 | 129 | <DockPanel> |
119 | 130 | <TextBlock Name="CopyDirBlock" Text="Copy Directory: " IsHitTestVisible="False" /> |
120 | 131 | <TextBox Name="C_CopyDir" Margin="50,0,0,0" TextChanged="C_CopyDir_TextChanged" |
121 | | - Style="{DynamicResource SearchMetroTextBox}" |
| 132 | + Style="{DynamicResource SearchMetroTextBoxStyle}" |
122 | 133 | controls:TextBoxHelper.ButtonCommand="{Binding TextBoxButtonFolderCmd, Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" /> |
123 | 134 | </DockPanel> |
124 | 135 |
|
125 | 136 | <DockPanel> |
126 | 137 | <TextBlock Name="ServerExeBlock" Text="Server Executable: " IsHitTestVisible="False" /> |
127 | 138 | <TextBox Name="C_ServerFile" Margin="50,0,0,0" TextChanged="C_ServerFile_TextChanged" |
128 | | - Style="{StaticResource SearchMetroTextBox}" |
| 139 | + Style="{StaticResource SearchMetroTextBoxStyle}" |
129 | 140 | controls:TextBoxHelper.ButtonCommand="{Binding TextBoxButtonFileCmd, Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" /> |
130 | 141 | </DockPanel> |
131 | 142 |
|
|
145 | 156 | <StackPanel Margin="5"> |
146 | 157 | <DockPanel> |
147 | 158 | <TextBlock Name="PreBuildBlock" Text="Pre-Build Commandline: " IsHitTestVisible="False" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
148 | | - <ComboBox Name="CMD_ItemC" Width="200" SelectedIndex="0" HorizontalAlignment="Right" Margin="0,0,0,5"> |
149 | | - <ComboBoxItem Visibility="Collapsed">Macros</ComboBoxItem> |
150 | | - </ComboBox> |
| 159 | + <ComboBox Name="CMD_ItemC" Width="200" HorizontalAlignment="Right" Margin="0,0,0,5"/> |
151 | 160 | </DockPanel> |
152 | 161 | <TextBox Name="C_PreBuildCmd" Height="80" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" TextChanged="C_PreBuildCmd_TextChanged" GotFocus="BuildCommandsBoxes_OnFocus" /> |
153 | 162 | </StackPanel> |
|
240 | 249 | <StackPanel Margin="5"> |
241 | 250 | <DockPanel LastChildFill="True"> |
242 | 251 | <TextBlock Name="RConComBlock" Text="RCon Commands:" IsHitTestVisible="False" /> |
243 | | - <ComboBox Name="Rcon_MenuC" Width="200" SelectedIndex="0" HorizontalAlignment="Right" Margin="0,0,0,5"> |
244 | | - <ComboBoxItem Visibility="Collapsed">Macros</ComboBoxItem> |
245 | | - </ComboBox> |
| 252 | + <ComboBox Name="Rcon_MenuC" Width="200" HorizontalAlignment="Right" Margin="0,0,0,5"/> |
246 | 253 | </DockPanel> |
247 | 254 | <TextBox Name="C_RConCmds" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" TextChanged="C_RConCmds_TextChanged" Height="100"/> |
248 | 255 | </StackPanel> |
|
0 commit comments