fix(ui): restore listitem typography and info tab icon/label sizing

This commit is contained in:
Meik
2026-03-05 18:30:44 +01:00
parent fa5b99b947
commit 3546a77892
4 changed files with 30 additions and 33 deletions

View File

@@ -8,7 +8,7 @@
mc:Ignorable="d"
d:DesignWidth="320"
FontSize="12"
FontFamily="Segoe UI"
FontFamily="Arial"
Cursor="Hand"
MouseLeftButtonDown="OnMouseLeftButtonDownClicked"
>
@@ -74,7 +74,6 @@
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontStyle="Italic"
Foreground="{DynamicResource subtleTextColor}"
Text="{Binding Path=CreatedDate,StringFormat={}{0:dd.MM.yyyy},FallbackValue='01.01.2021'}" />
</DockPanel>
@@ -94,7 +93,6 @@
Text="{Binding Path=Subject,FallbackValue='test Announcement'}"
VerticalAlignment="Center"
FontWeight="Bold"
Foreground="{DynamicResource sectionTitleColor}"
ClipToBounds="True" />
<TextBlock x:Name="txtContent"
Grid.Row="2"
@@ -102,7 +100,6 @@
Margin="15,10,10,0"
VerticalAlignment="Center"
Text="{Binding Path=Text,FallbackValue='test text'}"
Foreground="{DynamicResource subtleTextColor}"
TextWrapping="Wrap"
TextTrimming="CharacterEllipsis"
LineStackingStrategy="BlockLineHeight"
@@ -117,7 +114,6 @@
Margin="15,5,10,0"
VerticalAlignment="Center"
FontStyle="Italic"
Foreground="{DynamicResource subtleTextColor}"
TextWrapping="Wrap"
TextTrimming="CharacterEllipsis"
LineStackingStrategy="BlockLineHeight"

View File

@@ -79,13 +79,13 @@
<Style x:Key="InfoRowIconStyle"
TargetType="{x:Type Image}">
<Setter Property="Width"
Value="24" />
Value="48" />
<Setter Property="Height"
Value="24" />
Value="48" />
<Setter Property="Canvas.Left"
Value="0" />
<Setter Property="Canvas.Top"
Value="1" />
Value="0" />
</Style>
<Style x:Key="InfoRowLabelStyle"
@@ -93,36 +93,36 @@
<Setter Property="Foreground"
Value="{DynamicResource sectionTitleColor}" />
<Setter Property="FontSize"
Value="15" />
Value="16" />
<Setter Property="Padding"
Value="0" />
<Setter Property="Margin"
Value="0" />
<Setter Property="Height"
Value="20" />
Value="22" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="Canvas.Left"
Value="30" />
Value="40" />
<Setter Property="Canvas.Top"
Value="2" />
Value="10" />
</Style>
<Style x:Key="InfoRowValueStyle"
TargetType="{x:Type TextBox}"
BasedOn="{StaticResource InfoTextBoxStyle}">
<Setter Property="Width"
Value="310" />
Value="300" />
<Setter Property="Height"
Value="28" />
Value="25" />
<Setter Property="FontSize"
Value="15" />
Value="16" />
<Setter Property="Canvas.Left"
Value="12" />
Value="15" />
<Setter Property="Canvas.Top"
Value="21" />
Value="33" />
</Style>
<Style x:Key="InfoRowCopyStyle"
@@ -130,13 +130,13 @@
<Setter Property="Cursor"
Value="Hand" />
<Setter Property="Width"
Value="22" />
Value="28" />
<Setter Property="Height"
Value="22" />
Value="25" />
<Setter Property="Canvas.Left"
Value="325" />
Value="312" />
<Setter Property="Canvas.Top"
Value="24" />
Value="33" />
</Style>
</UserControl.Resources>
@@ -173,7 +173,7 @@
Canvas.Left="0"
Width="350">
<Canvas Width="350"
Height="50">
Height="60">
<Image Source="{DynamicResource appbar_monitor}"
Style="{StaticResource InfoRowIconStyle}"
x:Name="icoComputer_Inline"
@@ -196,7 +196,7 @@
</Canvas>
<Canvas Width="350"
Height="50">
Height="60">
<Image Source="{DynamicResource appbar_network}"
Style="{StaticResource InfoRowIconStyle}"
x:Name="icoNetwork_Inline"
@@ -219,7 +219,7 @@
</Canvas>
<Canvas Width="350"
Height="50"
Height="60"
x:Name="CanvasHostname"
x:FieldModifier="private">
<Image Source="{DynamicResource appbar_remotehost}"
@@ -244,7 +244,7 @@
</Canvas>
<Canvas Width="350"
Height="50">
Height="60">
<Image Source="{DynamicResource appbar_people}"
Style="{StaticResource InfoRowIconStyle}"
x:Name="icoUser_Inline"
@@ -268,7 +268,7 @@
</Canvas>
<Canvas Width="350"
Height="50">
Height="60">
<Image Source="{DynamicResource appbar_reset}"
Style="{StaticResource InfoRowIconStyle}"
x:Name="icoRestart_Inline"

View File

