diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-03-21 16:42:45 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-03-21 16:42:45 +0200 |
| commit | 977d88f94cfb192d09f0253aaf3442f2c17e60f2 (patch) | |
| tree | facb2dfb0fd03e87176b845e76b6177c596576b9 /Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes | |
| parent | e6be03de10afc55c2ceac18dbd690e2ed127c8d8 (diff) | |
| download | Tango-977d88f94cfb192d09f0253aaf3442f2c17e60f2.tar.gz Tango-977d88f94cfb192d09f0253aaf3442f2c17e60f2.zip | |
Added base styles for top tabControl, menu and toolbar
Diffstat (limited to 'Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes')
7 files changed, 725 insertions, 3 deletions
diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/DarkThemesColors.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/DarkThemesColors.xaml new file mode 100644 index 000000000..04d250731 --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/DarkThemesColors.xaml @@ -0,0 +1,39 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:Tango.Scripting.IDE.Themes"> + + <SolidColorBrush x:Key="Menu.Background" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="Menu.Foreground" Color="#FFF1F1F1"/> + <SolidColorBrush x:Key="Menu.MouseOverColor" Color="#FF333334"/> + <SolidColorBrush x:Key="Menu.Disable.Foreground" Color="#FF888888"/> + <SolidColorBrush x:Key="Menu.Submenu.Background" Color="#FF1B1B1C"/> + <SolidColorBrush x:Key="Menu.Submenu.MouseOverColor" Color="#FF3E3E40"/> + <SolidColorBrush x:Key="Grip.Submenu.Background.Static" Color="#FF3F3F46"/> + <SolidColorBrush x:Key="Grip.Submenu.Background.Selected" Color="#FF007ACC"/> + + <SolidColorBrush x:Key="Background.Static" Color="#FF2D2D30"/> + + <SolidColorBrush x:Key="ControlTextBrush" Color="#FFF0F0F0"/> + <SolidColorBrush x:Key="ControlBrushColorKey" Color="#FF007ACC"/> + <SolidColorBrush x:Key="ControlForegroundKey" Color="#FFF1F1F1"/> + + <SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FF007ACC"/> + <SolidColorBrush x:Key="TabItem.Selected.Border" Color="#FF007ACC"/> + <SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="#FF007ACC"/> + <SolidColorBrush x:Key="TabItem.MouseOver.Background" Color="#FF007ACC"/> + <SolidColorBrush x:Key="TabItem.Disabled.Border" Color="#FF444444"/> + <SolidColorBrush x:Key="TabItem.Content.Static" Color="#FF1E1E1E"/> + <SolidColorBrush x:Key="TabItem.Static.Background" Color="Transparent" /> + <SolidColorBrush x:Key="TabItem.Static.Border" Color="Transparent"/> + <SolidColorBrush x:Key="TabItem.Disabled.Background" Color="#FF444444"/> + + <SolidColorBrush x:Key="ToolBarHorizontalBackground" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="ToolBarToggleButtonVerticalBackground" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="ToolBarButtonHover" Color="#42595959"/> + <SolidColorBrush x:Key="ToolBarGripper" Color="#FF3F3F46"/> + <SolidColorBrush x:Key="ToolBarVerticalBackground" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="ToolBarToggleButtonHorizontalBackground" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="ToolBarMenuBorder" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="ToolBarSubMenuBackground" Color="#FF2D2D30"/> + +</ResourceDictionary>
\ No newline at end of file diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Generic.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Generic.xaml index 643fbf889..6c016ae84 100644 --- a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Generic.xaml +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Generic.xaml @@ -4,9 +4,6 @@ xmlns:controls="clr-namespace:Tango.Scripting.IDE.Controls" xmlns:local="clr-namespace:Tango.Scripting.IDE"> - - - <Style TargetType="{x:Type controls:SolutionItemControl}"> <Setter Property="Template"> <Setter.Value> @@ -23,4 +20,17 @@ </Setter.Value> </Setter> </Style> + + <Style TargetType="{x:Type controls:TabConrolClose}"> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type controls:TabConrolClose}"> + <Border Background="{TemplateBinding Background}" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}"> + </Border> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> </ResourceDictionary> diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/LightThemesColors.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/LightThemesColors.xaml new file mode 100644 index 000000000..da65cc9b7 --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/LightThemesColors.xaml @@ -0,0 +1,15 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:Tango.Scripting.IDE.Themes"> + + + <SolidColorBrush x:Key="Menu.Background" Color="#FF2D2D30"/> + <SolidColorBrush x:Key="Menu.Foreground" Color="#FFF1F1F1"/> + <SolidColorBrush x:Key="Menu.MouseOverColor" Color="#FF333334"/> + <SolidColorBrush x:Key="Menu.Disable.Foreground" Color="#FF888888"/> + <SolidColorBrush x:Key="Menu.Submenu.Background" Color="#FF1B1B1C"/> + <SolidColorBrush x:Key="Menu.Submenu.MouseOverColor" Color="#FF3E3E40"/> + <SolidColorBrush x:Key="Grip.Submenu.Background.Static" Color="#FF3F3F46"/> + <SolidColorBrush x:Key="Grip.Submenu.Background.Selected" Color="#FF007ACC"/> + +</ResourceDictionary>
\ No newline at end of file diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/MenuDict.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/MenuDict.xaml new file mode 100644 index 000000000..507e8ae55 --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/MenuDict.xaml @@ -0,0 +1,179 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:Tango.Scripting.IDE.Themes"> + + + <Style x:Key="{x:Type Menu}" TargetType="{x:Type Menu}"> + <Setter Property="OverridesDefaultStyle" Value="True" /> + <Setter Property="Background" Value="{DynamicResource Menu.Background}"/> + <Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.MenuFontFamilyKey}}"/> + <Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.MenuFontSizeKey}}"/> + <Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.MenuFontStyleKey}}"/> + <Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.MenuFontWeightKey}}"/> + <Setter Property="Foreground" Value="{DynamicResource Menu.Foreground}"/> + <Setter Property="VerticalContentAlignment" Value="Center"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type Menu}"> + <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true"> + <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> + </Border> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + <Geometry x:Key="Checkmark">M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z</Geometry> + <!-- TopLevelHeader --> + <ControlTemplate x:Key="{x:Static MenuItem.TopLevelHeaderTemplateKey}" TargetType="{x:Type MenuItem}"> + <Grid x:Name="Border" Background="{DynamicResource Menu.Background}"> + <Rectangle x:Name="Bg" Fill="Transparent" /> + <Rectangle x:Name="Inner_Border" Margin="4" Fill="Transparent"/> + <ContentPresenter Margin="8,3,8,3" ContentSource="Header" RecognizesAccessKey="True" /> + <Popup x:Name="Popup" Placement="Bottom" IsOpen="{TemplateBinding IsSubmenuOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Fade"> + <Border x:Name="SubmenuBorder" BorderBrush="Transparent" BorderThickness="0" Background="{DynamicResource Menu.Background}" Padding="2"> + <Grid RenderOptions.ClearTypeHint="Enabled" Background="Transparent"> + <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Cycle" Grid.IsSharedSizeScope="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle"/> + </Grid> + </Border> + </Popup> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="IsSuspendingPopupAnimation" Value="true"> + <Setter TargetName="Popup" Property="PopupAnimation" Value="None" /> + </Trigger> + <Trigger Property="IsHighlighted" Value="true"> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + </Trigger> + <Trigger SourceName="Popup" Property="AllowsTransparency" Value="True"> + <Setter TargetName="SubmenuBorder" Property="CornerRadius" Value="0,0,4,4" /> + <Setter TargetName="SubmenuBorder" Property="Padding" Value="0,0,0,3" /> + </Trigger> + <Trigger Property="IsEnabled" Value="False"> + <Setter Property="Foreground" Value="{DynamicResource Menu.Disable.Foreground}"/> + </Trigger> + <Trigger Property="IsSubmenuOpen" Value="true"> + <Setter Property="Background" TargetName="Border" Value="{DynamicResource Menu.Submenu.Background}"/> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.Background}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + + <!-- TopLevelItem --> + <ControlTemplate x:Key="{x:Static MenuItem.TopLevelItemTemplateKey}" TargetType="{x:Type MenuItem}" > + <Grid SnapsToDevicePixels="true" Background="{DynamicResource Menu.Submenu.Background}"> + <Rectangle x:Name="Bg" Fill="{DynamicResource Menu.Submenu.Background}" /> + <Rectangle x:Name="InnerBorder" Margin="4" Fill="Transparent"/> + <DockPanel> + <ContentPresenter x:Name="Icon" ContentSource="Icon" Margin="4,0,6,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/> + <Path x:Name="GlyphPanel" Data="{StaticResource Checkmark}" Fill="{TemplateBinding Foreground}" FlowDirection="LeftToRight" Margin="7,0,0,0" Visibility="Collapsed" VerticalAlignment="Center"/> + <ContentPresenter ContentSource="Header" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> + </DockPanel> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="IsHighlighted" Value="true"> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + </Trigger> + <Trigger Property="IsEnabled" Value="False"> + <Setter Property="Foreground" Value="{DynamicResource Menu.Disable.Foreground}"/> + </Trigger> + <Trigger Property="IsKeyboardFocused" Value="true"> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + <ControlTemplate x:Key="{x:Static MenuItem.SubmenuHeaderTemplateKey}" TargetType="MenuItem"> + <Grid SnapsToDevicePixels="true" Background="{DynamicResource Menu.Submenu.Background}" x:Name="_grid" MinHeight="22"> + <Rectangle x:Name="Bg" Fill="Transparent" /> + <Rectangle x:Name="Inner_Border" Margin="4" Fill="Transparent"/> + <Grid> + <Grid.ColumnDefinitions> + <ColumnDefinition SharedSizeGroup="Icon" Width="Auto" MinWidth="20"/> + <ColumnDefinition Width="*" /> + <ColumnDefinition SharedSizeGroup="MenuItemIGTColumnGroup" Width="Auto"/> + <ColumnDefinition Width="13" /> + </Grid.ColumnDefinitions> + <ContentPresenter x:Name="Iconh" ContentSource="Icon" Margin="3" VerticalAlignment="Center" Grid.Column="0"/> + <ContentPresenter x:Name="HeaderHost" Margin="3,0,3,0" Grid.Column="1" VerticalAlignment="Center" ContentSource="Header" RecognizesAccessKey="True" TextOptions.TextFormattingMode="Display" /> + <TextBlock Grid.Column="2" Margin="10,0,0,0" Text="{TemplateBinding InputGestureText}" VerticalAlignment="Center"/> + <Path x:Name="RightArrow" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0 0 L 0 7 L 4 3.5 Z" Fill="{DynamicResource Grip.Submenu.Background.Static}" Margin="8,0,0,0"/> + <Popup x:Name="popup" PlacementTarget="{Binding ElementName=_grid}" Placement="Right" HorizontalOffset="0" AllowsTransparency="True" Focusable="False" PopupAnimation="Fade"> + <Border x:Name="SubmenuBorder" SnapsToDevicePixels="True" Background="{DynamicResource Menu.Submenu.Background}" BorderThickness="0" BorderBrush="#49a3e1"> + <ItemsPresenter x:Name="_items" /> + </Border> + </Popup> + </Grid> + </Grid> + <!--</Border>--> + <ControlTemplate.Triggers> + <Trigger Property="IsHighlighted" Value="True" > + <Setter Property="Visibility" Value="Visible" TargetName="_items" /> + <Setter Property="IsOpen" Value="True" TargetName="popup" /> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + <Setter Property="Fill" TargetName="Inner_Border" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + <Setter TargetName="RightArrow" Property="Fill" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + <Trigger Property="IsEnabled" Value="False"> + <Setter Property="Foreground" Value="{DynamicResource Menu.Disable.Foreground}"/> + </Trigger> + <Trigger Property="IsSubmenuOpen" Value="true"> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + <Setter Property="Fill" TargetName="Inner_Border" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + <ControlTemplate x:Key="{x:Static MenuItem.SubmenuItemTemplateKey}" TargetType="MenuItem"> + <Grid SnapsToDevicePixels="true" Background="{DynamicResource Menu.Submenu.Background}" MinHeight="22"> + <Rectangle x:Name="Bg" Fill="Transparent" /> + <Rectangle x:Name="InnerBorder" Margin="4"/> + <Grid> + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto" MinWidth="24" SharedSizeGroup="IconGroup"/> + <ColumnDefinition Width="Auto" MinWidth="30" /> + <ColumnDefinition SharedSizeGroup="MenuItemIGTColumnGroup" Width="Auto"/> + <ColumnDefinition Width="20" /> + </Grid.ColumnDefinitions> + <ContentPresenter x:Name="Icon" ContentSource="Icon" Margin="{TemplateBinding Padding}" /> + <ContentPresenter Grid.Column="1" VerticalAlignment="Center" ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> + <TextBlock Grid.Column="2" Margin="10,0,0,0" Text="{TemplateBinding InputGestureText}" VerticalAlignment="Center"/> + </Grid> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="IsHighlighted" Value="True"> + <Setter Property="Fill" TargetName="Bg" Value="{DynamicResource Menu.Submenu.MouseOverColor}"/> + </Trigger> + <Trigger Property="Icon" Value="{x:Null}"> + <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" /> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + <Style x:Key="{x:Type MenuItem}" TargetType="{x:Type MenuItem}"> + <Setter Property="OverridesDefaultStyle" Value="True" /> + <Style.Triggers> + <Trigger Property="Role" Value="TopLevelHeader"> + <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelHeaderTemplateKey}}" /> + <Setter Property="Grid.IsSharedSizeScope" Value="true" /> + </Trigger> + <Trigger Property="Role" Value="TopLevelItem"> + <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.TopLevelItemTemplateKey}}" /> + </Trigger> + <Trigger Property="Role" Value="SubmenuHeader"> + <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.SubmenuHeaderTemplateKey}}" /> + </Trigger> + <Trigger Property="Role" Value="SubmenuItem"> + <Setter Property="Template" Value="{StaticResource {x:Static MenuItem.SubmenuItemTemplateKey}}" /> + </Trigger> + </Style.Triggers> + </Style> + + <Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="{x:Type Separator}"> + <Setter Property="Height" Value="1" /> + <Setter Property="Margin" Value="20,0,2,0" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type Separator}"> + <Border BorderThickness="1" BorderBrush="{DynamicResource Submenu.MouseOverColor}" /> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> +</ResourceDictionary>
\ No newline at end of file diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Shared.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Shared.xaml new file mode 100644 index 000000000..366faf4c0 --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/Shared.xaml @@ -0,0 +1,7 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:Tango.Scripting.IDE.Themes"> + <ResourceDictionary.MergedDictionaries> + <ResourceDictionary Source="MenuDict.xaml"/> + </ResourceDictionary.MergedDictionaries> +</ResourceDictionary>
\ No newline at end of file diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/TabConrolStyle.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/TabConrolStyle.xaml new file mode 100644 index 000000000..f85ec1e2f --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/TabConrolStyle.xaml @@ -0,0 +1,280 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:Tango.Scripting.IDE.Themes"> + <Style TargetType="{x:Type TabControl}"> + <Setter Property="Padding" Value="2"/> + <Setter Property="HorizontalContentAlignment" Value="Center"/> + <Setter Property="VerticalContentAlignment" Value="Center"/> + <Setter Property="Background" Value="{DynamicResource TabItem.Selected.Background}"/> + <Setter Property="BorderBrush" Value="{StaticResource TabItem.Selected.Border}"/> + <Setter Property="BorderThickness" Value="1"/> + <Setter Property="Foreground" Value="{DynamicResource ControlTextBrush}"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type TabControl}"> + <Grid x:Name="templateRoot" ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local"> + <Grid.ColumnDefinitions> + <ColumnDefinition x:Name="ColumnDefinition0"/> + <ColumnDefinition x:Name="ColumnDefinition1" Width="0"/> + </Grid.ColumnDefinitions> + <Grid.RowDefinitions> + <RowDefinition x:Name="RowDefinition0" Height="Auto"/> + <RowDefinition x:Name="RowDefinition1" Height="*"/> + </Grid.RowDefinitions> + <TabPanel x:Name="headerPanel" Background="Transparent" Grid.Column="0" IsItemsHost="true" Margin="2,1,2,0" Grid.Row="0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1"/> + <Border x:Name="contentPanel" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,1,0,0" Background="{DynamicResource TabItem.Content.Static}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local"> + <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> + </Border> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="TabStripPlacement" Value="Bottom"> + <Setter Property="Grid.Row" TargetName="headerPanel" Value="1"/> + <Setter Property="Grid.Row" TargetName="contentPanel" Value="0"/> + <Setter Property="Height" TargetName="RowDefinition0" Value="*"/> + <Setter Property="Height" TargetName="RowDefinition1" Value="Auto"/> + <Setter Property="Margin" TargetName="headerPanel" Value="2,0,2,2"/> + </Trigger> + <Trigger Property="TabStripPlacement" Value="Left"> + <Setter Property="Grid.Row" TargetName="headerPanel" Value="0"/> + <Setter Property="Grid.Row" TargetName="contentPanel" Value="0"/> + <Setter Property="Grid.Column" TargetName="headerPanel" Value="0"/> + <Setter Property="Grid.Column" TargetName="contentPanel" Value="1"/> + <Setter Property="Width" TargetName="ColumnDefinition0" Value="Auto"/> + <Setter Property="Width" TargetName="ColumnDefinition1" Value="*"/> + <Setter Property="Height" TargetName="RowDefinition0" Value="*"/> + <Setter Property="Height" TargetName="RowDefinition1" Value="0"/> + <Setter Property="Margin" TargetName="headerPanel" Value="2,2,0,2"/> + </Trigger> + <Trigger Property="TabStripPlacement" Value="Right"> + <Setter Property="Grid.Row" TargetName="headerPanel" Value="0"/> + <Setter Property="Grid.Row" TargetName="contentPanel" Value="0"/> + <Setter Property="Grid.Column" TargetName="headerPanel" Value="1"/> + <Setter Property="Grid.Column" TargetName="contentPanel" Value="0"/> + <Setter Property="Width" TargetName="ColumnDefinition0" Value="*"/> + <Setter Property="Width" TargetName="ColumnDefinition1" Value="Auto"/> + <Setter Property="Height" TargetName="RowDefinition0" Value="*"/> + <Setter Property="Height" TargetName="RowDefinition1" Value="0"/> + <Setter Property="Margin" TargetName="headerPanel" Value="0,2,2,2"/> + </Trigger> + <Trigger Property="IsEnabled" Value="false"> + <Setter Property="TextElement.Foreground" TargetName="templateRoot" Value="{DynamicResource ControlTextBrush}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </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 TargetType="{x:Type TabItem}"> + <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/> + <Setter Property="Foreground" Value="{DynamicResource ControlTextBrush}"/> + <Setter Property="Background" Value="{StaticResource TabItem.Static.Background}"/> + <Setter Property="BorderBrush" Value="{StaticResource TabItem.Static.Border}"/> + <Setter Property="Margin" Value="0"/> + <Setter Property="Padding" Value="6,2,6,2"/> + <Setter Property="HorizontalContentAlignment" Value="Stretch"/> + <Setter Property="VerticalContentAlignment" Value="Stretch"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type TabItem}"> + <Grid x:Name="templateRoot" SnapsToDevicePixels="true"> + <Border x:Name="mainBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,0" Background="{TemplateBinding Background}" Margin="0,-1,0,0"> + <Border x:Name="innerBorder" BorderBrush="{StaticResource TabItem.Selected.Border}" BorderThickness="1,1,1,0" Background="{StaticResource TabItem.Selected.Background}" Margin="0" Opacity="0"/> + </Border> + <StackPanel Orientation="Horizontal" Margin="0" > + <ContentPresenter x:Name="contentPresenter" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/> + <Button x:Name="CloseButton" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="18" Height="18" + Margin="6,0,0,0" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Center" + Command="{Binding DataContext.CloseProjectItemCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" + CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=UserControl}}" + VerticalAlignment="Center" Focusable="False" Visibility="Hidden"> + <Grid Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > + <Line StrokeThickness="2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Stroke="{DynamicResource ControlTextBrush}" X1="1" Y1="1" X2="9" Y2="9" HorizontalAlignment="Center" VerticalAlignment="Center" /> + <Line StrokeThickness="2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" Stroke="{DynamicResource ControlTextBrush}" X1="1" Y1="9" X2="9" Y2="1" HorizontalAlignment="Center" VerticalAlignment="Center" /> + </Grid> + </Button> + </StackPanel> + </Grid> + <ControlTemplate.Triggers> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/> + </MultiDataTrigger.Conditions> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/> + </MultiDataTrigger.Conditions> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/> + </MultiDataTrigger.Conditions> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/> + </MultiDataTrigger.Conditions> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.MouseOver.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/> + </MultiDataTrigger.Conditions> + <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/> + </MultiDataTrigger.Conditions> + <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/> + </MultiDataTrigger.Conditions> + <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/> + </MultiDataTrigger.Conditions> + <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/> + <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/> + <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/> + </MultiDataTrigger.Conditions> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/> + </MultiDataTrigger.Conditions> + <Setter Property="Panel.ZIndex" Value="1"/> + <Setter Property="Margin" Value="-2,-2,0,-2"/> + <Setter Property="Opacity" TargetName="innerBorder" Value="1"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/> + </MultiDataTrigger.Conditions> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/> + </MultiDataTrigger.Conditions> + <Setter Property="Panel.ZIndex" Value="1"/> + <Setter Property="Margin" Value="-2,0,-2,-2"/> + <Setter Property="Opacity" TargetName="innerBorder" Value="1"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/> + </MultiDataTrigger.Conditions> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/> + </MultiDataTrigger.Conditions> + <Setter Property="Panel.ZIndex" Value="1"/> + <Setter Property="Margin" Value="0,-2,-2,-2"/> + <Setter Property="Opacity" TargetName="innerBorder" Value="1"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/> + </MultiDataTrigger.Conditions> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/> + </MultiDataTrigger> + <MultiDataTrigger> + <MultiDataTrigger.Conditions> + <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/> + <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/> + </MultiDataTrigger.Conditions> + <Setter Property="Panel.ZIndex" Value="1"/> + <Setter Property="Margin" Value="-2,-2,-2,0"/> + <Setter Property="Opacity" TargetName="innerBorder" Value="1"/> + <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/> + <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/> + <Setter Property="Visibility" TargetName="CloseButton" Value="Visible"/> + </MultiDataTrigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> +</ResourceDictionary>
\ No newline at end of file diff --git a/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ToolbarStyle.xaml b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ToolbarStyle.xaml new file mode 100644 index 000000000..1981b2718 --- /dev/null +++ b/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.IDE/Themes/ToolbarStyle.xaml @@ -0,0 +1,192 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + x:Class="ToolbarSttyle.MainWindow"> + <Style x:Key="ToolBarVerticalOverflowButtonStyle" TargetType="{x:Type ToggleButton}"> + <Setter Property="Background" Value="{DynamicResource ToolBarToggleButtonVerticalBackground}"/> + <Setter Property="MinHeight" Value="0"/> + <Setter Property="MinWidth" Value="0"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type ToggleButton}"> + <Border x:Name="Bd" SnapsToDevicePixels="true" CornerRadius="0,0,3,3" Background="{TemplateBinding Background}"> + <Canvas Width="7" VerticalAlignment="Bottom" SnapsToDevicePixels="true" Margin="2,7,2,2" Height="6" HorizontalAlignment="Right"> + <!--<Path x:Name="Path1" Data="M 1.5 1 L 1.5 6" Stroke="{DynamicResource ToolBarGripper}"/>--> + <Path x:Name="Path2" Data="M 0.5 0 L 0.5 5" Stroke="{DynamicResource ControlForegroundKey}"/> + <!--<Path x:Name="Path3" Data="M 3.5 0.5 L 7 3.5 L 4 6.5 Z" Fill="{DynamicResource ToolBarGripper}"/>--> + <Path x:Name="Path4" Data="M 3 -0.5 L 6 2.5 L 3 5.5 Z" Fill="{DynamicResource ControlForegroundKey}"/> + </Canvas> + </Border> + <ControlTemplate.Triggers> + <Trigger Property="IsMouseOver" Value="true"> + <Setter Property="Background" TargetName="Bd" Value="{DynamicResource ToolBarButtonHover}"/> + <Setter Property="Stroke" TargetName="Path2" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + <Setter Property="Fill" TargetName="Path4" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + <Trigger Property="IsKeyboardFocused" Value="true"> + <Setter Property="Background" TargetName="Bd" Value="{DynamicResource ToolBarButtonHover}"/> + <Setter Property="Stroke" TargetName="Path2" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + <Setter Property="Fill" TargetName="Path4" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + <Trigger Property="IsEnabled" Value="false"> + <Setter Property="Foreground" Value="{DynamicResource ToolBarGripper}"/> + </Trigger> + <Trigger Property="IsPressed" Value="True"> + <Setter Property="Stroke" TargetName="Path2" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + <Setter Property="Fill" TargetName="Path4" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true"> + <Setter Property="Background" Value="{DynamicResource ControlBrushColorKey}"/> + </DataTrigger> + </Style.Triggers> + </Style> + <Style x:Key="ToolBarHorizontalOverflowButtonStyle" TargetType="{x:Type ToggleButton}"> + <Setter Property="Background" Value="{DynamicResource ToolBarToggleButtonHorizontalBackground}"/> + <Setter Property="MinHeight" Value="0"/> + <Setter Property="MinWidth" Value="0"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type ToggleButton}"> + <Border x:Name="Bd" SnapsToDevicePixels="true" CornerRadius="0,3,3,0" Background="{TemplateBinding Background}"> + <Canvas Width="6" VerticalAlignment="Bottom" SnapsToDevicePixels="true" Margin="7,2,2,2" Height="7" HorizontalAlignment="Right"> + <!--<Path x:Name="Path1" Data="M 1 1.5 L 6 1.5" Stroke="{DynamicResource ControlForegroundKey}"/>--> + <Path x:Name="Path2" Data="M 0 0.5 L 5 0.5" Stroke="{DynamicResource ControlForegroundKey}"/> + <!--<Path x:Name="Path3" Data="M 0.5 4 L 6.5 4 L 3.5 7 Z" Fill="{DynamicResource ControlForegroundKey}"/>--> + <Path x:Name="Path4" Data="M -0.5 3 L 5.5 3 L 2.5 6 Z" Fill="{DynamicResource ControlForegroundKey}"/> + </Canvas> + </Border> + <ControlTemplate.Triggers> + <Trigger Property="IsMouseOver" Value="true"> + <Setter Property="Background" TargetName="Bd" Value="{DynamicResource ToolBarButtonHover}"/> + <Setter Property="Stroke" TargetName="Path2" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + <Setter Property="Fill" TargetName="Path4" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + <Trigger Property="IsKeyboardFocused" Value="true"> + <Setter Property="Background" TargetName="Bd" Value="{DynamicResource ToolBarButtonHover}"/> + <Setter Property="Stroke" TargetName="Path2" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + <Setter Property="Fill" TargetName="Path4" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + <Trigger Property="IsEnabled" Value="false"> + <Setter Property="Foreground" Value="{DynamicResource ToolBarGripper}"/> + </Trigger> + <Trigger Property="IsPressed" Value="True"> + <Setter Property="Stroke" TargetName="Path2" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + <Setter Property="Fill" TargetName="Path4" Value="{DynamicResource Grip.Submenu.Background.Selected}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true"> + <Setter Property="Background" Value="{DynamicResource ControlBrushColorKey}"/> + </DataTrigger> + </Style.Triggers> + </Style> + <Style x:Key="ToolBarThumbStyle" TargetType="{x:Type Thumb}"> + <Setter Property="OverridesDefaultStyle" Value="true" /> + <Setter Property="Cursor" Value="SizeAll" /> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type Thumb}"> + <Border Background="Transparent" SnapsToDevicePixels="True"> + <Rectangle Margin="0,2" > + <Rectangle.Fill> + <DrawingBrush Viewport="0,0,4,4" ViewportUnits="Absolute" Viewbox="0,0,8,8" ViewboxUnits="Absolute" TileMode="Tile"> + <DrawingBrush.Drawing> + <DrawingGroup> + <GeometryDrawing Brush="#FF46464A" + Geometry="M 4 4 L 4 8 L 8 8 L 8 4 z" /> + </DrawingGroup> + </DrawingBrush.Drawing> + </DrawingBrush> + </Rectangle.Fill> + </Rectangle> + </Border> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + <Style x:Key="ToolBarMainPanelBorderStyle" TargetType="{x:Type Border}"> + <Setter Property="Margin" Value="0,0,11,0"/> + <Setter Property="CornerRadius" Value="3,3,3,3"/> + <Style.Triggers> + <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true"> + <Setter Property="CornerRadius" Value="0,0,0,0"/> + </DataTrigger> + </Style.Triggers> + </Style> + <Style TargetType="{x:Type ToolBar}"> + <Setter Property="Background" Value="{DynamicResource ToolBarHorizontalBackground}"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type ToolBar}"> + <Grid x:Name="Grid" Margin="3,1,1,1" SnapsToDevicePixels="true"> + <Grid x:Name="OverflowGrid" HorizontalAlignment="Right"> + <ToggleButton x:Name="OverflowButton" ClickMode="Press" FocusVisualStyle="{x:Null}" IsChecked="{Binding IsOverflowOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" IsEnabled="{TemplateBinding HasOverflowItems}" Style="{DynamicResource ToolBarHorizontalOverflowButtonStyle}"/> + <Popup x:Name="OverflowPopup" AllowsTransparency="true" Focusable="false" IsOpen="{Binding IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom" StaysOpen="false"> + <!--<AThemes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">--> + <Border x:Name="ToolBarSubMenuBorder" BorderBrush="{DynamicResource ToolBarMenuBorder}" BorderThickness="1" Background="{DynamicResource ToolBarSubMenuBackground}" RenderOptions.ClearTypeHint="Enabled"> + <ToolBarOverflowPanel x:Name="PART_ToolBarOverflowPanel" KeyboardNavigation.DirectionalNavigation="Cycle" FocusVisualStyle="{x:Null}" Focusable="true" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle" WrapWidth="200"/> + </Border> + <!--</AThemes:SystemDropShadowChrome>--> + </Popup> + </Grid> + <Border x:Name="MainPanelBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Style="{DynamicResource ToolBarMainPanelBorderStyle}"> + <DockPanel KeyboardNavigation.TabIndex="1" KeyboardNavigation.TabNavigation="Local"> + <Thumb x:Name="ToolBarThumb" Margin="-3,-1,0,0" Padding="6,5,1,6" Style="{StaticResource ToolBarThumbStyle}" Width="10"/> + <ContentPresenter x:Name="ToolBarHeader" ContentSource="Header" HorizontalAlignment="Center" Margin="4,0,4,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/> + <ToolBarPanel x:Name="PART_ToolBarPanel" IsItemsHost="true" Margin="0,1,2,2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> + </DockPanel> + </Border> + </Grid> + <ControlTemplate.Triggers> + <Trigger Property="IsOverflowOpen" Value="true"> + <Setter Property="IsEnabled" TargetName="ToolBarThumb" Value="false"/> + </Trigger> + <Trigger Property="Header" Value="{x:Null}"> + <Setter Property="Visibility" TargetName="ToolBarHeader" Value="Collapsed"/> + </Trigger> + <Trigger Property="ToolBarTray.IsLocked" Value="true"> + <Setter Property="Visibility" TargetName="ToolBarThumb" Value="Collapsed"/> + </Trigger> + <Trigger Property="HasDropShadow" SourceName="OverflowPopup" Value="true"> + <!--<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/> + <Setter Property="SnapsToDevicePixels" TargetName="Shdw" Value="true"/> + <Setter Property="Color" TargetName="Shdw" Value="#71000000"/>--> + </Trigger> + <Trigger Property="Orientation" Value="Vertical"> + <Setter Property="Margin" TargetName="Grid" Value="1,3,1,1"/> + <Setter Property="Style" TargetName="OverflowButton" Value="{StaticResource ToolBarVerticalOverflowButtonStyle}"/> + <Setter Property="Height" TargetName="ToolBarThumb" Value="10"/> + <Setter Property="Width" TargetName="ToolBarThumb" Value="Auto"/> + <Setter Property="Margin" TargetName="ToolBarThumb" Value="-1,-3,0,0"/> + <Setter Property="Padding" TargetName="ToolBarThumb" Value="5,6,6,1"/> + <Setter Property="Margin" TargetName="ToolBarHeader" Value="0,0,0,4"/> + <Setter Property="Margin" TargetName="PART_ToolBarPanel" Value="1,0,2,2"/> + <Setter Property="DockPanel.Dock" TargetName="ToolBarThumb" Value="Top"/> + <Setter Property="DockPanel.Dock" TargetName="ToolBarHeader" Value="Top"/> + <Setter Property="HorizontalAlignment" TargetName="OverflowGrid" Value="Stretch"/> + <Setter Property="VerticalAlignment" TargetName="OverflowGrid" Value="Bottom"/> + <Setter Property="Placement" TargetName="OverflowPopup" Value="Right"/> + <Setter Property="Margin" TargetName="MainPanelBorder" Value="0,0,0,11"/> + <Setter Property="Background" Value="{DynamicResource ToolBarVerticalBackground}"/> + </Trigger> + <Trigger Property="IsEnabled" Value="false"> + <Setter Property="Foreground" Value="{DynamicResource Menu.Disable.Foreground}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true"> + <Setter Property="Background" Value="{DynamicResource ControlBrushColorKey}"/> + </DataTrigger> + </Style.Triggers> + </Style> +</ResourceDictionary>
\ No newline at end of file |
