From cbce282f3858503e4f5571c1ae9f090c910e6fc8 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 20 Jan 2021 02:02:46 +0200 Subject: PPC MidTank Levels & Emulator. --- .../Converters/LiquidTypeToBrushConverter.cs | 20 ++++++++++---------- .../Tango.PPC.Maintenance/Views/MaintenanceView.xaml | 2 +- .../PPC/Tango.PPC.Common/Resources/Colors.xaml | 6 +++--- .../Tango.Emulations/Emulators/MachineEmulator.cs | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'Software/Visual_Studio') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Converters/LiquidTypeToBrushConverter.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Converters/LiquidTypeToBrushConverter.cs index c33efdca6..3b10b7bdf 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Converters/LiquidTypeToBrushConverter.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Converters/LiquidTypeToBrushConverter.cs @@ -44,20 +44,20 @@ namespace Tango.PPC.Maintenance.Converters return cleanerBrush; } case BL.Enumerations.LiquidTypes.Yellow: - { - return new SolidColorBrush(Color.FromRgb(232, 225, 12)); - } + return Application.Current.Resources["TangoYellowInkBrush"] as Brush; case BL.Enumerations.LiquidTypes.Cyan: - { - return new SolidColorBrush(Color.FromRgb(22, 98, 235)); - } + return Application.Current.Resources["TangoCyanInkBrush"] as Brush; case BL.Enumerations.LiquidTypes.Magenta: - { - return new SolidColorBrush(Color.FromRgb(237, 0, 140)); - } + return Application.Current.Resources["TangoMagentaInkBrush"] as Brush; + case BL.Enumerations.LiquidTypes.LightCyan: + return Application.Current.Resources["TangoLightCyanInkBrush"] as Brush; + case BL.Enumerations.LiquidTypes.LightMagenta: + return Application.Current.Resources["TangoLightMagentaInkBrush"] as Brush; + case BL.Enumerations.LiquidTypes.LightYellow: + return Application.Current.Resources["TangoLightYellowInkBrush"] as Brush; } - + return new SolidColorBrush(type.LiquidTypeColor); } return null; diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Views/MaintenanceView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Views/MaintenanceView.xaml index 887a2e86f..9d88f59ca 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Views/MaintenanceView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Maintenance/Views/MaintenanceView.xaml @@ -34,7 +34,7 @@ - + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml index d964653a9..816d72de3 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Colors.xaml @@ -13,9 +13,9 @@ - - - + + + \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs index 6360b7bbc..5e56191da 100644 --- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs +++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs @@ -158,7 +158,7 @@ namespace Tango.Emulations.Emulators MachineStatus = new MachineStatus(); MachineStatus.State = MachineState.Ready; - for (int i = 0; i < 8; i++) + for (int i = 0; i < 9; i++) { MachineStatus.IDSPacksLevels.Add(new IDSPackLevel() { -- cgit v1.3.1