| 1 | <UserControl xmlns="https://github.com/avaloniaui" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:vm="using:CascadeIDE.ViewModels" |
| 4 | xmlns:chrome="using:CascadeIDE.Features.UiChrome" |
| 5 | x:Class="CascadeIDE.Views.PfdBackgroundStatusBarView" |
| 6 | x:DataType="vm:MainWindowViewModel"> |
| 7 | <UserControl.Styles> |
| 8 | <Style Selector="Button.caution"> |
| 9 | <Setter Property="Background" Value="#33FFB020"/> |
| 10 | </Style> |
| 11 | </UserControl.Styles> |
| 12 | <chrome:AttentionZoneContainer Zone="Hud"> |
| 13 | <StackPanel Spacing="0"> |
| 14 | <Grid ColumnDefinitions="*,Auto,Auto,Auto" |
| 15 | Background="{DynamicResource CascadeTheme.McpBannerBackground}"> |
| 16 | <Button Grid.Column="0" |
| 17 | Classes.caution="{Binding IsPfdBackgroundStatusCaution}" |
| 18 | Background="Transparent" |
| 19 | BorderBrush="{DynamicResource CascadeTheme.BuildOutputBorderBrush}" |
| 20 | BorderThickness="0,0,0,1" |
| 21 | Padding="10,5" |
| 22 | HorizontalAlignment="Stretch" |
| 23 | HorizontalContentAlignment="Left" |
| 24 | Command="{Binding OpenPfdBackgroundStatusDetailsCommand}" |
| 25 | Cursor="Hand"> |
| 26 | <TextBlock Text="{Binding PfdBackgroundStatusText}" |
| 27 | TextTrimming="CharacterEllipsis" |
| 28 | Foreground="{DynamicResource CascadeTheme.HudBannerForeground}" |
| 29 | FontSize="11.5" |
| 30 | Opacity="0.95"/> |
| 31 | </Button> |
| 32 | <Button Grid.Column="1" |
| 33 | Content="Повтор" |
| 34 | IsVisible="{Binding ShowPfdVerifyEpochRetry}" |
| 35 | Margin="0,0,4,0" |
| 36 | Padding="8,4" |
| 37 | FontSize="11" |
| 38 | Classes.caution="{Binding IsPfdBackgroundStatusCaution}" |
| 39 | Command="{Binding RetryPfdAgentEnvironmentVerifyCommand}"/> |
| 40 | <Button Grid.Column="2" |
| 41 | Content="Отмена" |
| 42 | IsVisible="{Binding ShowPfdAgentEnvironmentCancel}" |
| 43 | Margin="0,0,4,0" |
| 44 | Padding="8,4" |
| 45 | FontSize="11" |
| 46 | Command="{Binding CancelPfdAgentEnvironmentVerifyCommand}"/> |
| 47 | <Button Grid.Column="3" |
| 48 | Content="▾" |
| 49 | IsVisible="{Binding ShowPfdVerifyEpochExpandToggle}" |
| 50 | Margin="0,0,8,0" |
| 51 | Padding="6,4" |
| 52 | FontSize="11" |
| 53 | Command="{Binding TogglePfdVerifyEpochExpandedCommand}"/> |
| 54 | </Grid> |
| 55 | <Border IsVisible="{Binding ShowPfdVerifyEpochExpandedPanel}" |
| 56 | Background="{DynamicResource CascadeTheme.McpBannerBackground}" |
| 57 | BorderBrush="{DynamicResource CascadeTheme.BuildOutputBorderBrush}" |
| 58 | BorderThickness="0,0,0,1" |
| 59 | Padding="10,6"> |
| 60 | <TextBlock Text="{Binding PfdVerifyEpochExpandedText}" |
| 61 | FontFamily="Consolas,Courier New,monospace" |
| 62 | FontSize="11" |
| 63 | Foreground="{DynamicResource CascadeTheme.HudBannerForeground}" |
| 64 | Opacity="0.92" |
| 65 | TextWrapping="Wrap"/> |
| 66 | </Border> |
| 67 | </StackPanel> |
| 68 | </chrome:AttentionZoneContainer> |
| 69 | </UserControl> |
| 70 | |