From ca939f045cedbb050c8c7b80a89c04a2460694ef Mon Sep 17 00:00:00 2001 From: dbuechel Date: Fri, 22 Mar 2019 10:09:51 +0100 Subject: [PATCH] SEBWIN-141: Touch-optimized main elements of mobile user interface, next up: Custom message box implementation. --- SafeExamBrowser.Client/CompositionRoot.cs | 18 ++++++----- .../BrowserWindow.xaml | 20 ++++++------ .../Controls/ActionCenterClock.xaml | 4 +-- .../ActionCenterKeyboardLayoutControl.xaml | 2 +- .../ActionCenterNotificationButton.xaml | 2 +- .../Controls/ActionCenterQuitButton.xaml | 2 +- .../ActionCenterWirelessNetworkControl.xaml | 2 +- .../LogWindow.xaml | 3 +- .../PasswordDialog.xaml | 31 ++++++++++--------- .../PasswordDialog.xaml.cs | 23 ++++++++++++-- .../SplashScreen.xaml | 10 +++--- .../SplashScreen.xaml.cs | 2 +- 12 files changed, 72 insertions(+), 47 deletions(-) diff --git a/SafeExamBrowser.Client/CompositionRoot.cs b/SafeExamBrowser.Client/CompositionRoot.cs index 5cb68264..f5760e95 100644 --- a/SafeExamBrowser.Client/CompositionRoot.cs +++ b/SafeExamBrowser.Client/CompositionRoot.cs @@ -44,6 +44,8 @@ using SafeExamBrowser.Monitoring.Processes; using SafeExamBrowser.Monitoring.Windows; using SafeExamBrowser.SystemComponents; using SafeExamBrowser.WindowsApi; +using Desktop = SafeExamBrowser.UserInterface.Desktop; +using Mobile = SafeExamBrowser.UserInterface.Mobile; namespace SafeExamBrowser.Client { @@ -293,9 +295,9 @@ namespace SafeExamBrowser.Client switch (uiMode) { case UserInterfaceMode.Mobile: - return new UserInterface.Mobile.ActionCenter(); + return new Mobile.ActionCenter(); default: - return new UserInterface.Desktop.ActionCenter(); + return new Desktop.ActionCenter(); } } @@ -304,9 +306,9 @@ namespace SafeExamBrowser.Client switch (uiMode) { case UserInterfaceMode.Mobile: - return new UserInterface.Mobile.MessageBox(text); + return new Mobile.MessageBox(text); default: - return new UserInterface.Desktop.MessageBox(text); + return new Desktop.MessageBox(text); } } @@ -315,9 +317,9 @@ namespace SafeExamBrowser.Client switch (uiMode) { case UserInterfaceMode.Mobile: - return new UserInterface.Mobile.Taskbar(new ModuleLogger(logger, nameof(UserInterface.Mobile.Taskbar))); + return new Mobile.Taskbar(new ModuleLogger(logger, nameof(Mobile.Taskbar))); default: - return new UserInterface.Desktop.Taskbar(new ModuleLogger(logger, nameof(UserInterface.Desktop.Taskbar))); + return new Desktop.Taskbar(new ModuleLogger(logger, nameof(Desktop.Taskbar))); } } @@ -326,9 +328,9 @@ namespace SafeExamBrowser.Client switch (uiMode) { case UserInterfaceMode.Mobile: - return new UserInterface.Mobile.UserInterfaceFactory(text); + return new Mobile.UserInterfaceFactory(text); default: - return new UserInterface.Desktop.UserInterfaceFactory(text); + return new Desktop.UserInterfaceFactory(text); } } diff --git a/SafeExamBrowser.UserInterface.Mobile/BrowserWindow.xaml b/SafeExamBrowser.UserInterface.Mobile/BrowserWindow.xaml index bdc6ece4..8e66f36a 100644 --- a/SafeExamBrowser.UserInterface.Mobile/BrowserWindow.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/BrowserWindow.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:fa="http://schemas.fontawesome.io/icons/" xmlns:local="clr-namespace:SafeExamBrowser.UserInterface.Mobile.Controls" - mc:Ignorable="d" Title="BrowserWindow" Background="#FFF0F0F0" Height="500" Width="750" MinHeight="250" MinWidth="250" Icon=".\Images\SafeExamBrowser.ico"> + mc:Ignorable="d" Title="BrowserWindow" Background="#FFF0F0F0" FontSize="16" Height="500" Width="750" MinHeight="250" MinWidth="250" Icon=".\Images\SafeExamBrowser.ico"> @@ -29,18 +29,18 @@ - diff --git a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterKeyboardLayoutControl.xaml b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterKeyboardLayoutControl.xaml index d2afcb4a..2c427e6f 100644 --- a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterKeyboardLayoutControl.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterKeyboardLayoutControl.xaml @@ -30,7 +30,7 @@ - + diff --git a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterNotificationButton.xaml b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterNotificationButton.xaml index 578d84a0..8c296372 100644 --- a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterNotificationButton.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterNotificationButton.xaml @@ -21,7 +21,7 @@ - + diff --git a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterQuitButton.xaml b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterQuitButton.xaml index 9d924722..648b40b4 100644 --- a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterQuitButton.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterQuitButton.xaml @@ -21,7 +21,7 @@ - + diff --git a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterWirelessNetworkControl.xaml b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterWirelessNetworkControl.xaml index 5bdf5973..5c59c893 100644 --- a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterWirelessNetworkControl.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenterWirelessNetworkControl.xaml @@ -35,7 +35,7 @@ - + diff --git a/SafeExamBrowser.UserInterface.Mobile/LogWindow.xaml b/SafeExamBrowser.UserInterface.Mobile/LogWindow.xaml index fa88dc2a..7350b639 100644 --- a/SafeExamBrowser.UserInterface.Mobile/LogWindow.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/LogWindow.xaml @@ -14,7 +14,8 @@ - + diff --git a/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml b/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml index 45d7b52f..24a93a96 100644 --- a/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml +++ b/SafeExamBrowser.UserInterface.Mobile/PasswordDialog.xaml @@ -5,7 +5,7 @@ xmlns:fa="http://schemas.fontawesome.io/icons/" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:SafeExamBrowser.UserInterface.Mobile" - mc:Ignorable="d" Height="200" Width="450" ResizeMode="NoResize" Topmost="True"> + mc:Ignorable="d" Background="Transparent" Height="750" Width="1000" FontSize="16" ResizeMode="NoResize" Topmost="True" AllowsTransparency="True" WindowStyle="None"> @@ -13,32 +13,35 @@ - + - - + + + + - - + + + - - + + - - + + - - -