Add Reduced Motion for Notifications (#1732)

When Reduced Motion configuration is on, the expiry progressbar is
removed, and instead a pie on top right is shown, and relative time
update interval increases to 15 seconds. Progress wave animation also is
suppressed.
This commit is contained in:
srkizer 2024-03-21 05:53:20 +09:00 committed by GitHub
parent fb60ac5b4b
commit 95defa200f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 185 additions and 49 deletions

View file

@ -130,6 +130,12 @@ public class SettingsTabLook : SettingsTab
Loc.Localize("DalamudSettingInstallerOpenDefaultHint", "This will allow you to open the Plugin Installer to the \"Installed Plugins\" tab by default, instead of the \"Available Plugins\" tab."),
c => c.PluginInstallerOpen == PluginInstallerWindow.PluginInstallerOpenKind.InstalledPlugins,
(v, c) => c.PluginInstallerOpen = v ? PluginInstallerWindow.PluginInstallerOpenKind.InstalledPlugins : PluginInstallerWindow.PluginInstallerOpenKind.AllPlugins),
new SettingsEntry<bool>(
Loc.Localize("DalamudSettingReducedMotion", "Reduce motions"),
Loc.Localize("DalamudSettingReducedMotion", "This will suppress certain animations from Dalamud, such as the notification popup."),
c => c.ReduceMotions,
(v, c) => c.ReduceMotions = v),
};
public override string Title => Loc.Localize("DalamudSettingsVisual", "Look & Feel");