diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-10-23 21:18:50 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-10-23 21:19:18 +0300 |
| commit | b428d54cba43ad40cf422ef6e69ccb85d8f4a146 (patch) | |
| tree | 1f58eb8341ef4c18367428fd0b3bf6cfa03a109e /Software/Visual_Studio/PPC/Tango.PPC.UI/Views | |
| parent | 9e5e3823681c24db9db82fc0ece8a90ecb917cf3 (diff) | |
| download | Tango-b428d54cba43ad40cf422ef6e69ccb85d8f4a146.tar.gz Tango-b428d54cba43ad40cf422ef6e69ccb85d8f4a146.zip | |
PPC. New images - backup_restore, machine-image and machine for X4.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views')
4 files changed, 48 insertions, 4 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/EmergencyView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/EmergencyView.xaml index f2b018bfa..e4f55915c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/EmergencyView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/EmergencyView.xaml @@ -20,7 +20,18 @@ <TextBlock Margin="0 8 0 0" FontSize="{StaticResource TangoTitleFontSize}">2. Release the emergency button.</TextBlock> <TextBlock Margin="0 8 0 0" FontSize="{StaticResource TangoTitleFontSize}">3. Press the power button to power up the system.</TextBlock> - <Image Source="../Images/machine-image.png" Width="500" HorizontalAlignment="Left" Margin="0 150 0 0" /> + <Image Width="500" HorizontalAlignment="Left" Margin="0 150 0 0" > + <Image.Style> + <Style TargetType="{x:Type Image}"> + <Setter Property="Source" Value="../Images/machine-image.png"/> + <Style.Triggers> + <DataTrigger Binding="{Binding BuildProvider.IsEureka}" Value="true"> + <Setter Property="Source" Value="../Images/machine-image-X4.png"/> + </DataTrigger> + </Style.Triggers> + </Style> + </Image.Style> + </Image> </StackPanel> </DockPanel> </Grid> diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/ExternalBridgeView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/ExternalBridgeView.xaml index fddd15fe7..7276d7d4c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/ExternalBridgeView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/ExternalBridgeView.xaml @@ -18,7 +18,18 @@ <localControls:MachineStatusControl Margin="0 0 0 -1" VerticalAlignment="Center" DataContext="{Binding MachineProvider.MachineOperator}" /> </Grid> <Grid HorizontalAlignment="Center" Margin="0 20 0 0"> - <Image Source="/Images/machine.png" Stretch="None" RenderOptions.BitmapScalingMode="Fant"></Image> + <Image Stretch="None" RenderOptions.BitmapScalingMode="Fant"> + <Image.Style> + <Style TargetType="{x:Type Image}"> + <Setter Property="Source" Value="/Images/machine.png"/> + <Style.Triggers> + <DataTrigger Binding="{Binding BuildProvider.IsEureka}" Value="true"> + <Setter Property="Source" Value="/Images/machine-X4.png"/> + </DataTrigger> + </Style.Triggers> + </Style> + </Image.Style> + </Image> <touch:TouchIcon Icon="Wifi" Foreground="{StaticResource TangoGreenBrush}" Width="30" Height="30" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0 0 40 45"> <touch:TouchIcon.Style> <Style TargetType="touch:TouchIcon"> diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingSystemView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingSystemView.xaml index dd4d2f5d5..abc2ce9c5 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingSystemView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingSystemView.xaml @@ -12,7 +12,18 @@ <Grid> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <Grid Margin="0 100 0 0"> - <Image Source="/Images/machine.png" Stretch="Uniform" Width="250" RenderOptions.BitmapScalingMode="Fant"></Image> + <Image Stretch="Uniform" Width="250" RenderOptions.BitmapScalingMode="Fant"> + <Image.Style> + <Style TargetType="{x:Type Image}"> + <Setter Property="Source" Value="/Images/machine.png"/> + <Style.Triggers> + <DataTrigger Binding="{Binding BuildProvider.IsEureka}" Value="true"> + <Setter Property="Source" Value="/Images/machine-X4.png"/> + </DataTrigger> + </Style.Triggers> + </Style> + </Image.Style> + </Image> <touch:TouchBusyIndicator Foreground="{StaticResource TangoGrayBrush}" Width="350" Height="350" IsIndeterminate="{Binding IsVisible}" /> </Grid> diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingView.xaml index 41017f629..9e7abdca2 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/RestartingView.xaml @@ -14,7 +14,18 @@ <Grid> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <Grid Margin="0 100 0 0"> - <Image Source="/Images/machine.png" Stretch="Uniform" Width="250" RenderOptions.BitmapScalingMode="Fant"></Image> + <Image Stretch="Uniform" Width="250" RenderOptions.BitmapScalingMode="Fant"> + <Image.Style> + <Style TargetType="{x:Type Image}"> + <Setter Property="Source" Value="/Images/machine.png"/> + <Style.Triggers> + <DataTrigger Binding="{Binding BuildProvider.IsEureka}" Value="true"> + <Setter Property="Source" Value="/Images/machine-X4.png"/> + </DataTrigger> + </Style.Triggers> + </Style> + </Image.Style> + </Image> <touch:TouchBusyIndicator Foreground="{StaticResource TangoGrayBrush}" Width="350" Height="350" IsIndeterminate="{Binding IsVisible}" /> </Grid> |
