add option for toastr location to themes

This commit is contained in:
RossAscends
2025-05-21 15:07:47 +09:00
parent 074ca4a55b
commit 87f547cd87
4 changed files with 70 additions and 2 deletions

View File

@ -321,7 +321,7 @@ toastr.options.timeOut = 4000; // How long the toast will display without user i
toastr.options.extendedTimeOut = 10000; // How long the toast will display after a user hovers over it
toastr.options.progressBar = true; // Visually indicate how long before a toast expires.
toastr.options.closeButton = true; // enable a close button
toastr.options.positionClass = 'toast-top-center'; // Where to position the toast container
//toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container
toastr.options.onHidden = () => {
// If we have any dialog still open, the last "hidden" toastr will remove the toastr-container. We need to keep it alive inside the dialog though
// so the toasts still show up inside there.
@ -7592,6 +7592,8 @@ export async function getSettings() {
// Apply theme toggles from power user settings
applyPowerUserSettings();
toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container
// Load character tags
loadTagsSettings(settings);