Modernize config info dialog to match current UI style
This commit is contained in:
@@ -6,64 +6,238 @@
|
|||||||
xmlns:resx="clr-namespace:C4IT_CustomerPanel.Properties"
|
xmlns:resx="clr-namespace:C4IT_CustomerPanel.Properties"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Title="Konfiguration © Copyright"
|
Title="Konfiguration © Copyright"
|
||||||
Height="295" Width="500"
|
Height="410"
|
||||||
Icon="/Customer Panel;component/Resources/icons/logo_CustomerPanel.ico"
|
Width="760"
|
||||||
|
MinHeight="410"
|
||||||
|
MinWidth="760"
|
||||||
|
ResizeMode="NoResize"
|
||||||
|
Background="{DynamicResource backgroundColor}"
|
||||||
|
Icon="/Customer Panel;component/Resources/icons/logo_CustomerPanel.ico">
|
||||||
|
<Window.Resources>
|
||||||
|
<Style x:Key="ConfigLabelStyle"
|
||||||
|
TargetType="TextBlock">
|
||||||
|
<Setter Property="Foreground"
|
||||||
|
Value="{DynamicResource navForeground}" />
|
||||||
|
<Setter Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter Property="FontWeight"
|
||||||
|
Value="SemiBold" />
|
||||||
|
<Setter Property="VerticalAlignment"
|
||||||
|
Value="Center" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ConfigValueContainerStyle"
|
||||||
|
TargetType="Border">
|
||||||
|
<Setter Property="Background"
|
||||||
|
Value="{DynamicResource inputBackgroundColor}" />
|
||||||
|
<Setter Property="BorderBrush"
|
||||||
|
Value="{DynamicResource panelBorderColor}" />
|
||||||
|
<Setter Property="BorderThickness"
|
||||||
|
Value="1" />
|
||||||
|
<Setter Property="CornerRadius"
|
||||||
|
Value="10" />
|
||||||
|
<Setter Property="Padding"
|
||||||
|
Value="12,8" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ConfigValueTextStyle"
|
||||||
|
TargetType="TextBlock">
|
||||||
|
<Setter Property="Foreground"
|
||||||
|
Value="{DynamicResource navForeground}" />
|
||||||
|
<Setter Property="FontSize"
|
||||||
|
Value="14" />
|
||||||
|
<Setter Property="TextWrapping"
|
||||||
|
Value="Wrap" />
|
||||||
|
<Setter Property="VerticalAlignment"
|
||||||
|
Value="Center" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ConfigActionButtonStyle"
|
||||||
|
TargetType="Button">
|
||||||
|
<Setter Property="Foreground"
|
||||||
|
Value="{DynamicResource buttonTextColor}" />
|
||||||
|
<Setter Property="Background"
|
||||||
|
Value="{DynamicResource inactiveButtonColor}" />
|
||||||
|
<Setter Property="BorderBrush"
|
||||||
|
Value="{DynamicResource panelBorderColor}" />
|
||||||
|
<Setter Property="BorderThickness"
|
||||||
|
Value="1" />
|
||||||
|
<Setter Property="Padding"
|
||||||
|
Value="14,6" />
|
||||||
|
<Setter Property="Cursor"
|
||||||
|
Value="Hand" />
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Border x:Name="ButtonBorder"
|
||||||
|
Background="{TemplateBinding Background}"
|
||||||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
CornerRadius="10">
|
||||||
|
<ContentPresenter HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="{TemplateBinding Padding}" />
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver"
|
||||||
|
Value="True">
|
||||||
|
<Setter TargetName="ButtonBorder"
|
||||||
|
Property="Background"
|
||||||
|
Value="{DynamicResource activeButtonColor}" />
|
||||||
|
<Setter Property="Foreground"
|
||||||
|
Value="White" />
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed"
|
||||||
|
Value="True">
|
||||||
|
<Setter TargetName="ButtonBorder"
|
||||||
|
Property="Opacity"
|
||||||
|
Value="0.9" />
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</Window.Resources>
|
||||||
|
|
||||||
ResizeMode="NoResize">
|
<Grid Margin="16">
|
||||||
<Grid>
|
<Border CornerRadius="16"
|
||||||
<Grid.ColumnDefinitions>
|
BorderThickness="1"
|
||||||
<ColumnDefinition Width="110*"/>
|
BorderBrush="{DynamicResource panelBorderColor}"
|
||||||
<ColumnDefinition Width="375*"/>
|
Background="{DynamicResource panelBackgroundColor}">
|
||||||
<ColumnDefinition Width="9*"/>
|
<Grid Margin="20">
|
||||||
</Grid.ColumnDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
<Button Visibility="Hidden" Content="Reset Panel Position" PreviewMouseDown="Button_PreviewMouseDown" Margin="230,10,0,215" Grid.Column="1" Grid.ColumnSpan="2"/>
|
<RowDefinition Height="16" />
|
||||||
<StackPanel Orientation="Vertical" Grid.ColumnSpan="3">
|
<RowDefinition Height="*" />
|
||||||
<StackPanel Orientation="Horizontal">
|
<RowDefinition Height="16" />
|
||||||
<TextBlock Margin="20,20,0,0" Text="MatrixServer" TextDecorations="Underline" FontSize="14"></TextBlock>
|
<RowDefinition Height="Auto" />
|
||||||
<TextBlock Margin="20,20,0,0" x:Name="TxtMatrixServer"/>
|
</Grid.RowDefinitions>
|
||||||
</StackPanel>
|
|
||||||
<StackPanel>
|
|
||||||
<Separator></Separator>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<TextBlock Margin="20,20,0,0" Text="Ticket Update interval" TextDecorations="Underline" FontSize="14"></TextBlock>
|
|
||||||
<TextBlock Margin="20,20,0,0" x:Name="TxtUpdateIntervalTickets"/>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel>
|
|
||||||
<Separator></Separator>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<TextBlock Margin="20,20,0,0" Text="Announcements Update Interval Regular" TextDecorations="Underline" FontSize="14"></TextBlock>
|
|
||||||
<TextBlock Margin="20,20,0,0" x:Name="TxtUpdateIntervalRegularAnnouncements"/>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel>
|
|
||||||
<Separator></Separator>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<TextBlock Margin="20,20,0,0" Text="Announcements Update Interval AdHoc" TextDecorations="Underline" FontSize="14"></TextBlock>
|
|
||||||
<TextBlock Margin="20,20,0,0" x:Name="TxtUpdateIntervalAdHocAnnouncements"/>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel>
|
|
||||||
<Separator></Separator>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,40,0,0">
|
|
||||||
|
|
||||||
<TextBlock Margin="20,0,0,0" x:Name="TxtCopyRight" >
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<StackPanel Orientation="Vertical"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<TextBlock Text="Konfiguration"
|
||||||
|
Foreground="{DynamicResource navForeground}"
|
||||||
|
FontSize="22"
|
||||||
|
FontWeight="Bold" />
|
||||||
|
<TextBlock Text="Aktuelle Verbindungs- und Aktualisierungswerte"
|
||||||
|
Foreground="{DynamicResource navForeground}"
|
||||||
|
Opacity="0.75"
|
||||||
|
Margin="0,4,0,0" />
|
||||||
|
</StackPanel>
|
||||||
|
<Image Grid.Column="1"
|
||||||
|
Width="140"
|
||||||
|
Height="38"
|
||||||
|
Margin="16,0,0,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Stretch="Uniform"
|
||||||
|
Source="/Customer Panel;component/Resources/consulting4it-header1.png" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</TextBlock>
|
<Grid Grid.Row="2">
|
||||||
<TextBlock Margin="5,0,0,0">
|
<Grid.RowDefinitions>
|
||||||
<Hyperlink NavigateUri="http://www.consulting4it.de" RequestNavigate="Hyperlink_RequestNavigate">
|
<RowDefinition Height="Auto" />
|
||||||
Consulting4IT GmbH
|
<RowDefinition Height="12" />
|
||||||
</Hyperlink>
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="12" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="12" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="270" />
|
||||||
|
<ColumnDefinition Width="12" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
</TextBlock>
|
<TextBlock Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="MatrixServer"
|
||||||
|
Style="{StaticResource ConfigLabelStyle}" />
|
||||||
|
<Border Grid.Row="0"
|
||||||
|
Grid.Column="2"
|
||||||
|
Style="{StaticResource ConfigValueContainerStyle}">
|
||||||
|
<TextBlock x:Name="TxtMatrixServer"
|
||||||
|
Style="{StaticResource ConfigValueTextStyle}" />
|
||||||
|
</Border>
|
||||||
|
|
||||||
<Button Margin="-110,20,0,0" Content="Creative Commons" PreviewMouseDown="OnCcClicked"></Button>
|
<TextBlock Grid.Row="2"
|
||||||
<Image Margin="20,-25,0,0" Source="/Customer Panel;component/Resources/consulting4it-header1.png" Height="60" HorizontalAlignment="Right" />
|
Grid.Column="0"
|
||||||
</StackPanel>
|
Text="Ticket Update Interval"
|
||||||
</StackPanel>
|
Style="{StaticResource ConfigLabelStyle}" />
|
||||||
|
<Border Grid.Row="2"
|
||||||
|
Grid.Column="2"
|
||||||
|
Style="{StaticResource ConfigValueContainerStyle}">
|
||||||
|
<TextBlock x:Name="TxtUpdateIntervalTickets"
|
||||||
|
Style="{StaticResource ConfigValueTextStyle}" />
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="4"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="Announcements Update Interval Regular"
|
||||||
|
Style="{StaticResource ConfigLabelStyle}" />
|
||||||
|
<Border Grid.Row="4"
|
||||||
|
Grid.Column="2"
|
||||||
|
Style="{StaticResource ConfigValueContainerStyle}">
|
||||||
|
<TextBlock x:Name="TxtUpdateIntervalRegularAnnouncements"
|
||||||
|
Style="{StaticResource ConfigValueTextStyle}" />
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="6"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="Announcements Update Interval AdHoc"
|
||||||
|
Style="{StaticResource ConfigLabelStyle}" />
|
||||||
|
<Border Grid.Row="6"
|
||||||
|
Grid.Column="2"
|
||||||
|
Style="{StaticResource ConfigValueContainerStyle}">
|
||||||
|
<TextBlock x:Name="TxtUpdateIntervalAdHocAnnouncements"
|
||||||
|
Style="{StaticResource ConfigValueTextStyle}" />
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Border Grid.Row="4"
|
||||||
|
Background="{DynamicResource inputBackgroundColor}"
|
||||||
|
BorderBrush="{DynamicResource panelBorderColor}"
|
||||||
|
BorderThickness="1"
|
||||||
|
CornerRadius="10"
|
||||||
|
Padding="12,10">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<TextBlock x:Name="TxtCopyRight"
|
||||||
|
Foreground="{DynamicResource navForeground}"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
<TextBlock Margin="6,0,0,0"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<Hyperlink NavigateUri="http://www.consulting4it.de"
|
||||||
|
RequestNavigate="Hyperlink_RequestNavigate">
|
||||||
|
Consulting4IT GmbH
|
||||||
|
</Hyperlink>
|
||||||
|
</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Button Grid.Column="1"
|
||||||
|
Content="Creative Commons"
|
||||||
|
Style="{StaticResource ConfigActionButtonStyle}"
|
||||||
|
Click="OnCcClicked" />
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<Button Visibility="Hidden"
|
||||||
|
Content="Reset Panel Position"
|
||||||
|
PreviewMouseDown="Button_PreviewMouseDown"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
Margin="0,0,8,0" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
Reference in New Issue
Block a user