From 41f5b6ba70a1bbbb980f34bc5d88160bdd1ec2c5 Mon Sep 17 00:00:00 2001 From: Nicola Pievani Date: Thu, 7 Sep 2023 14:59:39 +0200 Subject: [PATCH] Gestione colori interfaccia MachiningDB --- MachOptionWindow/MachOptionWindowV.xaml | 22 ++- MachinePanel/MachinePanelV.xaml.vb | 3 +- MachinePanel/MyMachinePanelVM.vb | 13 +- MyMachiningDbWindow/MyMachiningDbWindowV.xaml | 64 ++++++--- .../MyMachiningDbWindowV.xaml.vb | 28 ++-- MyToolDbWindow/MyToolDbWindowV.xaml | 127 +++++++++++------- MyToolDbWindow/MyToolDbWindowV.xaml.vb | 31 ++++- OptionPanel/RawPartTab/OmagPhotoV.xaml | 1 + OptionWindow/OptionWindowV.xaml | 12 +- Utility/OmagOFFICEDictionary.xaml | 20 ++- 10 files changed, 227 insertions(+), 94 deletions(-) diff --git a/MachOptionWindow/MachOptionWindowV.xaml b/MachOptionWindow/MachOptionWindowV.xaml index 94b3fa7..c8b9602 100644 --- a/MachOptionWindow/MachOptionWindowV.xaml +++ b/MachOptionWindow/MachOptionWindowV.xaml @@ -28,16 +28,19 @@ - + - + @@ -75,7 +78,8 @@ + Grid.Row="3" Grid.RowSpan="5" Visibility="{Binding Materials_Visibility}" + Style="{StaticResource GroupBoxOptionWnd}"> @@ -126,7 +130,8 @@ - + - + - + @@ -194,7 +201,8 @@ - + diff --git a/MachinePanel/MachinePanelV.xaml.vb b/MachinePanel/MachinePanelV.xaml.vb index 841ceab..2a56aff 100644 --- a/MachinePanel/MachinePanelV.xaml.vb +++ b/MachinePanel/MachinePanelV.xaml.vb @@ -1,3 +1,4 @@ -Public Class MachinePanelV + +Public Class MachinePanelV End Class diff --git a/MachinePanel/MyMachinePanelVM.vb b/MachinePanel/MyMachinePanelVM.vb index 8238ed6..efe37b1 100644 --- a/MachinePanel/MyMachinePanelVM.vb +++ b/MachinePanel/MyMachinePanelVM.vb @@ -122,6 +122,7 @@ Public Class MyMachinePanelVM Dim ToolDbWindowVM As New ToolDbWindowVM(CurrentMachine.sMachDir, CurrentMachine.sMachIniFile, OmagOFFICEMap.refSceneHostVM.MainScene.GetCtx(), "Stone", OmagOFFICEMap.refMainWindowVM.MainWindowM.nUserLevel > 5) Dim ToolDbWindowV As New ToolDbWindowV(Application.Current.MainWindow, ToolDbWindowVM) + 'Dim ToolDbWindowV As New MyToolDbWindowV(Application.Current.MainWindow, ToolDbWindowVM) If ToolDbWindowVM.MatType <> 0 Then ToolDbWindowV.Height = 640 ToolDbWindowV.Width = 1024 @@ -142,6 +143,7 @@ Public Class MyMachinePanelVM ''' Public Overrides Sub MachDb(ByVal param As Object) If Not VerifyMachinesDir(m_sMachinesRoot) Then Return + ' ricarico il database per intercettare eventuali aggiornamenti fatti da altre istanze del programma (se la cartella Machines è condivisa) If Not EgtMdbReload() Then EgtOutLog("Impossible reloading machining Db") @@ -149,7 +151,16 @@ Public Class MyMachinePanelVM Return End If Dim MachDbWindowVM As New EgtWPFLib5.MachiningDbWindowVM(CurrentMachine.sMachIniFile, OmagOFFICEMap.refSceneHostVM.MainScene.GetCtx(), "Stone", OmagOFFICEMap.refMainWindowVM.MainWindowM.nUserLevel > 5) - Dim MachDbWindowV As New EgtWPFLib5.MachiningDbWindowV(Application.Current.MainWindow, MachDbWindowVM) + ' Dim MachDbWindowV As New EgtWPFLib5.MachiningDbWindowV(Application.Current.MainWindow, MachDbWindowVM) + + ' definisco lo stile della pagina + MachDbWindowVM.TextForegroundTxBl = Brushes.White + MachDbWindowVM.BorderGrbThickness = 0.25 + MachDbWindowVM.TextBackgroundTxBx = DirectCast(New System.Windows.Media.BrushConverter().ConvertFromString("#1C1D22"), Brush) + MachDbWindowVM.TextForegroundTxBx = Brushes.White + + Dim MachDbWindowV As New MyMachiningDbWindowV(Application.Current.MainWindow, MachDbWindowVM) + If EgtWPFLib5.MachiningTreeViewItem.m_MatType <> 0 Then MachDbWindowV.Height = 768 diff --git a/MyMachiningDbWindow/MyMachiningDbWindowV.xaml b/MyMachiningDbWindow/MyMachiningDbWindowV.xaml index 454ea5b..70815c0 100644 --- a/MyMachiningDbWindow/MyMachiningDbWindowV.xaml +++ b/MyMachiningDbWindow/MyMachiningDbWindowV.xaml @@ -94,36 +94,61 @@ 71 - + - + - + - - + + - + @@ -71,6 +79,7 @@ @@ -146,6 +155,7 @@ diff --git a/Utility/OmagOFFICEDictionary.xaml b/Utility/OmagOFFICEDictionary.xaml index de3b1f3..ce1970a 100644 --- a/Utility/OmagOFFICEDictionary.xaml +++ b/Utility/OmagOFFICEDictionary.xaml @@ -53,7 +53,9 @@ 0.25 0.5 - + @@ -930,6 +932,15 @@ + + @@ -1017,4 +1028,11 @@ + +