diff --git a/CPAP-Exporter.UI/CPAP-Exporter.UI.csproj b/CPAP-Exporter.UI/CPAP-Exporter.UI.csproj index e73b6b7..ae189de 100644 --- a/CPAP-Exporter.UI/CPAP-Exporter.UI.csproj +++ b/CPAP-Exporter.UI/CPAP-Exporter.UI.csproj @@ -25,6 +25,9 @@ + + + @@ -54,6 +57,9 @@ + + + @@ -77,6 +83,9 @@ + + + @@ -96,6 +105,9 @@ + + + diff --git a/CPAP-Exporter.UI/Images/Menu.Icon.Dark.png b/CPAP-Exporter.UI/Images/Menu.Icon.Dark.png new file mode 100644 index 0000000..5960a56 Binary files /dev/null and b/CPAP-Exporter.UI/Images/Menu.Icon.Dark.png differ diff --git a/CPAP-Exporter.UI/Images/Menu.Icon.Light.png b/CPAP-Exporter.UI/Images/Menu.Icon.Light.png new file mode 100644 index 0000000..ab3a51f Binary files /dev/null and b/CPAP-Exporter.UI/Images/Menu.Icon.Light.png differ diff --git a/CPAP-Exporter.UI/Images/Menu.Icon.Selected.png b/CPAP-Exporter.UI/Images/Menu.Icon.Selected.png new file mode 100644 index 0000000..ef905ea Binary files /dev/null and b/CPAP-Exporter.UI/Images/Menu.Icon.Selected.png differ diff --git a/CPAP-Exporter.UI/Images/Settings.Icon.Dark.png b/CPAP-Exporter.UI/Images/Settings.Icon.Dark.png new file mode 100644 index 0000000..e45cf78 Binary files /dev/null and b/CPAP-Exporter.UI/Images/Settings.Icon.Dark.png differ diff --git a/CPAP-Exporter.UI/Images/Settings.Icon.Light.png b/CPAP-Exporter.UI/Images/Settings.Icon.Light.png new file mode 100644 index 0000000..70df889 Binary files /dev/null and b/CPAP-Exporter.UI/Images/Settings.Icon.Light.png differ diff --git a/CPAP-Exporter.UI/Images/Settings.Icon.Selected.png b/CPAP-Exporter.UI/Images/Settings.Icon.Selected.png new file mode 100644 index 0000000..5bafad0 Binary files /dev/null and b/CPAP-Exporter.UI/Images/Settings.Icon.Selected.png differ diff --git a/CPAP-Exporter.UI/Infrastructure/BaseClasses/PageViewModel.cs b/CPAP-Exporter.UI/Infrastructure/BaseClasses/PageViewModel.cs index 533ec0c..80b9c40 100644 --- a/CPAP-Exporter.UI/Infrastructure/BaseClasses/PageViewModel.cs +++ b/CPAP-Exporter.UI/Infrastructure/BaseClasses/PageViewModel.cs @@ -10,6 +10,7 @@ public class PageViewModel : ViewModel, IValidatable private IValidatable validationProvider; private object statusContent; private DateTime becameVisible; + private double reservedNotificationHeight; #endregion @@ -88,6 +89,12 @@ public DateTime BecameVisible set => this.SetPropertyValue(ref this.becameVisible, value, nameof(this.BecameVisible)); } + public double ReservedNotificationHeight + { + get => this.reservedNotificationHeight; + set => this.SetPropertyValue(ref this.reservedNotificationHeight, value, nameof(this.ReservedNotificationHeight)); + } + public object StatusContent { get => this.statusContent; @@ -103,6 +110,11 @@ public virtual bool Validate() return true; } + public virtual void BecomeVisible() + { + this.BecameVisible = DateTime.Now; + } + #region Events /// diff --git a/CPAP-Exporter.UI/Infrastructure/UserSettings.cs b/CPAP-Exporter.UI/Infrastructure/UserSettings.cs index bb9fb3d..4da3226 100644 --- a/CPAP-Exporter.UI/Infrastructure/UserSettings.cs +++ b/CPAP-Exporter.UI/Infrastructure/UserSettings.cs @@ -46,6 +46,7 @@ public UserSettings() { public bool IsFlowReductionDescriptionExpanded { get; set; } + public bool IsNavigationDrawerExpanded { get; set; } /// /// Gets the fully qualified name of the settings file. diff --git a/CPAP-Exporter.UI/Resources.Designer.cs b/CPAP-Exporter.UI/Resources.Designer.cs index 2345dc3..533698f 100644 --- a/CPAP-Exporter.UI/Resources.Designer.cs +++ b/CPAP-Exporter.UI/Resources.Designer.cs @@ -384,6 +384,24 @@ public static string MV { } } + /// + /// Looks up a localized string similar to Expand or close the navigation drawer. + /// + public static string Nav_ExpandDrawer_TT { + get { + return ResourceManager.GetString("Nav_ExpandDrawer_TT", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Export. + /// + public static string Nav_Export { + get { + return ResourceManager.GetString("Nav_Export", resourceCulture); + } + } + /// /// Looks up a localized string similar to Write your data to disc. /// @@ -393,6 +411,15 @@ public static string Nav_Export_TT { } } + /// + /// Looks up a localized string similar to Export Settings. + /// + public static string Nav_ExportSettings_TT { + get { + return ResourceManager.GetString("Nav_ExportSettings_TT", resourceCulture); + } + } + /// /// Looks up a localized string similar to Help. /// @@ -402,6 +429,15 @@ public static string Nav_Help_TT { } } + /// + /// Looks up a localized string similar to Open PAP. + /// + public static string Nav_Open { + get { + return ResourceManager.GetString("Nav_Open", resourceCulture); + } + } + /// /// Looks up a localized string similar to Select PAP files to open and export. /// @@ -411,6 +447,15 @@ public static string Nav_Open_TT { } } + /// + /// Looks up a localized string similar to Select Nights. + /// + public static string Nav_SelectDays { + get { + return ResourceManager.GetString("Nav_SelectDays", resourceCulture); + } + } + /// /// Looks up a localized string similar to Choose which night(s) to export. /// @@ -420,6 +465,15 @@ public static string Nav_SelectDays_TT { } } + /// + /// Looks up a localized string similar to Select Signals. + /// + public static string Nav_SelectSignals { + get { + return ResourceManager.GetString("Nav_SelectSignals", resourceCulture); + } + } + /// /// Looks up a localized string similar to Select which signals to export. /// diff --git a/CPAP-Exporter.UI/Resources.resx b/CPAP-Exporter.UI/Resources.resx index 16a00ea..f6ca901 100644 --- a/CPAP-Exporter.UI/Resources.resx +++ b/CPAP-Exporter.UI/Resources.resx @@ -339,4 +339,22 @@ Source Folder + + Open PAP + + + Export + + + Select Nights + + + Select Signals + + + Expand or close the navigation drawer + + + Export Settings + \ No newline at end of file diff --git a/CPAP-Exporter.UI/Styles.xaml b/CPAP-Exporter.UI/Styles.xaml index e9246a4..42dac0d 100644 --- a/CPAP-Exporter.UI/Styles.xaml +++ b/CPAP-Exporter.UI/Styles.xaml @@ -156,6 +156,19 @@ + + + +