Enlarge config dialog and refine layout without scrolling

This commit is contained in:
Meik
2026-03-05 11:58:22 +01:00
parent 809bd028d4
commit 48ae3a5a8f

View File

@@ -7,11 +7,13 @@
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Title="Konfiguration © Copyright"
Height="410"
Width="760"
MinHeight="410"
MinWidth="760"
Height="540"
Width="840"
MinHeight="540"
MinWidth="840"
ResizeMode="NoResize"
UseLayoutRounding="True"
SnapsToDevicePixels="True"
Background="{DynamicResource backgroundColor}"
Icon="/Customer Panel;component/Resources/icons/logo_CustomerPanel.ico">
<Window.Resources>
@@ -22,7 +24,9 @@
<Setter Property="FontSize"
Value="14" />
<Setter Property="FontWeight"
Value="SemiBold" />
Value="Medium" />
<Setter Property="TextWrapping"
Value="Wrap" />
<Setter Property="VerticalAlignment"
Value="Center" />
</Style>
@@ -31,13 +35,13 @@
<Setter Property="Background"
Value="{DynamicResource inputBackgroundColor}" />
<Setter Property="BorderBrush"
Value="{DynamicResource panelBorderColor}" />
Value="{DynamicResource inputBorderColor}" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="CornerRadius"
Value="10" />
<Setter Property="Padding"
Value="12,8" />
Value="12,9" />
</Style>
<Style x:Key="ConfigValueTextStyle"
TargetType="TextBlock">
@@ -53,11 +57,11 @@
<Style x:Key="ConfigActionButtonStyle"
TargetType="Button">
<Setter Property="Foreground"
Value="{DynamicResource buttonTextColor}" />
Value="{DynamicResource navForeground}" />
<Setter Property="Background"
Value="{DynamicResource inactiveButtonColor}" />
Value="{DynamicResource panelBackgroundColor}" />
<Setter Property="BorderBrush"
Value="{DynamicResource panelBorderColor}" />
Value="{DynamicResource inputBorderColor}" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="Padding"
@@ -81,15 +85,18 @@
Value="True">
<Setter TargetName="ButtonBorder"
Property="Background"
Value="{DynamicResource activeButtonColor}" />
Value="{DynamicResource inactiveButtonColor}" />
<Setter TargetName="ButtonBorder"
Property="BorderBrush"
Value="{DynamicResource itemHoverBorderColor}" />
<Setter Property="Foreground"
Value="White" />
Value="{DynamicResource navForeground}" />
</Trigger>
<Trigger Property="IsPressed"
Value="True">
<Setter TargetName="ButtonBorder"
Property="Opacity"
Value="0.9" />
Value="0.94" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
@@ -98,17 +105,17 @@
</Style>
</Window.Resources>
<Grid Margin="16">
<Border CornerRadius="16"
<Grid Margin="14">
<Border CornerRadius="18"
BorderThickness="1"
BorderBrush="{DynamicResource panelBorderColor}"
Background="{DynamicResource panelBackgroundColor}">
<Grid Margin="20">
<Grid Margin="22">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="16" />
<RowDefinition Height="14" />
<RowDefinition Height="*" />
<RowDefinition Height="16" />
<RowDefinition Height="14" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
@@ -125,19 +132,20 @@
FontWeight="Bold" />
<TextBlock Text="Aktuelle Verbindungs- und Aktualisierungswerte"
Foreground="{DynamicResource navForeground}"
Opacity="0.75"
Opacity="0.72"
Margin="0,4,0,0" />
</StackPanel>
<Image Grid.Column="1"
Width="140"
Height="38"
Width="150"
Height="40"
Margin="16,0,0,0"
VerticalAlignment="Center"
Stretch="Uniform"
Source="/Customer Panel;component/Resources/consulting4it-header1.png" />
</Grid>
<Grid Grid.Row="2">
<Grid Grid.Row="2"
Margin="0,0,4,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="12" />
@@ -148,7 +156,7 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="270" />
<ColumnDefinition Width="300" />
<ColumnDefinition Width="12" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
@@ -200,10 +208,10 @@
<Border Grid.Row="4"
Background="{DynamicResource inputBackgroundColor}"
BorderBrush="{DynamicResource panelBorderColor}"
BorderBrush="{DynamicResource inputBorderColor}"
BorderThickness="1"
CornerRadius="10"
Padding="12,10">
Padding="12,8">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
@@ -226,6 +234,8 @@
<Button Grid.Column="1"
Content="Creative Commons"
Height="34"
MinWidth="150"
Style="{StaticResource ConfigActionButtonStyle}"
Click="OnCcClicked" />
</Grid>