hover effekt angeglichen

This commit is contained in:
Meik
2025-11-13 16:09:24 +01:00
parent 27425f5dde
commit 5856ff4df8
4 changed files with 51 additions and 50 deletions

View File

@@ -79,22 +79,6 @@
Value="{DynamicResource FontColor.Menu.Categories}" /> Value="{DynamicResource FontColor.Menu.Categories}" />
</Style> </Style>
<Style x:Key="MandatoryFieldBorderStyle"
TargetType="Border">
<Setter Property="Margin"
Value="0 5 0 0" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="Padding"
Value="1" />
<Setter Property="CornerRadius"
Value="7.5" />
<Setter Property="Background"
Value="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" />
<Setter Property="BorderBrush"
Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
</Style>
<Style x:Key="MandatoryEditableTextBoxStyle" <Style x:Key="MandatoryEditableTextBoxStyle"
TargetType="TextBox" TargetType="TextBox"
BasedOn="{StaticResource Customizable.Editable.TextBox.EditOnly}"> BasedOn="{StaticResource Customizable.Editable.TextBox.EditOnly}">

View File

@@ -21,12 +21,7 @@
FontWeight="Bold" FontWeight="Bold"
Foreground="{DynamicResource FontColor.Menu.Categories}" /> Foreground="{DynamicResource FontColor.Menu.Categories}" />
<Border x:Name="ErrorTypeValidationBorder" <Border x:Name="ErrorTypeValidationBorder"
Margin="0 5 0 0" Style="{StaticResource MandatoryFieldBorderStyle}">
BorderThickness="1"
Padding="1"
CornerRadius="7.5"
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
<ComboBox x:Name="ErrorTypeComboBox" <ComboBox x:Name="ErrorTypeComboBox"
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
BorderBrush="Transparent" BorderBrush="Transparent"

View File

@@ -21,11 +21,7 @@
<Border x:Name="RoleValidationBorder" <Border x:Name="RoleValidationBorder"
Margin="0 5 0 10" Margin="0 5 0 10"
BorderThickness="1" Style="{StaticResource MandatoryFieldBorderStyle}">
Padding="1"
CornerRadius="7.5"
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
<local:ComboBoxPageable x:Name="RoleSelectionControl" <local:ComboBoxPageable x:Name="RoleSelectionControl"
SelectedItem="{Binding ElementName=ForwardTicketDialogUc, Path=SelectedRole, Mode=TwoWay}" SelectedItem="{Binding ElementName=ForwardTicketDialogUc, Path=SelectedRole, Mode=TwoWay}"
ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
@@ -38,11 +34,7 @@
<Border x:Name="PersonValidationBorder" <Border x:Name="PersonValidationBorder"
Margin="0 5 0 10" Margin="0 5 0 10"
BorderThickness="1" Style="{StaticResource MandatoryFieldBorderStyle}">
Padding="1"
CornerRadius="7.5"
Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"
BorderBrush="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}">
<local:ComboBoxPageable x:Name="PersonSelectionControl" <local:ComboBoxPageable x:Name="PersonSelectionControl"
SelectedItem="{Binding ElementName=ForwardTicketDialogUc, Path=SelectedPerson, Mode=TwoWay}" SelectedItem="{Binding ElementName=ForwardTicketDialogUc, Path=SelectedPerson, Mode=TwoWay}"
ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" ComboBoxBackground="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}"

View File

@@ -47,4 +47,34 @@
Value="True" /> Value="True" />
</Style> </Style>
<Style x:Key="MandatoryFieldBorderStyle"
TargetType="Border">
<Setter Property="Margin"
Value="0 5 0 0" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="Padding"
Value="1" />
<Setter Property="CornerRadius"
Value="7.5" />
<Setter Property="Background"
Value="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" />
<Setter Property="BorderBrush"
Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
<Style.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter Property="Background"
Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
<Setter Property="BorderBrush"
Value="{DynamicResource BackgroundColor.Menu.SubCategory}" />
</Trigger>
<Trigger Property="IsEnabled"
Value="False">
<Setter Property="Opacity"
Value="0.5" />
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary> </ResourceDictionary>