Files
gtav-src/tools_ng/wildwest/script/3dsMax/UI/Resources/Base.xaml
T
2025-09-29 00:52:08 +02:00

354 lines
20 KiB
XML
Executable File

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--FONT INFO-->
<FontFamily x:Key="DefaultFontFamily">Segoe UI</FontFamily>
<sys:Double x:Key="DefaultFontSize">11.5</sys:Double>
<SolidColorBrush x:Key="DefaultForegroundFontBrush">#F0F0F0</SolidColorBrush>
<SolidColorBrush x:Key="DarkForegroundFontBrush">#202020</SolidColorBrush>
<!--BRUSHES-->
<SolidColorBrush x:Key="RockstarGlobal">#F6BA00</SolidColorBrush>
<SolidColorBrush x:Key="RockstarLondon">#F793FF</SolidColorBrush>
<SolidColorBrush x:Key="BackgroundBrush">#484848</SolidColorBrush>
<SolidColorBrush x:Key="BackgroundLightBrush">#999999</SolidColorBrush>
<SolidColorBrush x:Key="BackgroundDarkBrush">#303030</SolidColorBrush>
<SolidColorBrush x:Key="HighlightedBrush">#1E6EDC</SolidColorBrush>
<SolidColorBrush x:Key="HighlightedDark">#001C3B</SolidColorBrush>
<SolidColorBrush x:Key="Black_10" Opacity="0.1" Color="Black"/>
<SolidColorBrush x:Key="Black_20" Opacity="0.2" Color="Black"/>
<SolidColorBrush x:Key="Black_30" Opacity="0.3" Color="Black"/>
<SolidColorBrush x:Key="Black_40" Opacity="0.4" Color="Black"/>
<SolidColorBrush x:Key="Black_50" Opacity="0.5" Color="Black"/>
<SolidColorBrush x:Key="Black_60" Opacity="0.6" Color="Black"/>
<SolidColorBrush x:Key="Black_70" Opacity="0.7" Color="Black"/>
<SolidColorBrush x:Key="Black_80" Opacity="0.8" Color="Black"/>
<SolidColorBrush x:Key="Black_90" Opacity="0.9" Color="Black"/>
<SolidColorBrush x:Key="White_10" Opacity="0.1" Color="White"/>
<SolidColorBrush x:Key="White_20" Opacity="0.2" Color="White"/>
<SolidColorBrush x:Key="White_30" Opacity="0.3" Color="White"/>
<SolidColorBrush x:Key="White_40" Opacity="0.4" Color="White"/>
<SolidColorBrush x:Key="White_50" Opacity="0.5" Color="White"/>
<SolidColorBrush x:Key="White_60" Opacity="0.6" Color="White"/>
<SolidColorBrush x:Key="White_70" Opacity="0.7" Color="White"/>
<SolidColorBrush x:Key="White_80" Opacity="0.8" Color="White"/>
<SolidColorBrush x:Key="White_90" Opacity="0.9" Color="White"/>
<LinearGradientBrush x:Key="Shadow" StartPoint="0.5,1" EndPoint="0.5,0.8">
<GradientStop Color="#80000000" Offset="0.0" />
<GradientStop Color="#50000000" Offset="1.0" />
</LinearGradientBrush>
<VisualBrush
x:Key="HatchBrush"
TileMode="Tile" Viewport="0,0,10,10"
ViewportUnits="Absolute" Viewbox="0,0,10,10"
ViewboxUnits="Absolute">
<VisualBrush.Visual>
<Canvas>
<Rectangle Fill="{StaticResource White_20}" Width="10" Height="10" />
<Path Stroke="{StaticResource Black_40}" Data="M 0 10 l 10 -10" />
</Canvas>
</VisualBrush.Visual>
</VisualBrush>
<!--CONTROL TEMPLATES-->
<ControlTemplate TargetType="{x:Type TabItem}" x:Key="TabItemControlTemplate">
<Grid Name="BaseGrid" Margin="-2,0,0,0" Background="{StaticResource BackgroundLightBrush}">
<Border Name="Edging" BorderBrush="{StaticResource White_30}" BorderThickness="1,1,1,0"></Border>
<Border Name="Unselected" ></Border>
<TextBlock Name="Content" Padding="8,2,8,2" Foreground="{StaticResource DefaultForegroundFontBrush}" FontSize="{StaticResource DefaultFontSize}" Text="{Binding Path=Header, RelativeSource={RelativeSource TemplatedParent}}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="False">
<Setter TargetName="Unselected" Property="Background" Value="{StaticResource Shadow}" />
<Setter TargetName="BaseGrid" Property="Cursor" Value="Hand" />
<Setter TargetName="Edging" Property="BorderBrush" Value="{StaticResource Black_70}" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Panel.ZIndex" Value="100" />
<Setter TargetName="BaseGrid" Property="Cursor" Value="Arrow" />
<Setter TargetName="Content" Property="FontWeight" Value="SemiBold" />
<Setter TargetName="Content" Property="Foreground" Value="{StaticResource DarkForegroundFontBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Content" Property="Foreground" Value="Black" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type ToggleButton}" x:Key="ToggleButtonControlTemplate">
<Grid>
<Border BorderBrush="{StaticResource Black_20}" BorderThickness="1">
<Border BorderBrush="{StaticResource White_30}" BorderThickness="1" Background="{StaticResource White_20}"></Border>
</Border>
<Border Name="Highlighted" BorderBrush="{StaticResource HighlightedDark}" Background="{StaticResource HighlightedBrush}" BorderThickness="1" Opacity="0"></Border>
<ContentPresenter Name="Content" Margin="{Binding Path=Padding, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="center" VerticalAlignment="center" />
<Border Name="Disabled"></Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" TargetName="Highlighted" Value="0.4" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Opacity" TargetName="Highlighted" Value="0.7" />
<Setter Property="BorderThickness" TargetName="Highlighted" Value="2" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" TargetName="Disabled" Value="{StaticResource Black_30}" />
<Setter Property="Cursor" Value="No"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type Button}" x:Key="BasicButtonControlTemplate">
<Grid Cursor="Hand">
<ContentPresenter/>
</Grid>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type Button}" x:Key="ButtonControlTemplate">
<Grid>
<Border BorderBrush="{StaticResource Black_20}" BorderThickness="1">
<Border BorderBrush="{StaticResource White_30}" BorderThickness="1" Background="{StaticResource White_20}"></Border>
</Border>
<Border Name="Highlighted" BorderBrush="{StaticResource HighlightedDark}" Background="{StaticResource HighlightedBrush}" BorderThickness="1" Opacity="0"></Border>
<ContentPresenter Margin="{Binding Path=Padding, RelativeSource={RelativeSource TemplatedParent}}" Name="Content" HorizontalAlignment="center" VerticalAlignment="center" />
<Border Name="Disabled"></Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" TargetName="Highlighted" Value="0.4" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" TargetName="Highlighted" Value="0.7" />
<Setter Property="BorderThickness" TargetName="Highlighted" Value="2" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" TargetName="Disabled" Value="{StaticResource Black_30}" />
<Setter Property="Cursor" Value="No"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type ToolTip}" x:Key="ToolTipControlTemplate">
<Border BorderThickness="1.2" Background="{StaticResource White_90}" BorderBrush="Black" Padding="6,4,6,4">
<TextBlock Foreground="Black" FontStyle="Italic" Text="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" MaxWidth="190" TextWrapping="Wrap" />
</Border>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type Expander}" x:Key="ExpanderControlTemplate">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Name="ContentRow" Height="1"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="{StaticResource White_40}" Background="{StaticResource White_20}" BorderThickness="0,1,0,1">
<StackPanel Orientation="Horizontal">
<ToggleButton Margin="0" Width="15" HorizontalAlignment="Left" IsChecked="{Binding Path=IsExpanded,Mode=TwoWay,
RelativeSource={RelativeSource TemplatedParent}}"/>
<Label Padding="3,3,3,3">
<ContentPresenter ContentSource="Header"/>
</Label>
</StackPanel>
</Border>
<Border BorderBrush="{StaticResource Black_20}" BorderThickness="0,1,0,0" Grid.Row="1" Padding="{TemplateBinding Padding}">
<ContentPresenter/>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsExpanded" Value="True">
<Setter TargetName="ContentRow" Property="Height"
Value="{Binding ElementName=Content,Path=DesiredHeight}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type Expander}" x:Key="VerticalExpanderControlTemplate">
<StackPanel Orientation="Horizontal">
<!--Header-->
<Border Background="{StaticResource White_80}" >
<Grid Width="20">
<ToggleButton IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Cursor="Hand">
<ToggleButton.Template>
<ControlTemplate>
<Border Background="Transparent"></Border>
</ControlTemplate>
</ToggleButton.Template>
</ToggleButton>
<ContentPresenter IsHitTestVisible="False" VerticalAlignment="Center" ContentSource="Header">
<ContentPresenter.LayoutTransform>
<RotateTransform Angle="-90" />
</ContentPresenter.LayoutTransform>
</ContentPresenter>
</Grid>
</Border>
<!--Content-->
<Grid x:Name="Content" Visibility="Collapsed">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{StaticResource White_80}" Height="1.5"></Border>
<Border Grid.Row="1" BorderBrush="{StaticResource Black_20}" BorderThickness="1">
<ContentPresenter/>
</Border>
<Border Grid.Row="2" Background="{StaticResource White_80}" Height="1.5"></Border>
<Border Grid.RowSpan="3" Grid.Column="1" Background="{StaticResource White_80}" Width="10"></Border>
</Grid>
<!--Footer-->
<Border Background="{StaticResource Black_20}" Width="6" BorderBrush="{StaticResource White_20}" BorderThickness="1,0,1,0"/>
</StackPanel>
<ControlTemplate.Triggers>
<Trigger Property="IsExpanded" Value="True">
<Setter TargetName="Content" Property="Visibility" Value="Visible" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type TextBox}" x:Key="TextBoxControlTemplate">
<Grid>
<Border BorderBrush="{StaticResource White_30}" BorderThickness="1">
<Border BorderBrush="{StaticResource Black_20}" BorderThickness="1" Background="{TemplateBinding Background}">
<ScrollViewer x:Name="PART_ContentHost" />
</Border>
</Border>
<Border x:Name="HighlightedBorder" BorderThickness="2" BorderBrush="{StaticResource HighlightedBrush}" Visibility="Hidden"></Border>
<Border x:Name="DisabledBorder" Background="{StaticResource Black_30}" Visibility="Hidden"></Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Visibility" TargetName="HighlightedBorder" Value="Visible" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Visibility" TargetName="DisabledBorder" Value="Visible" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type GroupBox}" x:Key="GroupBoxControlTemplate">
<StackPanel Background="{TemplateBinding Background}">
<Border Background="{StaticResource White_20}" BorderThickness="0,1,0,1" BorderBrush="{StaticResource White_40}" >
<Label Padding="6,3,3,3">
<ContentPresenter ContentSource="Header"/>
</Label>
</Border>
<Border Padding="{TemplateBinding Padding}">
<ContentPresenter/>
</Border>
</StackPanel>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type GroupBox}" x:Key="GroupBoxDarkListControlTemplate">
<StackPanel Background="{TemplateBinding Background}">
<Border Background="{StaticResource Black_20}" BorderBrush="{StaticResource White_20}" BorderThickness="1">
<Label Padding="6,3,3,3">
<ContentPresenter ContentSource="Header"/>
</Label>
</Border>
<Border Padding="{TemplateBinding Padding}" Background="{StaticResource White_10}" >
<ContentPresenter/>
</Border>
</StackPanel>
</ControlTemplate>
<ControlTemplate TargetType="{x:Type ListBox}" x:Key="ControlTemplate">
<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="0">
<ScrollViewer Focusable="False" Padding="{TemplateBinding Padding}">
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0"/>
</ScrollViewer>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsGrouping" Value="True">
<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!--STYLES-->
<Style TargetType="Window" x:Key="WindowBase">
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}" />
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
<Setter Property="WindowStyle" Value="ToolWindow"/>
<Setter Property="Background" Value="{StaticResource BackgroundDarkBrush}" />
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
<Style TargetType="ListBox">
<Setter Property="Template" Value="{StaticResource ControlTemplate}"/>
<Setter Property="Padding" Value="0"></Setter>
<Setter Property="Margin" Value="0"></Setter>
<Setter Property="BorderThickness" Value="0"></Setter>
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
</Style>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="0"></Setter>
<Setter Property="Margin" Value="0"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<ContentPresenter/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="Label">
<Setter Property="Foreground" Value="{StaticResource DefaultForegroundFontBrush}"/>
</Style>
<Style TargetType="StatusBar">
<Setter Property="Background" Value="{StaticResource BackgroundLightBrush}"/>
</Style>
<Style TargetType="TabControl">
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style TargetType="TabItem" x:Key="TabItemBase">
<Setter Property="Template" Value="{StaticResource TabItemControlTemplate}"/>
<Setter Property="ToolTip" Value="CHANGEME - All controls of this kind should have a tooltip"/>
</Style>
<Style TargetType="TabItem" BasedOn="{StaticResource TabItemBase}">
</Style>
<Style TargetType="Button">
<Setter Property="Template" Value="{StaticResource ButtonControlTemplate}"/>
<Setter Property="Foreground" Value="{StaticResource DefaultForegroundFontBrush}" />
<Setter Property="ToolTip" Value="CHANGEME - All controls of this kind should have a tooltip"/>
<Setter Property="Padding" Value="8,5,8,5" />
<Setter Property="Cursor" Value="Hand"/>
</Style>
<Style TargetType="ToggleButton">
<Setter Property="Template" Value="{StaticResource ToggleButtonControlTemplate}"/>
<Setter Property="Foreground" Value="{StaticResource DefaultForegroundFontBrush}"/>
<Setter Property="ToolTip" Value="CHANGEME - All controls of this kind should have a tooltip"/>
<Setter Property="Padding" Value="8,5,8,5" />
<Setter Property="Cursor" Value="Hand"/>
</Style>
<Style TargetType="ProgressBar">
<Setter Property="Foreground" Value="Green"/>
</Style>
<Style TargetType="GroupBox">
<Setter Property="Template" Value="{StaticResource GroupBoxControlTemplate}"/>
<Setter Property="Padding" Value="6"/>
<!--<Setter Property="Foreground" Value="{StaticResource DefaultForegroundFontBrush}"/>
<Setter Property="BorderBrush" Value="{StaticResource White_30}"/>
<Setter Property="BorderThickness" Value="0.25"/>-->
</Style>
<Style TargetType="ToolTip">
<Setter Property="Template" Value="{StaticResource ToolTipControlTemplate}"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="{StaticResource White_90}"/>
<Setter Property="Template" Value="{StaticResource TextBoxControlTemplate}"/>
</Style>
<!--<Style TargetType="Expander">
<Setter Property="IsExpanded" Value="True" />
<Setter Property="Template" Value="{StaticResource ExpanderControlTemplate}"/>
</Style>-->
<!--HEADER-->
<Border Height="32" BorderThickness="0,0,0,2" BorderBrush="Black" x:Key="ToolHeader">
<Grid Background="{StaticResource RockstarGlobal}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="32"></ColumnDefinition>
<ColumnDefinition Width="32"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Source="X:\gta5\tools\wildwest\script\3dsMax\UI\WW_banner_rsLogo.png" Stretch="Fill" Width="32" Height="32"></Image>
<Image Grid.Column="2" Source="X:\gta5\tools\wildwest\script\3dsMax\UI\WW_banner_mail.png" Stretch="Fill" Width="32" Height="32"></Image>
<Image Grid.Column="3" Source="X:\gta5\tools\wildwest\script\3dsMax\UI\WW_banner_wiki.png" Stretch="Fill" Width="32" Height="32"></Image>
</Grid>
</Border>
<!--OLD-->
</ResourceDictionary>