Skip to content

Commit 65e497e

Browse files
committed
通知页
1 parent b9ec995 commit 65e497e

20 files changed

Lines changed: 1639 additions & 37 deletions

SecRandom/App.Consts.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ public partial class App
1919
["settings.draw.lottery"] = () => Langs.SettingsPages.DrawSettingsPage.Resources.LotterySettings,
2020
["settings.draw.faceDetector"] = () => Langs.SettingsPages.DrawSettingsPage.Resources.FaceDetectorSettings,
2121
["settings.floatingWindow"] = () => Langs.Common.Resources.FloatingWindowManagement,
22-
["settings.notificationSettings"] = () => Langs.Common.Resources.NotificationSettings,
22+
["settings.notification.rollCall"] = () => Langs.Common.Resources.RollCallNotificationSettings,
23+
["settings.notification.quickDraw"] = () => Langs.Common.Resources.QuickDrawNotificationSettings,
24+
["settings.notification.lottery"] = () => Langs.Common.Resources.LotteryNotificationSettings,
2325
["settings.securitySettings"] = () => Langs.Common.Resources.SecuritySettings,
2426
["settings.linkageSettings"] = () => Langs.Common.Resources.LinkageSettings,
2527
["settings.voiceSettings"] = () => Langs.Common.Resources.VoiceSettings,

SecRandom/App.axaml.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
using SecRandom.Views.SettingsPages;
3434
using SecRandom.Views.SettingsPages.ListManagementSubPages;
3535
using SecRandom.Views.SettingsPages.ListManagementSubPages.TablePreview;
36+
using SecRandom.Views.SettingsPages.NotificationSettingsSubPages;
3637

3738
namespace SecRandom;
3839

@@ -156,7 +157,15 @@ private static void BuildHost()
156157
services.AddSettingsPage<FaceDetectorSettingsSubPage>(Langs.SettingsPages.DrawSettingsPage.Resources.FaceDetectorSettings);
157158

158159
services.AddSettingsPage<FloatingWindowPage>(Langs.Common.Resources.FloatingWindowManagement);
159-
services.AddSettingsPage<NotificationSettingsPage>(Langs.Common.Resources.NotificationSettings);
160+
161+
services.AddGroup(new GroupInfo(Langs.Common.Resources.NotificationSettings, "settings.notification", "\uE7E3"));
162+
services.AddSettingsPage<RollCallNotificationSettingsPage>(Langs.SettingsPages.NotificationSettingsPage.Resources.RollCallNotificationSettings);
163+
services.AddKeyedTransient<UserControl, RollCallNotificationSettingsPage>("settings.notification.rollCall");
164+
services.AddSettingsPage<QuickDrawNotificationSettingsPage>(Langs.SettingsPages.NotificationSettingsPage.Resources.QuickDrawNotificationSettings);
165+
services.AddKeyedTransient<UserControl, QuickDrawNotificationSettingsPage>("settings.notification.quickDraw");
166+
services.AddSettingsPage<LotteryNotificationSettingsPage>(Langs.SettingsPages.NotificationSettingsPage.Resources.LotteryNotificationSettings);
167+
services.AddKeyedTransient<UserControl, LotteryNotificationSettingsPage>("settings.notification.lottery");
168+
160169
services.AddSettingsPage<SecuritySettingsPage>(Langs.Common.Resources.SecuritySettings);
161170
services.AddSettingsPage<LinkageSettingsPage>(Langs.Common.Resources.LinkageSettings);
162171
services.AddSettingsPage<VoiceSettingsPage>(Langs.Common.Resources.VoiceSettings);

SecRandom/Langs/Common/Resources.Designer.cs

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SecRandom/Langs/Common/Resources.en-us.resx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
<data name="NotificationSettings" xml:space="preserve">
4444
<value>Notification Settings</value>
4545
</data>
46+
<data name="RollCallNotificationSettings" xml:space="preserve">
47+
<value>Picking Notification Settings</value>
48+
</data>
49+
<data name="QuickDrawNotificationSettings" xml:space="preserve">
50+
<value>Quick Pick Notification Settings</value>
51+
</data>
52+
<data name="LotteryNotificationSettings" xml:space="preserve">
53+
<value>Lottery Notification Settings</value>
54+
</data>
4655
<data name="SecuritySettings" xml:space="preserve">
4756
<value>Security Settings</value>
4857
</data>

SecRandom/Langs/Common/Resources.resx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
<data name="NotificationSettings" xml:space="preserve">
5656
<value>通知设置</value>
5757
</data>
58+
<data name="RollCallNotificationSettings" xml:space="preserve">
59+
<value>点名通知设置</value>
60+
</data>
61+
<data name="QuickDrawNotificationSettings" xml:space="preserve">
62+
<value>闪抽通知设置</value>
63+
</data>
64+
<data name="LotteryNotificationSettings" xml:space="preserve">
65+
<value>抽奖通知设置</value>
66+
</data>
5867
<data name="SecuritySettings" xml:space="preserve">
5968
<value>安全设置</value>
6069
</data>

0 commit comments

Comments
 (0)