@@ -9,7 +9,7 @@
mc:Ignorable="d"
d:DesignWidth="320"
FontSize="12"
FontFamily="Segoe UI"
FontFamily="Arial"
Cursor="Hand"
>
<UserControl.Resources>
@@ -53,24 +53,24 @@
ScaleY="0.8" />
</Image.RenderTransform>
</Image>
<TextBlock x:Name="txtTicketType" Margin="5,0,0,0" Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Path=TicketType,FallbackValue='Störung'}" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}" Width="95"></TextBlock>
<TextBlock x:Name="txtTicketType" Margin="5,0,0,0" Grid.Column="0" HorizontalAlignment="Left" Text="{Binding Path=TicketType,FallbackValue='Störung'}" FontStyle="Italic" Width="95"></TextBlock>
</DockPanel>
<DockPanel Grid.Column="1" Margin="10,0,0,0">
<TextBlock x:Name="txtState" HorizontalAlignment="Center" Text="{Binding Path=State, FallbackValue='State'}" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}"></TextBlock>
<TextBlock x:Name="txtState" HorizontalAlignment="Center" Text="{Binding Path=State, FallbackValue='State'}" FontStyle="Italic"></TextBlock>
<Grid Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,6,0" Width="26" x:Name="sortByState" Visibility="Collapsed">
<TextBlock Text="&#11206;" Margin="12,0,0,0" x:Name="descState" FontSize="14" Tag="5" PreviewMouseDown="orderBy_PreviewMouseDown" Cursor="Hand" />
<TextBlock Text="&#11205;" x:Name="ascState" FontSize="14" Tag="4" Margin="0,0,10,0" PreviewMouseDown="orderBy_PreviewMouseDown" Cursor="Hand" />
</Grid>
</DockPanel>
<TextBlock x:Name="txtID" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand" TextDecorations="Underline" Foreground="{DynamicResource accentColor}" ToolTip="{x:Static resx:Resources.CallTicketDetails}" Text="{Binding Path=TicketNumber, FallbackValue='TCK0004'}" Margin="0,0,22,0"></TextBlock>
<TextBlock x:Name="txtID" Grid.Column="2" HorizontalAlignment="Right" Cursor="Hand" TextDecorations="Underline" Foreground="#1E72C7" ToolTip="{x:Static resx:Resources.CallTicketDetails}" Text="{Binding Path=TicketNumber, FallbackValue='TCK0004'}" Margin="0,0,22,0"></TextBlock>
<Grid Grid.Column="2" HorizontalAlignment="Right" Width="25" x:Name="sortByTicketNumber" Visibility="Collapsed" Margin="0,0,-3,0">
<TextBlock Text="&#11206;" Margin="12,0,0,0" x:Name="descTicketnumber" FontSize="14" Tag="1" PreviewMouseDown="orderBy_PreviewMouseDown" Cursor="Hand" />
<TextBlock Text="&#11205;" x:Name="ascTicketnumber" FontSize="14" Margin="0,0,13,0" Tag="0" PreviewMouseDown="orderBy_PreviewMouseDown" Cursor="Hand" />
</Grid>
</Grid>
<TextBlock x:Name="txtContent" Grid.Row="1" VerticalAlignment="Top" Margin="8,12,5,24" FontWeight="Bold" Foreground="{DynamicResource sectionTitleColor}" TextWrapping="Wrap" Text="{Binding Path=Subject,FallbackValue='test Ticket'}"></TextBlock>
<TextBlock x:Name="txtCreatedDate" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Text="{Binding Path=CreatedDate, StringFormat={}{0:dd.MM.yyyy HH:mm}, FallbackValue='Datum'}" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}" Width="100" Margin="0,32,27,6"></TextBlock>
<TextBlock Visibility="{Binding Path=IsUnread, Converter={StaticResource BoolToVis}}" x:Name="txtLastAction" Grid.Row="1" HorizontalAlignment="Right" FontStyle="Italic" Foreground="{DynamicResource subtleTextColor}" Width="165" Margin="0,32,145,4" Text="{Binding Path=LastJournalEntryActionText,FallbackValue='test Ticket'}"></TextBlock>
<TextBlock x:Name="txtContent" Grid.Row="1" VerticalAlignment="Top" Margin="8,12,5,24" FontWeight="Bold" TextWrapping="Wrap" Text="{Binding Path=Subject,FallbackValue='test Ticket'}"></TextBlock>
<TextBlock x:Name="txtCreatedDate" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Text="{Binding Path=CreatedDate, StringFormat={}{0:dd.MM.yyyy HH:mm}, FallbackValue='Datum'}" FontStyle="Italic" Width="100" Margin="0,32,27,6"></TextBlock>
<TextBlock Visibility="{Binding Path=IsUnread, Converter={StaticResource BoolToVis}}" x:Name="txtLastAction" Grid.Row="1" HorizontalAlignment="Right" FontStyle="Italic" Width="165" Margin="0,32,145,4" Text="{Binding Path=LastJournalEntryActionText,FallbackValue='test Ticket'}"></TextBlock>
<Grid HorizontalAlignment="Right" Width="25" Grid.Row="1" x:Name="sortByCreatedDate" Visibility="Collapsed" VerticalAlignment="Bottom" Height="16" Margin="0,0,0,4">
<TextBlock Text="&#11206;" Margin="12,0,0,0" x:Name="descCreatedDate" FontSize="14" PreviewMouseDown="orderBy_PreviewMouseDown" Cursor="Hand" Tag="3"/>
<TextBlock Text="&#11205;" x:Name="ascCreatedDate" Tag="2" FontSize="14" Margin="0,0,13,0" PreviewMouseDown="orderBy_PreviewMouseDown" Cursor="Hand" />