Skip to content

Commit bfadccb

Browse files
authored
Merge pull request #6149 from retailcoder/revert-dynamic-resources
Revert dynamic resources
2 parents d03b512 + 75c979d commit bfadccb

38 files changed

+494
-460
lines changed

Rubberduck.Core/UI/About/AboutControl.xaml

Lines changed: 87 additions & 53 deletions
Large diffs are not rendered by default.

Rubberduck.Core/UI/AddRemoveReferences/AddRemoveReferencesWindow.xaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</Style>
8686
<Style x:Key="SelectableText" TargetType="{x:Type TextBox}">
8787
<Setter Property="Margin" Value="2" />
88-
<Setter Property="Foreground" Value ="{DynamicResource {x:Static SystemColors.GrayTextBrush}}" />
88+
<Setter Property="Foreground" Value ="{x:Static SystemColors.GrayTextBrush}" />
8989
<Setter Property="Background" Value="Transparent" />
9090
<Setter Property="BorderThickness" Value="0" />
9191
<Setter Property="IsReadOnly" Value="True" />
@@ -94,8 +94,8 @@
9494
</Style>
9595
<Style x:Key="BorderStyle" TargetType="{x:Type Border}">
9696
<Setter Property="BorderThickness" Value="1" />
97-
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.ActiveBorderBrush}}" />
98-
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrush}}" />
97+
<Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" />
98+
<Setter Property="Background" Value="{x:Static SystemColors.ControlBrush}" />
9999
<Setter Property="Padding" Value="2" />
100100
</Style>
101101
</ResourceDictionary>
@@ -106,12 +106,12 @@
106106
<RowDefinition Height="*" />
107107
<RowDefinition Height="40" />
108108
</Grid.RowDefinitions>
109-
<DockPanel Grid.Row="0" Dock="Top" Background="{DynamicResource {x:Static SystemColors.WindowBrush}}">
109+
<DockPanel Grid.Row="0" Dock="Top" Background="{x:Static SystemColors.WindowBrush}">
110110
<Label DockPanel.Dock="Top" Content="{Binding ProjectCaption}" FontWeight="Bold" />
111111
<TextBlock DockPanel.Dock="Top" Text="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=SubCaption}" Margin="10,0,0,10" />
112112
</DockPanel>
113-
<Border Grid.Row="1" Background="{DynamicResource {x:Static SystemColors.ControlLightBrush}}">
114-
<Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static SystemColors.ControlLightBrush}}" Margin="5">
113+
<Border Grid.Row="1" Background="{x:Static SystemColors.ControlLightBrush}">
114+
<Border BorderThickness="1" BorderBrush="{x:Static SystemColors.ControlLightBrush}" Margin="5">
115115
<Grid>
116116
<Grid.RowDefinitions>
117117
<RowDefinition Height="Auto" />
@@ -152,8 +152,8 @@
152152
</TabItem.Header>
153153
</TabItem>
154154
</TabControl>
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"
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"
157157
Command="{Binding BrowseCommand}">
158158
<StackPanel Orientation="Horizontal">
159159
<Image Margin="0,0,5,0" Height="16" Source="{StaticResource BrowseIcon}" />
@@ -171,13 +171,13 @@
171171
<RowDefinition Height="*" />
172172
</Grid.RowDefinitions>
173173
<Border Grid.Row="0" Grid.Column="0"
174-
Background="{DynamicResource {x:Static SystemColors.ControlBrush}}"
175-
BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrush}}"
174+
Background="{x:Static SystemColors.ControlBrush}"
175+
BorderBrush="{x:Static SystemColors.ActiveBorderBrush}"
176176
BorderThickness="1"
177177
Margin="0,5"
178178
Padding="2">
179179
<controls:SearchBox x:Name="SearchBox" Grid.Column="0"
180-
Background="{DynamicResource {x:Static SystemColors.WindowBrush}}"
180+
Background="{x:Static SystemColors.WindowBrush}"
181181
Width="Auto"
182182
Text="{Binding Search, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
183183
Hint="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=SearchPlaceholder}" />
@@ -398,13 +398,13 @@
398398
<TextBox x:Name="Description"
399399
Grid.Row="0" Grid.Column="0" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Description, Mode=OneWay}" />
400400
<Label Grid.Row="0" Grid.Column="1"
401-
Foreground="{DynamicResource {x:Static SystemColors.GrayTextBrush}}"
401+
Foreground="{x:Static SystemColors.GrayTextBrush}"
402402
VerticalAlignment="Center"
403403
Content="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=Version}" />
404404
<TextBox x:Name="Version"
405405
Grid.Row="0" Grid.Column="2" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Version, Mode=OneWay}" />
406406
<Label Grid.Row="0" Grid.Column="3"
407-
Foreground="{DynamicResource {x:Static SystemColors.GrayTextBrush}}"
407+
Foreground="{x:Static SystemColors.GrayTextBrush}"
408408
VerticalAlignment="Center"
409409
Content="{Resx ResxName=Rubberduck.UI.AddRemoveReferences.AddRemoveReferencesUI, Key=Locale}" />
410410
<TextBox x:Name="LocaleName"
@@ -418,7 +418,7 @@
418418
</Border>
419419
</Border>
420420

421-
<Border Grid.Row="2" Background="{DynamicResource {x:Static SystemColors.ControlDarkBrush}}" Grid.IsSharedSizeScope="True">
421+
<Border Grid.Row="2" Background="{x:Static SystemColors.ControlDarkBrush}" Grid.IsSharedSizeScope="True">
422422
<Grid HorizontalAlignment="Right">
423423
<Grid.ColumnDefinitions>
424424
<ColumnDefinition SharedSizeGroup="DialogButtons" MinWidth="100" />

0 commit comments

Comments
 (0)