diff --git a/Morphic.Client/App.xaml.cs b/Morphic.Client/App.xaml.cs index 1d55eebd..74362b5d 100644 --- a/Morphic.Client/App.xaml.cs +++ b/Morphic.Client/App.xaml.cs @@ -467,6 +467,7 @@ private void ConfigureServices(IServiceCollection services) services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddTransient(); services.AddSingleton(); services.AddTransient(); services.AddSingleton(s => BarPresets.Default); diff --git a/Morphic.Client/Dialogs/SettingsWindow.xaml b/Morphic.Client/Dialogs/SettingsWindow.xaml new file mode 100644 index 00000000..53087089 --- /dev/null +++ b/Morphic.Client/Dialogs/SettingsWindow.xaml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 100% + + + + + Show MorphicBar at start-up if shown at shutdown + + + + + + + Large + Small + + + + + + Docked + Not Docked + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remind me weekly + No reminders + + + + + + + + + + + diff --git a/Morphic.Client/Dialogs/SettingsWindow.xaml.cs b/Morphic.Client/Dialogs/SettingsWindow.xaml.cs new file mode 100644 index 00000000..8aeebdc7 --- /dev/null +++ b/Morphic.Client/Dialogs/SettingsWindow.xaml.cs @@ -0,0 +1,48 @@ +// Copyright 2021 Raising the Floor - International +// +// Licensed under the New BSD license. You may not use this file except in +// compliance with this License. +// +// You may obtain a copy of the License at +// https://github.com/GPII/universal/blob/master/LICENSE.txt +// +// The R&D leading to these results received funding from the: +// * Rehabilitation Services Administration, US Dept. of Education under +// grant H421A150006 (APCP) +// * National Institute on Disability, Independent Living, and +// Rehabilitation Research (NIDILRR) +// * Administration for Independent Living & Dept. of Education under grants +// H133E080022 (RERC-IT) and H133E130028/90RE5003-01-00 (UIITA-RERC) +// * European Union's Seventh Framework Programme (FP7/2007-2013) grant +// agreement nos. 289016 (Cloud4all) and 610510 (Prosperity4All) +// * William and Flora Hewlett Foundation +// * Ontario Ministry of Research and Innovation +// * Canadian Foundation for Innovation +// * Adobe Foundation +// * Consumer Electronics Association Foundation + +using System; +using System.Collections.Generic; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace Morphic.Client.Dialogs +{ + /// + /// Interaction logic for SettingsWindow.xaml + /// + public partial class SettingsWindow : Window + { + public SettingsWindow() + { + InitializeComponent(); + } + } +} diff --git a/Morphic.Client/Menu/MorphicMenu.xaml b/Morphic.Client/Menu/MorphicMenu.xaml index bd3b96ef..d2ac12b1 100644 --- a/Morphic.Client/Menu/MorphicMenu.xaml +++ b/Morphic.Client/Menu/MorphicMenu.xaml @@ -60,8 +60,9 @@ - - + + + \ No newline at end of file diff --git a/Morphic.Client/Menu/MorphicMenu.xaml.cs b/Morphic.Client/Menu/MorphicMenu.xaml.cs index b6807deb..af477c00 100644 --- a/Morphic.Client/Menu/MorphicMenu.xaml.cs +++ b/Morphic.Client/Menu/MorphicMenu.xaml.cs @@ -206,6 +206,15 @@ private async void StopKeyRepeatToggle(object sender, RoutedEventArgs e) } } + #region Settings + private async void SettingsItemClicked(object sender, RoutedEventArgs e) + { + var args = new Dictionary(); + await App.Current.Dialogs.OpenDialogAsync(args); + } + + #endregion + #region TrayIcon private MorphicHybridTrayIcon? _trayIcon = null;