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
|
|
@ -2,8 +2,6 @@
|
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:cctl="clr-namespace:ServerManagerTool.Common.Controls;assembly=ServerManager.Common"
|
||||
xmlns:cc="clr-namespace:ServerManagerTool.Common.Converters;assembly=ServerManager.Common"
|
||||
xmlns:com="clr-namespace:ServerManagerTool.Common;assembly=ServerManager.Common"
|
||||
xmlns:enum="clr-namespace:ServerManagerTool.Enums"
|
||||
Width="600" ResizeMode="CanMinimize" SizeToContent="Height" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterOwner" ShowInTaskbar="True"
|
||||
Closing="Window_Closing" Closed="Window_Closed"
|
||||
|
|
@ -14,49 +12,6 @@
|
|||
<ResourceDictionary Source="..\Globalization\en-US\en-US.xaml"/>
|
||||
<ResourceDictionary Source="..\Styles\Default.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<cc:InvertBooleanConverter x:Key="InvertBooleanConverter"/>
|
||||
|
||||
<LinearGradientBrush x:Key="BeigeGradient" EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#FFECE1D4" Offset="1"/>
|
||||
<GradientStop Color="#FFEAE8E6"/>
|
||||
</LinearGradientBrush>
|
||||
<SolidColorBrush x:Key="BeigeLabel" Color="#FFE6DFD8"/>
|
||||
<SolidColorBrush x:Key="BeigeBorder" Color="#FFD8CCBC"/>
|
||||
|
||||
<Style x:Key="GroupBoxStyle" TargetType="GroupBox" BasedOn="{StaticResource {x:Type GroupBox}}">
|
||||
<Setter Property="BorderBrush" Value="{StaticResource BeigeBorder}"/>
|
||||
</Style>
|
||||
|
||||
<ContentControl x:Key="ShutdownButtonContent">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Width="16" Height="16" Margin="5,0,5,0" Source="{com:Icon Path=/ConanServerManager;component/Art/Stop.ico,Size=32}" VerticalAlignment="Center"/>
|
||||
<Label Content="{DynamicResource ShutdownWindow_ShutdownButtonLabel}" VerticalAlignment="Center" Padding="5,0"/>
|
||||
</StackPanel>
|
||||
</ContentControl>
|
||||
<ContentControl x:Key="RestartButtonContent">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Width="16" Height="16" Margin="5,0,5,0" Source="{com:Icon Path=/ConanServerManager;component/Art/Start.ico,Size=32}" VerticalAlignment="Center"/>
|
||||
<Label Content="{DynamicResource ShutdownWindow_RestartButtonLabel}" VerticalAlignment="Center" Padding="5,0"/>
|
||||
</StackPanel>
|
||||
</ContentControl>
|
||||
<ContentControl x:Key="CancelShutdownButtonContent">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Width="16" Height="16" Margin="5,0,5,0" Source="{com:Icon Path=/ConanServerManager;component/Art/Cancel.ico,Size=32}" VerticalAlignment="Center"/>
|
||||
<Label Content="{DynamicResource ShutdownWindow_CancelShutdownButtonLabel}" VerticalAlignment="Center" Padding="5,0"/>
|
||||
</StackPanel>
|
||||
</ContentControl>
|
||||
<ContentControl x:Key="StopButtonContent">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Width="16" Height="16" Margin="5,0,5,0" Source="{com:Icon Path=/ConanServerManager;component/Art/Stop.ico,Size=32}" VerticalAlignment="Center"/>
|
||||
<Label Content="{DynamicResource ShutdownWindow_StopButtonLabel}" VerticalAlignment="Center" Padding="5,0"/>
|
||||
</StackPanel>
|
||||
</ContentControl>
|
||||
<ContentControl x:Key="CancelButtonContent">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="{DynamicResource ShutdownWindow_CloseButtonLabel}" VerticalAlignment="Center" Padding="5,0"/>
|
||||
</StackPanel>
|
||||
</ContentControl>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
|
|
@ -221,7 +176,7 @@
|
|||
<Button.Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}">
|
||||
<Setter Property="IsEnabled" Value="False" />
|
||||
<Setter Property="Content" Value="{StaticResource StopButtonContent}" />
|
||||
<Setter Property="Content" Value="{StaticResource StopButtonContent2}" />
|
||||
<Setter Property="ToolTip" Value="{DynamicResource ShutdownWindow_StopButtonTooltip}" />
|
||||
<Style.Triggers>
|
||||
<MultiDataTrigger>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue