Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mistakingly deleted it in a prior commit.
- Loading branch information
Showing
1 changed file
with
156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:converters="clr-namespace:Rubberduck.UI.Converters;assembly=" | ||
xmlns:settings="clr-namespace:Rubberduck.UI.Settings" | ||
xmlns:settingsConverters="clr-namespace:Rubberduck.UI.Settings.Converters"> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="LightBlueTheme.xaml"/> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
<Style x:Key="ToolbarIconStyle" TargetType="Image"> | ||
<Setter Property="Height" Value="16" /> | ||
<Setter Property="Width" Value="16" /> | ||
<Setter Property="Margin" Value="2,0,2,0" /> | ||
<Setter Property="VerticalAlignment" Value="Top" /> | ||
</Style> | ||
|
||
<Style x:Key="PrettifyRow" TargetType="{x:Type DataGridRow}"> | ||
<Style.Resources> | ||
<Style TargetType="{x:Type Border}"> | ||
<Setter Property="CornerRadius" Value="2"/> | ||
</Style> | ||
</Style.Resources> | ||
<Setter Property="BorderThickness" Value="0,.5,0,0" /> | ||
<Setter Property="BorderBrush" Value="{StaticResource ExpanderBorderBrush}" /> | ||
<Setter Property="Height" Value="26" /> | ||
<Setter Property="TextBlock.FontWeight" Value="Normal" /> | ||
<Style.Triggers> | ||
<Trigger Property="IsSelected" Value="True"> | ||
<Setter Property="BorderThickness" Value="1.5" /> | ||
</Trigger> | ||
<MultiTrigger> | ||
<MultiTrigger.Conditions> | ||
<Condition Property="IsSelected" Value="True" /> | ||
<Condition Property="Selector.IsSelectionActive" Value="True" /> | ||
</MultiTrigger.Conditions> | ||
<Setter Property="BorderBrush" Value="{StaticResource HighlightBorderActiveBrush}"/> | ||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" /> | ||
</MultiTrigger> | ||
<MultiTrigger> | ||
<MultiTrigger.Conditions> | ||
<Condition Property="IsSelected" Value="True" /> | ||
<Condition Property="Selector.IsSelectionActive" Value="False" /> | ||
</MultiTrigger.Conditions> | ||
<Setter Property="BorderBrush" Value="{StaticResource HighlightInactiveBorderBrush}"/> | ||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" /> | ||
</MultiTrigger> | ||
</Style.Triggers> | ||
</Style> | ||
|
||
<Style x:Key="FocusVisual"> | ||
<Setter Property="Control.Template"> | ||
<Setter.Value> | ||
<ControlTemplate> | ||
<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<Style x:Key="PrettyListBoxItem" TargetType="{x:Type ListBoxItem}"> | ||
<Style.Resources> | ||
<Style TargetType="{x:Type Border}"> | ||
<Setter Property="CornerRadius" Value="2"/> | ||
</Style> | ||
</Style.Resources> | ||
<Setter Property="SnapsToDevicePixels" Value="True"/> | ||
<Setter Property="Padding" Value="4,1"/> | ||
<Setter Property="HorizontalContentAlignment" Value="Left"/> | ||
<Setter Property="VerticalContentAlignment" Value="Center"/> | ||
<Setter Property="Background" Value="Transparent"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource BlackBrush}"/> | ||
<Setter Property="BorderThickness" Value="0,.5,0,0"/> | ||
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/> | ||
<Setter Property="Height" Value="26" /> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type ListBoxItem}"> | ||
<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true"> | ||
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> | ||
</Border> | ||
<ControlTemplate.Triggers> | ||
<MultiTrigger> | ||
<MultiTrigger.Conditions> | ||
<Condition Property="IsMouseOver" Value="True"/> | ||
</MultiTrigger.Conditions> | ||
<Setter Property="Background" TargetName="Bd" Value="{StaticResource MouseOverBackgroundBrush}"/> | ||
<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource MouseOverBorderBrush}"/> | ||
</MultiTrigger> | ||
<MultiTrigger> | ||
<MultiTrigger.Conditions> | ||
<Condition Property="Selector.IsSelectionActive" Value="False"/> | ||
<Condition Property="IsSelected" Value="True"/> | ||
</MultiTrigger.Conditions> | ||
<Setter Property="BorderThickness" Value="1.5" /> | ||
<Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/> | ||
<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource HighlightInactiveBorderBrush}"/> | ||
</MultiTrigger> | ||
<MultiTrigger> | ||
<MultiTrigger.Conditions> | ||
<Condition Property="Selector.IsSelectionActive" Value="True"/> | ||
<Condition Property="IsSelected" Value="True"/> | ||
</MultiTrigger.Conditions> | ||
<Setter Property="BorderThickness" Value="1.5" /> | ||
<Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedActive.Background}"/> | ||
<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource HighlightBorderActiveBrush}"/> | ||
</MultiTrigger> | ||
<Trigger Property="IsEnabled" Value="False"> | ||
<Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> | ||
</Trigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<Style TargetType="ScrollViewer"> | ||
<Style.Setters> | ||
<Setter Property="settings:ScrollViewerCorrector.FixScrolling" Value="True" /> | ||
</Style.Setters> | ||
</Style> | ||
|
||
<BitmapImage x:Key="InvalidTextImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" /> | ||
<Style x:Key="TextBoxErrorStyle" TargetType="{x:Type TextBox}"> | ||
<Setter Property="Validation.ErrorTemplate"> | ||
<Setter.Value> | ||
<ControlTemplate x:Name="TextBoxErrorTemplate"> | ||
<Grid> | ||
<AdornedElementPlaceholder Grid.Row="0"/> | ||
<Image Source="{StaticResource InvalidTextImage}" | ||
Height="16" | ||
Margin="0,-8,-8,0" | ||
HorizontalAlignment="Right" | ||
VerticalAlignment="Top"/> | ||
</Grid> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
<Style.Triggers> | ||
<Trigger Property="Validation.HasError" | ||
Value="True"> | ||
<Setter Property="ToolTip" | ||
Value="{Binding RelativeSource={x:Static RelativeSource.Self}, | ||
Path=(Validation.Errors)[0].ErrorContent}"> | ||
</Setter> | ||
</Trigger> | ||
</Style.Triggers> | ||
</Style> | ||
|
||
<Style TargetType="{x:Type CheckBox}"> | ||
<Setter Property="VerticalContentAlignment" Value="Center" /> | ||
</Style> | ||
|
||
<BooleanToVisibilityConverter x:Key="BoolToVisibility"/> | ||
<converters:BoolToHiddenVisibilityConverter x:Key="BoolToHiddenVisibility" /> | ||
<settingsConverters:SelectedItemToBooleanConverter x:Key="HasSelectedItems"/> | ||
</ResourceDictionary> |