From a6ebe1e48de8ba5e4d936c4825060a08f2695785 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Mon, 17 Feb 2020 19:13:04 +0200 Subject: Some more work on FSE --- Software/Graphics/FSE/Abstracts/abstract1.png | Bin 0 -> 497431 bytes Software/Graphics/FSE/Animations/preloader_1.gif | Bin 0 -> 100872 bytes Software/Graphics/FSE/Animations/preloader_2.gif | Bin 0 -> 338807 bytes .../FSE/Tango.FSE.Common/Images/machine_big.png | Bin 0 -> 43275 bytes .../FSE/Tango.FSE.Common/Images/machine_full.png | Bin 0 -> 217186 bytes .../FSE/Tango.FSE.Common/Images/machine_small.png | Bin 0 -> 16963 bytes .../FSE/Tango.FSE.Common/Images/twine_logo.png | Bin 0 -> 31115 bytes .../FSE/Tango.FSE.Common/Resources/Images.xaml | 10 ++++++ .../FSE/Tango.FSE.Common/Tango.FSE.Common.csproj | 15 ++++++++- .../FSE/Tango.FSE.Common/Themes/Generic.xaml | 1 + .../Tango.FSE.UI/Images/Abstracts/abstract1.png | Bin 0 -> 497431 bytes .../FSE/Tango.FSE.UI/Images/login.png | Bin 0 -> 6401 bytes .../Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml | 19 +++++++++++- .../FSE/Tango.FSE.UI/MainWindow.xaml.cs | 24 +++++++++++++++ .../FSE/Tango.FSE.UI/Tango.FSE.UI.csproj | 6 ++++ .../FSE/Tango.FSE.UI/Views/LoginView.xaml | 34 +++++++++++++++++---- 16 files changed, 101 insertions(+), 8 deletions(-) create mode 100644 Software/Graphics/FSE/Abstracts/abstract1.png create mode 100644 Software/Graphics/FSE/Animations/preloader_1.gif create mode 100644 Software/Graphics/FSE/Animations/preloader_2.gif create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_big.png create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_full.png create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_small.png create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.Common/Images/twine_logo.png create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Images.xaml create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.UI/Images/Abstracts/abstract1.png create mode 100644 Software/Visual_Studio/FSE/Tango.FSE.UI/Images/login.png (limited to 'Software') diff --git a/Software/Graphics/FSE/Abstracts/abstract1.png b/Software/Graphics/FSE/Abstracts/abstract1.png new file mode 100644 index 000000000..c2811f5cd Binary files /dev/null and b/Software/Graphics/FSE/Abstracts/abstract1.png differ diff --git a/Software/Graphics/FSE/Animations/preloader_1.gif b/Software/Graphics/FSE/Animations/preloader_1.gif new file mode 100644 index 000000000..2c6342836 Binary files /dev/null and b/Software/Graphics/FSE/Animations/preloader_1.gif differ diff --git a/Software/Graphics/FSE/Animations/preloader_2.gif b/Software/Graphics/FSE/Animations/preloader_2.gif new file mode 100644 index 000000000..796e1334b Binary files /dev/null and b/Software/Graphics/FSE/Animations/preloader_2.gif differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_big.png b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_big.png new file mode 100644 index 000000000..116e1e9c7 Binary files /dev/null and b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_big.png differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_full.png b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_full.png new file mode 100644 index 000000000..b3c497546 Binary files /dev/null and b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_full.png differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_small.png b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_small.png new file mode 100644 index 000000000..378879ce1 Binary files /dev/null and b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/machine_small.png differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/twine_logo.png b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/twine_logo.png new file mode 100644 index 000000000..9c9eb4abf Binary files /dev/null and b/Software/Visual_Studio/FSE/Tango.FSE.Common/Images/twine_logo.png differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Images.xaml b/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Images.xaml new file mode 100644 index 000000000..f72ae5675 --- /dev/null +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Images.xaml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj b/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj index 17bc35b80..2b8f0db0b 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Tango.FSE.Common.csproj @@ -107,6 +107,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + MSBuild:Compile Designer @@ -193,7 +197,16 @@ Tango.FSE.Web - + + + + + + + + + + nswag run "$(SolutionDir)Web\Tango.MachineService.Gateway\Nswag\GatewayClient.nswag" /variables:assembly="$(SolutionDir)Web\Tango.MachineService.Gateway\bin\Tango.MachineService.Gateway.dll",output="$(ProjectDir)Gateway\GatewayClient.cs" diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Themes/Generic.xaml b/Software/Visual_Studio/FSE/Tango.FSE.Common/Themes/Generic.xaml index ec131133e..39079d101 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Themes/Generic.xaml +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Themes/Generic.xaml @@ -7,6 +7,7 @@ + diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Images/Abstracts/abstract1.png b/Software/Visual_Studio/FSE/Tango.FSE.UI/Images/Abstracts/abstract1.png new file mode 100644 index 000000000..c2811f5cd Binary files /dev/null and b/Software/Visual_Studio/FSE/Tango.FSE.UI/Images/Abstracts/abstract1.png differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Images/login.png b/Software/Visual_Studio/FSE/Tango.FSE.UI/Images/login.png new file mode 100644 index 000000000..9f7d0b9ba Binary files /dev/null and b/Software/Visual_Studio/FSE/Tango.FSE.UI/Images/login.png differ diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml b/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml index ef62d08da..202476e90 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml @@ -14,9 +14,26 @@ Background="{StaticResource FSE_PrimaryBackgroundBrush}" TextElement.FontWeight="Medium" TextElement.FontSize="14" - TitleCharacterCasing="Normal" EnableDWMDropShadow="True" BorderThickness="1" BorderBrush="Gray" FontFamily="{StaticResource flexo}"> + TitleCharacterCasing="Normal" UseNoneWindowStyle="True" EnableDWMDropShadow="True" MinWidth="800" MinHeight="600" BorderThickness="1" BorderBrush="Gray" FontFamily="{StaticResource flexo}" WindowTitleBrush="{StaticResource PrimaryHueMidBrush}"> + + + + + + + + + + + diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml.cs index 28385d2dc..e192c8d89 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/MainWindow.xaml.cs @@ -27,6 +27,30 @@ namespace Tango.FSE.UI { Instance = this; InitializeComponent(); + + btnMinimize.Click += (_, __) => WindowState = WindowState.Minimized; + btnMaximize.Click += (_, __) => WindowState = WindowState == WindowState.Maximized ? WindowState = WindowState.Normal : WindowState = WindowState.Maximized; + btnClose.Click += (_, __) => Close(); + thumbTitle.DragDelta += ThumbTitle_DragDelta; + StateChanged += MainWindow_StateChanged; + } + + private void MainWindow_StateChanged(object sender, EventArgs e) + { + if (WindowState == WindowState.Maximized) + { + btnMaximizeIcon.Kind = MaterialDesignThemes.Wpf.PackIconKind.WindowRestore; + } + else if (WindowState == WindowState.Normal) + { + btnMaximizeIcon.Kind = MaterialDesignThemes.Wpf.PackIconKind.WindowMaximize; + } + } + + private void ThumbTitle_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e) + { + Left += e.HorizontalChange; + Top += e.VerticalChange; } } } diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Tango.FSE.UI.csproj b/Software/Visual_Studio/FSE/Tango.FSE.UI/Tango.FSE.UI.csproj index 820d20e5d..6b1f9f317 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Tango.FSE.UI.csproj +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Tango.FSE.UI.csproj @@ -207,6 +207,12 @@ Tango.FSE.Web + + + + + + diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/LoginView.xaml b/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/LoginView.xaml index d0959e6c3..8d2a398fd 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/LoginView.xaml +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Views/LoginView.xaml @@ -11,13 +11,35 @@ mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:LoginViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.LoginViewVM}"> - - - + + + + + + - + + Welcome + - - + + + + + + + + + + + + + + + + + + + -- cgit v1.3.1