- Agent v2.1.2: WebSocket ShellService, ACK nach WS-Ankündigungen, shown_announcements Fix - Backend: shellServer.js mit WebSocket-Server (Shell + Announcement Push + RTC Signaling) - Backend: patch.controller.js Fix (command_id=0 Falsy-Bug beim Auto-Update) - Frontend: Remote Desktop Tab (WebRTC Beta) in AgentDetailPage für super_admin/admin - Frontend: PatchManagementPage auf v2.1.2 aktualisiert - WPF Notification: AllowsTransparency=False + kein DropShadowEffect (Dispatcher-Crash Fix) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
106 lines
4.9 KiB
XML
106 lines
4.9 KiB
XML
<Window x:Class="ITNexusAgent.UI.NotificationWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="IT Nexus Mitteilung"
|
|
Width="500" Height="Auto"
|
|
SizeToContent="Height"
|
|
WindowStartupLocation="CenterScreen"
|
|
ResizeMode="NoResize"
|
|
WindowStyle="None"
|
|
AllowsTransparency="False"
|
|
Background="#1A1D2E"
|
|
Topmost="True"
|
|
FontFamily="Segoe UI">
|
|
|
|
<Window.Resources>
|
|
<Style x:Key="ConfirmBtn" TargetType="Button">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="Height" Value="46"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="Bg" CornerRadius="8"
|
|
Background="{TemplateBinding Background}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Bg" Property="Opacity" Value="0.85"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="Bg" Property="Opacity" Value="0.7"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<!-- Äußerer Rahmen mit farbigem Top-Border -->
|
|
<Border CornerRadius="0" Background="#1A1D2E"
|
|
BorderBrush="#2D3250" BorderThickness="1">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="4"/> <!-- Farbige Top-Linie -->
|
|
<RowDefinition Height="Auto"/> <!-- Header: Icon + Typ + Titel -->
|
|
<RowDefinition Height="Auto"/> <!-- Nachricht -->
|
|
<RowDefinition Height="Auto"/> <!-- Meta -->
|
|
<RowDefinition Height="Auto"/> <!-- Button -->
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Farbige Linie oben (wie Web: border-top) -->
|
|
<Border Grid.Row="0" x:Name="TopAccent" CornerRadius="12,12,0,0"/>
|
|
|
|
<!-- Header -->
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal"
|
|
Margin="24,20,24,16" VerticalAlignment="Center">
|
|
<!-- Icon-Box -->
|
|
<Border x:Name="IconBox" Width="44" Height="44" CornerRadius="10"
|
|
VerticalAlignment="Top" Margin="0,0,14,0">
|
|
<TextBlock x:Name="IconText" FontSize="22"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<!-- Typ + Titel -->
|
|
<StackPanel VerticalAlignment="Center">
|
|
<TextBlock x:Name="TypeLabel" FontSize="10" FontWeight="Bold"
|
|
TextOptions.TextFormattingMode="Display"/>
|
|
<TextBlock x:Name="TitleText" FontSize="17" FontWeight="Bold"
|
|
Foreground="White" TextWrapping="Wrap" MaxWidth="370"
|
|
Margin="0,3,0,0" LineHeight="22"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<!-- Nachricht -->
|
|
<Border Grid.Row="2" Margin="24,0,24,16"
|
|
Background="#252840" CornerRadius="8"
|
|
BorderBrush="#3D4270" BorderThickness="1" Padding="14,12">
|
|
<TextBlock x:Name="MessageText" FontSize="13" Foreground="#B0B8D1"
|
|
TextWrapping="Wrap" LineHeight="20"/>
|
|
</Border>
|
|
|
|
<!-- Meta -->
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal"
|
|
Margin="24,0,24,20" Opacity="0.55">
|
|
<TextBlock x:Name="MetaText" FontSize="11" Foreground="#8B9BBF"/>
|
|
</StackPanel>
|
|
|
|
<!-- Button + Hinweis -->
|
|
<StackPanel Grid.Row="4" Margin="24,0,24,24">
|
|
<Button x:Name="ConfirmButton" Style="{StaticResource ConfirmBtn}"
|
|
Click="ConfirmButton_Click">
|
|
<TextBlock Text="✓ Gelesen und bestätigt" FontSize="13" FontWeight="Bold"/>
|
|
</Button>
|
|
<TextBlock Text="Du musst diese Nachricht bestätigen um fortzufahren."
|
|
FontSize="10" Foreground="#555E7A"
|
|
HorizontalAlignment="Center" Margin="0,8,0,0"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|