|
85 | 85 | </Style>
|
86 | 86 | <Style x:Key="SelectableText" TargetType="{x:Type TextBox}">
|
87 | 87 | <Setter Property="Margin" Value="2" />
|
88 |
| - <Setter Property="Foreground" Value ="{x:Static SystemColors.GrayTextBrush}" /> |
| 88 | + <Setter Property="Foreground" Value ="{DynamicResource {x:Static SystemColors.GrayTextBrush}}" /> |
89 | 89 | <Setter Property="Background" Value="Transparent" />
|
90 | 90 | <Setter Property="BorderThickness" Value="0" />
|
91 | 91 | <Setter Property="IsReadOnly" Value="True" />
|
|
94 | 94 | </Style>
|
95 | 95 | <Style x:Key="BorderStyle" TargetType="{x:Type Border}">
|
96 | 96 | <Setter Property="BorderThickness" Value="1" />
|
97 |
| - <Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" /> |
98 |
| - <Setter Property="Background" Value="{x:Static SystemColors.ControlBrush}" /> |
| 97 | + <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.ActiveBorderBrush}}" /> |
| 98 | + <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrush}}" /> |
99 | 99 | <Setter Property="Padding" Value="2" />
|
100 | 100 | </Style>
|
101 | 101 | </ResourceDictionary>
|
|
106 | 106 | <RowDefinition Height="*" />
|
107 | 107 | <RowDefinition Height="40" />
|
108 | 108 | </Grid.RowDefinitions>
|
109 |
| - <DockPanel Grid.Row="0" Dock="Top" Background="{x:Static SystemColors.WindowBrush}"> |
| 109 | + <DockPanel Grid.Row="0" Dock="Top" Background="{DynamicResource {x:Static SystemColors.WindowBrush}}"> |
110 | 110 | <Label DockPanel.Dock="Top" Content="{Binding ProjectCaption}" FontWeight="Bold" />
|
111 | 111 | <TextBlock DockPanel.Dock="Top" Text="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=SubCaption}" Margin="10,0,0,10" />
|
112 | 112 | </DockPanel>
|
113 |
| - <Border Grid.Row="1" Background="{x:Static SystemColors.ControlLightBrush}"> |
114 |
| - <Border BorderThickness="1" BorderBrush="{x:Static SystemColors.ControlLightBrush}" Margin="5"> |
| 113 | + <Border Grid.Row="1" Background="{DynamicResource {x:Static SystemColors.ControlLightBrush}}"> |
| 114 | + <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static SystemColors.ControlLightBrush}}" Margin="5"> |
115 | 115 | <Grid>
|
116 | 116 | <Grid.RowDefinitions>
|
117 | 117 | <RowDefinition Height="Auto" />
|
|
152 | 152 | </TabItem.Header>
|
153 | 153 | </TabItem>
|
154 | 154 | </TabControl>
|
155 |
| - <Button Grid.Row="0" Height="24" Background="{x:Static SystemColors.ControlBrush}" Margin="0,0,10,0" |
156 |
| - BorderBrush="{x:Static SystemColors.ActiveBorderBrush}" Width="100" HorizontalAlignment="Right" |
| 155 | + <Button Grid.Row="0" Height="24" Background="{DynamicResource {x:Static SystemColors.ControlBrush}}" Margin="0,0,10,0" |
| 156 | + BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrush}}" Width="100" HorizontalAlignment="Right" |
157 | 157 | Command="{Binding BrowseCommand}">
|
158 | 158 | <StackPanel Orientation="Horizontal">
|
159 | 159 | <Image Margin="0,0,5,0" Height="16" Source="{StaticResource BrowseIcon}" />
|
|
171 | 171 | <RowDefinition Height="*" />
|
172 | 172 | </Grid.RowDefinitions>
|
173 | 173 | <Border Grid.Row="0" Grid.Column="0"
|
174 |
| - Background="{x:Static SystemColors.ControlBrush}" |
175 |
| - BorderBrush="{x:Static SystemColors.ActiveBorderBrush}" |
| 174 | + Background="{DynamicResource {x:Static SystemColors.ControlBrush}}" |
| 175 | + BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrush}}" |
176 | 176 | BorderThickness="1"
|
177 | 177 | Margin="0,5"
|
178 | 178 | Padding="2">
|
179 | 179 | <controls:SearchBox x:Name="SearchBox" Grid.Column="0"
|
180 |
| - Background="{x:Static SystemColors.WindowBrush}" |
| 180 | + Background="{DynamicResource {x:Static SystemColors.WindowBrush}}" |
181 | 181 | Width="Auto"
|
182 | 182 | Text="{Binding Search, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
183 | 183 | Hint="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=SearchPlaceholder}" />
|
|
398 | 398 | <TextBox x:Name="Description"
|
399 | 399 | Grid.Row="0" Grid.Column="0" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Description, Mode=OneWay}" />
|
400 | 400 | <Label Grid.Row="0" Grid.Column="1"
|
401 |
| - Foreground="{x:Static SystemColors.GrayTextBrush}" |
| 401 | + Foreground="{DynamicResource {x:Static SystemColors.GrayTextBrush}}" |
402 | 402 | VerticalAlignment="Center"
|
403 | 403 | Content="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=Version}" />
|
404 | 404 | <TextBox x:Name="Version"
|
405 | 405 | Grid.Row="0" Grid.Column="2" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Version, Mode=OneWay}" />
|
406 | 406 | <Label Grid.Row="0" Grid.Column="3"
|
407 |
| - Foreground="{x:Static SystemColors.GrayTextBrush}" |
| 407 | + Foreground="{DynamicResource {x:Static SystemColors.GrayTextBrush}}" |
408 | 408 | VerticalAlignment="Center"
|
409 | 409 | Content="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=Locale}" />
|
410 | 410 | <TextBox x:Name="LocaleName"
|
|
418 | 418 | </Border>
|
419 | 419 | </Border>
|
420 | 420 |
|
421 |
| - <Border Grid.Row="2" Background="{x:Static SystemColors.ControlDarkBrush}" Grid.IsSharedSizeScope="True"> |
| 421 | + <Border Grid.Row="2" Background="{DynamicResource {x:Static SystemColors.ControlDarkBrush}}" Grid.IsSharedSizeScope="True"> |
422 | 422 | <Grid HorizontalAlignment="Right">
|
423 | 423 | <Grid.ColumnDefinitions>
|
424 | 424 | <ColumnDefinition SharedSizeGroup="DialogButtons" MinWidth="100" />
|
|
0 commit comments