Add configurable mail notification actions
This commit is contained in:
@@ -24,6 +24,7 @@ public static class Constants
|
||||
public const string ToastModeKey = nameof(ToastModeKey);
|
||||
public const string ToastModeMail = nameof(ToastModeMail);
|
||||
public const string ToastModeCalendar = nameof(ToastModeCalendar);
|
||||
public const string ToastDismissActionKey = nameof(ToastDismissActionKey);
|
||||
public const string ToastStoreUpdateActionKey = nameof(ToastStoreUpdateActionKey);
|
||||
public const string ToastStoreUpdateActionInstall = nameof(ToastStoreUpdateActionInstall);
|
||||
public const string ClientLogFile = "Client_.log";
|
||||
|
||||
@@ -19,6 +19,7 @@ public enum WinoPage
|
||||
AboutPage,
|
||||
PersonalizationPage,
|
||||
MessageListPage,
|
||||
MailNotificationSettingsPage,
|
||||
MailListPage,
|
||||
ReadComposePanePage,
|
||||
AppPreferencesPage,
|
||||
|
||||
@@ -192,6 +192,16 @@ public interface IPreferencesService : INotifyPropertyChanged
|
||||
/// </summary>
|
||||
Guid? StartupEntityId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: First action button displayed on mail toast notifications.
|
||||
/// </summary>
|
||||
MailOperation FirstMailNotificationAction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Second action button displayed on mail toast notifications.
|
||||
/// </summary>
|
||||
MailOperation SecondMailNotificationAction { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -68,6 +68,11 @@ public static class SettingsNavigationInfoProvider
|
||||
Translator.SettingsMessageList_Description,
|
||||
"\uE8C4",
|
||||
searchKeywords: Translator.SettingsSearch_MessageList_Keywords),
|
||||
new(WinoPage.MailNotificationSettingsPage,
|
||||
Translator.SettingsMailNotifications_Title,
|
||||
Translator.SettingsMailNotifications_Description,
|
||||
"\uE7F4",
|
||||
searchKeywords: Translator.SettingsSearch_MailNotifications_Keywords),
|
||||
new(WinoPage.ReadComposePanePage,
|
||||
Translator.SettingsReadComposePane_Title,
|
||||
Translator.SettingsReadComposePane_Description,
|
||||
@@ -149,6 +154,7 @@ public static class SettingsNavigationInfoProvider
|
||||
WinoPage.PersonalizationPage => Translator.SettingsPersonalization_Title,
|
||||
WinoPage.AboutPage => Translator.SettingsAbout_Title,
|
||||
WinoPage.MessageListPage => Translator.SettingsMessageList_Title,
|
||||
WinoPage.MailNotificationSettingsPage => Translator.SettingsMailNotifications_Title,
|
||||
WinoPage.ReadComposePanePage => Translator.SettingsReadComposePane_Title,
|
||||
WinoPage.AppPreferencesPage => Translator.SettingsAppPreferences_Title,
|
||||
WinoPage.CalendarSettingsPage => Translator.CalendarSettings_Preferences_Title,
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
"Buttons_Delete": "Delete",
|
||||
"Buttons_Deny": "Deny",
|
||||
"Buttons_Discard": "Discard",
|
||||
"Buttons_Dismiss": "Dismiss",
|
||||
"Buttons_Edit": "Edit",
|
||||
"Buttons_EnableImageRendering": "Enable",
|
||||
"Buttons_Multiselect": "Select Multiple",
|
||||
@@ -910,6 +911,14 @@
|
||||
"SettingsMarkAsRead_WhenSelected": "When selected",
|
||||
"SettingsMessageList_Description": "Change how your messages should be organized in mail list.",
|
||||
"SettingsMessageList_Title": "Message List",
|
||||
"SettingsMailNotifications_Title": "Notifications",
|
||||
"SettingsMailNotifications_Description": "Notification settings and preferences for mails.",
|
||||
"SettingsMailNotifications_Actions_Title": "App notification actions.",
|
||||
"SettingsMailNotifications_Actions_Description": "Customize the button behaviors on the notifications as you like.",
|
||||
"SettingsMailNotifications_FirstAction_Title": "First notification action",
|
||||
"SettingsMailNotifications_FirstAction_Description": "Choose the first button shown on mail notifications.",
|
||||
"SettingsMailNotifications_SecondAction_Title": "Second notification action",
|
||||
"SettingsMailNotifications_SecondAction_Description": "Choose the second button shown on mail notifications.",
|
||||
"SettingsNoAccountSetupMessage": "You didn't setup any accounts yet.",
|
||||
"SettingsNotifications_Description": "Turn on or off notifications for this account.",
|
||||
"SettingsNotifications_Title": "Notifications",
|
||||
@@ -946,6 +955,7 @@
|
||||
"SettingsSearch_About_Keywords": "about;version;website;privacy;github;donate;store;support",
|
||||
"SettingsSearch_KeyboardShortcuts_Keywords": "shortcut;shortcuts;hotkey;hotkeys;keyboard;keys",
|
||||
"SettingsSearch_MessageList_Keywords": "message;messages;list;threading;threads;avatar;preview;sender",
|
||||
"SettingsSearch_MailNotifications_Keywords": "mail;notification;notifications;toast;action;actions;reply;reply all;forward;archive;delete;junk;read",
|
||||
"SettingsSearch_ReadComposePane_Keywords": "reader;compose;composer;font;fonts;external content;display;reading",
|
||||
"SettingsSearch_SignatureAndEncryption_Keywords": "signature;signatures;encryption;certificate;certificates;s mime;smime;security",
|
||||
"SettingsSearch_Storage_Keywords": "storage;cache;caching;mime;disk;space;cleanup;clean up;local data",
|
||||
|
||||
Reference in New Issue
Block a user