mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Moving style resources to default.xaml
This commit is contained in:
parent
48a915e239
commit
57d13faa8f
25 changed files with 806 additions and 989 deletions
|
|
@ -1,7 +1,6 @@
|
|||
<Window x:Class="ServerManagerTool.PlayerProfileWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:cc="clr-namespace:ServerManagerTool.Common.Converters;assembly=ServerManager.Common"
|
||||
Width="500" ResizeMode="NoResize" SizeToContent="Height" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
||||
Icon="../Art/favicon.ico" Title="{Binding WindowTitle}">
|
||||
<Window.Resources>
|
||||
|
|
@ -10,77 +9,6 @@
|
|||
<ResourceDictionary Source="..\Globalization\en-US\en-US.xaml"/>
|
||||
<ResourceDictionary Source="..\Styles\Default.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<cc:NullValueConverter x:Key="NullValueConverter"/>
|
||||
<cc:UnixTimeToDateTimeConverter x:Key="UnixTimeToDateTimeConverter"/>
|
||||
|
||||
<BitmapImage x:Key="NoAvatar" UriSource="../Art/NoAvatar.png" />
|
||||
|
||||
<SolidColorBrush x:Key="BeigeBorder" Color="#FFD8CCBC"/>
|
||||
<LinearGradientBrush x:Key="BeigeGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFECE1D4" Offset="1"/>
|
||||
<GradientStop Color="#FFEAE8E6"/>
|
||||
</LinearGradientBrush>
|
||||
|
||||
<Style x:Key="GroupBoxStyle" TargetType="GroupBox" BasedOn="{StaticResource {x:Type GroupBox}}">
|
||||
<Setter Property="BorderBrush" Value="{StaticResource BeigeBorder}"/>
|
||||
</Style>
|
||||
<Style x:Key="Online" TargetType="{x:Type Label}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding Player.IsOnline}" Value="True">
|
||||
<Setter Property="Foreground" Value="Green"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Player.IsOnline}" Value="False">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="CommunityBanned" TargetType="{x:Type Label}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PlayerData.CommunityBanned}" Value="False">
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PlayerData.CommunityBanned}" Value="True">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="VACBanned" TargetType="{x:Type Label}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PlayerData.VACBanned}" Value="False">
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PlayerData.VACBanned}" Value="True">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="Banned" TargetType="{x:Type Label}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding Player.IsBanned}" Value="False">
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Player.IsBanned}" Value="True">
|
||||
<Setter Property="Foreground" Value="Red"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="Whitelisted" TargetType="{x:Type Label}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding Player.IsWhitelisted}" Value="True">
|
||||
<Setter Property="Foreground" Value="Blue"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Player.IsWhitelisted}" Value="False">
|
||||
<Setter Property="Foreground" Value="Black"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue