From 50dbdc5621f28aaffeba66344fc786b81cf7930b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 24 Jan 2021 13:27:39 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 10 +-- Library/_res/BDFDB.data.json | 35 ++++++-- Library/_res/BDFDB.raw.css | 89 ++++--------------- .../FriendNotifications.plugin.js | 8 +- .../GoogleTranslateOption.plugin.js | 16 ++-- .../ImageUtilities/ImageUtilities.plugin.js | 6 +- .../MessageUtilities.plugin.js | 2 +- Plugins/OldTitleBar/OldTitleBar.plugin.js | 21 +++-- Plugins/PluginRepo/PluginRepo.plugin.js | 2 +- .../ReadAllNotificationsButton.plugin.js | 2 +- Plugins/SpellCheck/SpellCheck.plugin.js | 2 +- .../SpotifyControls/SpotifyControls.plugin.js | 2 +- Plugins/ThemeRepo/ThemeRepo.plugin.js | 2 +- Plugins/ThemeSettings/ThemeSettings.plugin.js | 2 +- 14 files changed, 82 insertions(+), 117 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 7eafdfd9fe..d581723a93 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -701,7 +701,7 @@ module.exports = (_ => { let updateNotice = document.querySelector("#pluginNotice"); if (updateNotice) BDFDB.PluginUtils.removeUpdateNotice(pluginName, updateNotice); BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("toast_plugin_update_failed", pluginName), { - type: "error", + type: "danger", noPointer: true }); } @@ -1208,7 +1208,7 @@ module.exports = (_ => { if (config.textClassName) BDFDB.DOMUtils.addClass(noticeText, config.textClassName); if (config.css) BDFDB.DOMUtils.appendLocalStyle("BDFDBcustomNotificationBar" + id, config.css); if (config.style) notice.style = config.style; - if (config.html === true) noticeText.innerHTML = text; + if (config.html) noticeText.innerHTML = text; else { let link = document.createElement("a"); let newText = []; @@ -7316,7 +7316,7 @@ module.exports = (_ => { BDFDB.PluginUtils.checkAllUpdates().then(outdated => { toast.close(); if (outdated > 0) BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("update_check_complete_outdated", outdated), { - type: "error" + type: "danger" }); else BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStrings.update_check_complete, { type: "success" @@ -7821,14 +7821,14 @@ module.exports = (_ => { else { if (response.statusCode == 429) { BDFDB.NotificationUtils.toast("Too many requests, switching to backup", { - type: "error" + type: "danger" }); config.useBackup = true; BDFDB.DevUtils.generateLanguageStrings(strings, config); } else { BDFDB.NotificationUtils.toast("Failed to translate text", { - type: "error" + type: "danger" }); callback(""); } diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index d2c52d89db..2a551158e2 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -357,6 +357,9 @@ }, "icon": "" }, + "CHECKMARK_CIRCLE": { + "icon": "" + }, "CLOSE": { "defaultProps": { "width": 12, @@ -404,6 +407,9 @@ }, "icon": "" }, + "INFO": { + "icon": "" + }, "LEFT_CARET": { "icon": "" }, @@ -482,6 +488,9 @@ }, "TRASH": { "icon": "" + }, + "WARNING": { + "icon": "" } }, "CustomClassModules": { @@ -932,13 +941,18 @@ "wrapper": "wrapper-2AQieU" }, "Toast": { - "avatar": "toast-avatar", - "closing": "closing", - "custom": "toast-custom", - "icon": "icon", - "inner": "toast-inner", - "toast": "toast", - "toasts": "toasts" + "avatar": "avatar-3xmbmC", + "brand": "brand-WfDfzD", + "closing": "closing-K489s7", + "custom": "toast-WKsPgT", + "danger": "danger-O5wq9n", + "default": "default-XdNdIp", + "icon": "icon-OZgBPQ", + "info": "info-ujWH4-", + "text": "text-28VADE", + "toast": "toast-g4bfgI", + "toasts": "toasts-tApoHv", + "warning": "warning-qZNMsx" } }, "DiscordClassModules": { @@ -2678,11 +2692,16 @@ "titlesize16": ["UserPopout", "size16"], "toast": ["Toast", "toast"], "toastavatar": ["Toast", "avatar"], + "toastbrand": ["Toast", "brand"], "toastclosing": ["Toast", "closing"], "toastcustom": ["Toast", "custom"], + "toastdanger": ["Toast", "danger"], + "toastdefault": ["Toast", "default"], "toasticon": ["Toast", "icon"], - "toastinner": ["Toast", "inner"], + "toastinfo": ["Toast", "info"], "toasts": ["Toast", "toasts"], + "toasttext": ["Toast", "text"], + "toastwarning": ["Toast", "warning"], "tooltip": ["Tooltip", "tooltip"], "tooltipactivityicon": ["TooltipGuild", "activityIcon"], "tooltipblack": ["Tooltip", "tooltipBlack"], diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index fd5bc2c09d..f1243eda3d 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -1093,10 +1093,8 @@ img:not([src]), img[src=""], img[src="null"] { } } [REPLACE_CLASS_toast] { - background-color: var(--background-floating); border-radius: 5px; box-shadow: var(--elevation-medium); - color: var(--header-primary); margin-top: 10px; padding: 10px; opacity: 1; @@ -1113,107 +1111,52 @@ img:not([src]), img[src=""], img[src="null"] { opacity: 0; } } -[REPLACE_CLASS_toast][REPLACE_CLASS_toastclosing] { +[REPLACE_CLASS_toastclosing] { animation: toast-down 200ms ease; animation-fill-mode: forwards; opacity: 1; transform: translateY(-10px); } -[REPLACE_CLASS_toast] [REPLACE_CLASS_toastinner] { +[REPLACE_CLASS_toasttext] { display: flex; align-items: center; } -[REPLACE_CLASS_toast] [REPLACE_CLASS_toastavatar] { - margin-right: 5px; - width: 25px; - height: 25px; +[REPLACE_CLASS_toastavatar] { + margin-right: 6px; + width: 24px; + height: 24px; flex: 0 0 auto; background-size: cover; background-position: center; border-radius: 50%; } -[REPLACE_CLASS_toast][REPLACE_CLASS_toasticon] { +[REPLACE_CLASS_toasticon] { padding-left: 30px; background-position: 6px 50%; background-size: 20px 20px; background-repeat: no-repeat; } -[REPLACE_CLASS_toast][REPLACE_CLASS_toastcustom] { - color: #FFF; +[REPLACE_CLASS_toastdefault] { + background-color: var(--background-floating); + color: var(--header-primary); } -[REPLACE_CLASS_toast].toast-brand { +[REPLACE_CLASS_toastbrand] { background-color: var(--bdfdb-blurple); color: #FFF; } -[REPLACE_CLASS_toast].toast-brand[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjI3IDI3IDExNSAxMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMTEuMywxMjQuMWMwLDAtMy40LTQuMS02LjMtNy43YzEyLjYtMy41LDE3LjQtMTEuMywxNy40LTExLjMgYy00LDIuNi03LjcsNC40LTExLjEsNS42Yy00LjgsMi05LjUsMy4zLTE0LDQuMWMtOS4yLDEuNy0xNy42LDEuMy0yNC45LTAuMWMtNS41LTEtMTAuMi0yLjUtMTQuMS00LjFjLTIuMi0wLjgtNC42LTEuOS03LjEtMy4zIGMtMC4zLTAuMi0wLjYtMC4zLTAuOS0wLjVjLTAuMS0wLjEtMC4zLTAuMi0wLjQtMC4yYy0xLjctMS0yLjYtMS42LTIuNi0xLjZzNC42LDcuNiwxNi44LDExLjJjLTIuOSwzLjYtNi40LDcuOS02LjQsNy45IGMtMjEuMi0wLjYtMjkuMy0xNC41LTI5LjMtMTQuNWMwLTMwLjYsMTMuOC01NS40LDEzLjgtNTUuNGMxMy44LTEwLjMsMjYuOS0xMCwyNi45LTEwbDEsMS4xQzUyLjgsNTAuMyw0NSw1Ny45LDQ1LDU3LjkgczIuMS0xLjIsNS43LTIuN2MxMC4zLTQuNSwxOC40LTUuNywyMS44LTZjMC41LTAuMSwxLjEtMC4yLDEuNi0wLjJjNS45LTAuNywxMi41LTAuOSwxOS40LTAuMmM5LjEsMSwxOC45LDMuNywyOC45LDkuMSBjMCwwLTcuNS03LjItMjMuOS0xMi4xbDEuMy0xLjVjMCwwLDEzLjEtMC4zLDI2LjksMTBjMCwwLDEzLjgsMjQuOCwxMy44LDU1LjRDMTQwLjYsMTA5LjYsMTMyLjUsMTIzLjUsMTExLjMsMTI0LjF6IE0xMDEuNyw3OS43Yy01LjQsMC05LjgsNC43LTkuOCwxMC41YzAsNS44LDQuNCwxMC41LDkuOCwxMC41YzUuNCwwLDkuOC00LjcsOS44LTEwLjUgQzExMS41LDg0LjQsMTA3LjEsNzkuNywxMDEuNyw3OS43eiBNNjYuNyw3OS43Yy01LjQsMC05LjgsNC43LTkuOCwxMC41YzAsNS44LDQuNCwxMC41LDkuOCwxMC41YzUuNCwwLDkuOC00LjcsOS44LTEwLjUgQzc2LjUsODQuNCw3Mi4xLDc5LjcsNjYuNyw3OS43eiIvPjwvc3ZnPg==); -} -[REPLACE_CLASS_toast].toast-danger, -[REPLACE_CLASS_toast].toast-error { +[REPLACE_CLASS_toastdanger] { background-color: #F04747; color: #FFF; } -[REPLACE_CLASS_toast].toast-danger[REPLACE_CLASS_toasticon], -[REPLACE_CLASS_toast].toast-error[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTEyIDJDNi40NyAyIDIgNi40NyAyIDEyczQuNDcgMTAgMTAgMTAgMTAtNC40NyAxMC0xMFMxNy41MyAyIDEyIDJ6bTUgMTMuNTlMMTUuNTkgMTcgMTIgMTMuNDEgOC40MSAxNyA3IDE1LjU5IDEwLjU5IDEyIDcgOC40MSA4LjQxIDcgMTIgMTAuNTkgMTUuNTkgNyAxNyA4LjQxIDEzLjQxIDEyIDE3IDE1LjU5eiIvPiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PC9zdmc+); -} -[REPLACE_CLASS_toast].toast-default { - background-color: #F26522; - color: #FFF; -} -[REPLACE_CLASS_toast].toast-default[REPLACE_CLASS_toasticon] { - padding-left: 10px; -} -[REPLACE_CLASS_toast].toast-facebook { - background-color: #355089; - color: #FFF; -} -[REPLACE_CLASS_toast].toast-facebook[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9Ii01IC01IDEwMCAxMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PHBhdGggaWQ9IkZhY2Vib29rX194MjhfYWx0X3gyOV8iIGQ9Ik05MCwxNS4wMDFDOTAsNy4xMTksODIuODg0LDAsNzUsMEgxNUM3LjExNiwwLDAsNy4xMTksMCwxNS4wMDF2NTkuOTk4ICAgQzAsODIuODgxLDcuMTE2LDkwLDE1LjAwMSw5MEg0NVY1NkgzNFY0MWgxMXYtNS44NDRDNDUsMjUuMDc3LDUyLjU2OCwxNiw2MS44NzUsMTZINzR2MTVINjEuODc1QzYwLjU0OCwzMSw1OSwzMi42MTEsNTksMzUuMDI0VjQxICAgaDE1djE1SDU5djM0aDE2YzcuODg0LDAsMTUtNy4xMTksMTUtMTUuMDAxVjE1LjAwMXoiIGZpbGw9IndoaXRlIi8+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjwvc3ZnPg==); -} -[REPLACE_CLASS_toast].toast-info { +[REPLACE_CLASS_toastinfo] { background-color: #4A90E2; color: #FFF; } -[REPLACE_CLASS_toast].toast-info[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtNmgydjZ6bTAtOGgtMlY3aDJ2MnoiLz48L3N2Zz4=); -} -[REPLACE_CLASS_toast].toast-premium { - background-color: #202225; - color: #FFF; -} -[REPLACE_CLASS_toast].toast-premium[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iMjYiPiAgPHBhdGggZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOTYuMjgyNiA4LjYwMjc4ODI0bC0xLjIxNTUgOC4zOTAzNTI5NmMtLjI3NzUgMS45ODI2Mjc0LTIuNDY1NSAyLjkwMzMzMzMtNC40NzkgMi45MDMzMzMzLTEuODc1IDAtMy43MTU1LS45MjA3MDU5LTMuNDcyNS0yLjcyNTkyMTZsMS4yMTU1LTgu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jFoLjYzM2MuMTE0NSAwIC4yMjE1LjA1OTY0NzEuMjgzNS4xNTgwMzkybDQuNzAyIDcuNDkxMDU4OGMuMTI0LjE5NzI5NDIuMzM3NS4zMTY1ODgzLjU2NzUuMzE2NTg4M2g2LjA4MWMuNTQ1IDAgLjg2NDUtLjYyNTAxOTYuNTUyLTEuMDgwMjc0NWwtNC45MzQ1LTcuMTkxODA0Yy0uMTE4LS4xNzI4MjM1LS4wNTc1LS40MTI0MzEzLjEyOC0uNTA0NzA1OCAzLjE1MDUtMS41Njk2ODYzIDQuOTc5NS0zLjE3ODExNzcgNS41ODMtNy42NTAxMTc3LjY5MzUtNS44NzcwMTk2LTIuOTE3LTguNjM4MTE3NjMtNy45ODY1LTguNjM4MTE3NjMiLz48L3N2Zz4=); - background-size: 63px 16px; - padding-left: 73px; -} -[REPLACE_CLASS_toast].toast-spotify { - background-color: #1DB954; - color: #FFF; -} -[REPLACE_CLASS_toast].toast-spotify[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDUwOC41MiA1MDguNTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwOC41MiA1MDguNTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4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zODYgICAgIGMzMy42ODktOS4xODUsNjguNTg3LTEzLjg1NywxMDMuNjc0LTEzLjg1N2M2Mi44OTgsMCwxMjUuNDQ1LDE1LjI1NiwxODAuOTM4LDQ0LjExNCAgICAgQzQwNS4yOSwyODUuMjQ4LDQwOS4xOTksMjk3LjUxNiw0MDQuMDE5LDMwNy41Mjd6IE00MTcuNTI2LDIzMC44MzZjLTMuNDY0LDAtNy4wMjQtMC43OTUtMTAuMzYxLTIuNDQ3ICAgICBjLTYwLjIyOC0zMC4wMzQtMTI1LjA5Ni00NS4yMjYtMTkyLjc2MS00NS4yMjZjLTM1LjI3OSwwLTcwLjQzLDQuMjkxLTEwNC41MzMsMTIuNzEzYy0xMi41MjIsMy4wODMtMjUuMTQtNC41MTMtMjguMjIzLTE3LjAwNCAgICAgYy0zLjExNS0xMi40NTksNC41MTMtMjcuNTU1LDE3LjAwNC0zMC42MzhjMzcuNzI2LTkuMzc2LDc2LjY1OS0xNC4xMTEsMTE1LjcyLTE0LjExMWM3NC45NzUsMCwxNDYuODY3LDE2Ljg3NywyMTMuNTc4LDUwLjEyMSAgICAgYzExLjUzNyw1Ljc1MywxNi4yNDEsMTkuNzM3LDEwLjQ4OCwzMS4yNDJDNDM0LjMwOCwyMjMuNjUzLDQyNi4xMDgsMjMwLjgzNiw0MTcuNTI2LDIzMC44MzZ6IiBmaWxsPSIjRkZGRkZGIi8+CgkJPC9nPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=); -} -[REPLACE_CLASS_toast].toast-streamermode { - background-color: #593695; - color: #FFF; -} -[REPLACE_CLASS_toast].toast-streamermode[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSItMjUgLTI1IDU0MiA1NDIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ5MiA0OTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiPjxwYXRoIGQ9Ik00ODguMywxNDIuNXYyMDMuMWMwLDE1LjctMTcsMjUuNS0zMC42LDE3LjdsLTg0LjYtNDguOHYxMy45YzAsNDEuOC0zMy45LDc1LjctNzUuNyw3NS43SDc1LjdDMzMuOSw0MDQuMSwwLDM3MC4yLDAsMzI4LjQgICBWMTU5LjljMC00MS44LDMzLjktNzUuNyw3NS43LTc1LjdoMjIxLjhjNDEuOCwwLDc1LjcsMzMuOSw3NS43LDc1Ljd2MTMuOWw4NC42LTQ4LjhDNDcxLjMsMTE3LDQ4OC4zLDEyNi45LDQ4OC4zLDE0Mi41eiIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg==); -} -[REPLACE_CLASS_toast].toast-success { +[REPLACE_CLASS_toastsuccess] { background-color: #43B581; color: #FFF; } -[REPLACE_CLASS_toast].toast-success[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=); -} -[REPLACE_CLASS_toast].toast-warning, -[REPLACE_CLASS_toast].toast-warn { +[REPLACE_CLASS_toastwarning] { background-color: #FFA600; color: #FFF; -} -[REPLACE_CLASS_toast].toast-warning[REPLACE_CLASS_toasticon], -[REPLACE_CLASS_toast].toast-warn[REPLACE_CLASS_toasticon] { - background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMSAyMWgyMkwxMiAyIDEgMjF6bTEyLTNoLTJ2LTJoMnYyem0wLTRoLTJ2LTRoMnY0eiIvPjwvc3ZnPg==); -} +} \ No newline at end of file diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index ad897b81aa..c63981ba39 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -494,9 +494,9 @@ module.exports = (_ => { BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, { onClick: _ => { let userId = settingsPanel.props._node.querySelector(`.input-newstranger ` + BDFDB.dotCN.input).value.trim(); - if (userId == BDFDB.UserUtils.me.id) BDFDB.NotificationUtils.toast("Are you seriously trying to stalk yourself?", {type: "error"}); - else if (friendIds.includes(userId)) BDFDB.NotificationUtils.toast("User is already a friend of yours, please use the 'Friend-List' area to configure them", {type: "error"}); - else if (Object.keys(nonFriends).includes(userId)) BDFDB.NotificationUtils.toast("User is already being observed as a 'Stranger'", {type: "error"}); + if (userId == BDFDB.UserUtils.me.id) BDFDB.NotificationUtils.toast("Are you seriously trying to stalk yourself?", {type: "danger"}); + else if (friendIds.includes(userId)) BDFDB.NotificationUtils.toast("User is already a friend of yours, please use the 'Friend-List' area to configure them", {type: "danger"}); + else if (Object.keys(nonFriends).includes(userId)) BDFDB.NotificationUtils.toast("User is already being observed as a 'Stranger'", {type: "danger"}); else { let user = /.+#[0-9]{4}/.test(userId) ? BDFDB.LibraryModules.UserStore.findByTag(userId.split("#").slice(0, -1).join("#"), userId.split("#").pop()) : BDFDB.LibraryModules.UserStore.getUser(userId); if (user) { @@ -504,7 +504,7 @@ module.exports = (_ => { BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates); this.SettingsUpdated = true; } - else BDFDB.NotificationUtils.toast("Please enter a valid UserID of a user that has been loaded in your client", {type: "error"}); + else BDFDB.NotificationUtils.toast("Please enter a valid UserID of a user that has been loaded in your client", {type: "danger"}); } }, children: BDFDB.LanguageUtils.LanguageStrings.ADD diff --git a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js index ee402fbee5..689edf59bd 100644 --- a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js +++ b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js @@ -659,7 +659,7 @@ module.exports = (_ => { toast.interval = BDFDB.TimeUtils.interval(_ => { if (timer++ > 40) { finishTranslation(""); - BDFDB.NotificationUtils.toast("Failed to translate text. Try another Translate Engine.", {type: "error"}); + BDFDB.NotificationUtils.toast("Failed to translate text. Try another Translate Engine.", {type: "danger"}); } else toast.textContent = toast.textContent.indexOf(".....") > -1 ? "Translating. Please wait" : toast.textContent + "."; }, 500); @@ -727,8 +727,8 @@ module.exports = (_ => { catch (err) {callback("");} } else { - if (response.statusCode == 429) BDFDB_Global.NotificationUtils.toast("Failed to translate text. Request Limit per Hour is reached. Choose another Translate Engine.", {type: "error"}); - else BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server might be down. Try another Translate Engine.", {type: "error"}); + if (response.statusCode == 429) BDFDB_Global.NotificationUtils.toast("Failed to translate text. Request Limit per Hour is reached. Choose another Translate Engine.", {type: "danger"}); + else BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server might be down. Try another Translate Engine.", {type: "danger"}); callback(""); } }); @@ -764,7 +764,7 @@ module.exports = (_ => { catch (err) {callback("");} } else { - BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server is down or API-key outdated. Try another Translate Engine.", {type: "error"}); + BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server is down or API-key outdated. Try another Translate Engine.", {type: "danger"}); callback(""); } }); @@ -800,11 +800,11 @@ module.exports = (_ => { else callback(""); } if (result && result.indexOf('code="408"') > -1) { - BDFDB.NotificationUtils.toast("Failed to translate text. Monthly rate limit reached. Choose another Translate Engine", {type: "error"}); + BDFDB.NotificationUtils.toast("Failed to translate text. Monthly rate limit reached. Choose another Translate Engine", {type: "danger"}); callback(""); } else { - BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server is down or API-key outdated. Try another Translate Engine.", {type: "error"}); + BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server is down or API-key outdated. Try another Translate Engine.", {type: "danger"}); callback(""); } }); @@ -832,7 +832,7 @@ module.exports = (_ => { catch (err) {callback("");} } else { - BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server is down, daily limited reached or API-key outdated. Try another Translate Engine.", {type: "error"}); + BDFDB.NotificationUtils.toast("Failed to translate text. Translation Server is down, daily limited reached or API-key outdated. Try another Translate Engine.", {type: "danger"}); callback(""); } }); @@ -891,7 +891,7 @@ module.exports = (_ => { } } } - else BDFDB.NotificationUtils.toast("Invalid binary format. Only use 0s and 1s.", {type: "error"}); + else BDFDB.NotificationUtils.toast("Invalid binary format. Only use 0s and 1s.", {type: "danger"}); return string; } diff --git a/Plugins/ImageUtilities/ImageUtilities.plugin.js b/Plugins/ImageUtilities/ImageUtilities.plugin.js index 598b21ff24..f0d75d83b3 100644 --- a/Plugins/ImageUtilities/ImageUtilities.plugin.js +++ b/Plugins/ImageUtilities/ImageUtilities.plugin.js @@ -950,10 +950,10 @@ module.exports = (_ => { downloadImage (url, path) { url = url.startsWith("/assets") ? (window.location.origin + url) : url; BDFDB.LibraryRequires.request(url, {encoding: null}, (error, response, body) => { - if (error) BDFDB.NotificationUtils.toast(this.labels.toast_saveimage_failed.replace("{{path}}", path), {type: "error"}); + if (error) BDFDB.NotificationUtils.toast(this.labels.toast_saveimage_failed.replace("{{path}}", path), {type: "danger"}); else { BDFDB.LibraryRequires.fs.writeFile(this.getFileName(path, url.split("/").pop().split(".").slice(0, -1).join("."), response.headers["content-type"].split("/").pop().split("+")[0], 0), body, error => { - if (error) BDFDB.NotificationUtils.toast(this.labels.toast_saveimage_failed.replace("{{path}}", path), {type: "error"}); + if (error) BDFDB.NotificationUtils.toast(this.labels.toast_saveimage_failed.replace("{{path}}", path), {type: "danger"}); else BDFDB.NotificationUtils.toast(this.labels.toast_saveimage_success.replace("{{path}}", path), {type: "success"}); }); } @@ -974,7 +974,7 @@ module.exports = (_ => { copyImage (url) { BDFDB.LibraryRequires.request(url, {encoding: null}, (error, response, buffer) => { - if (error) BDFDB.NotificationUtils.toast(this.labels.toast_copyimage_failed, {type: "error"}); + if (error) BDFDB.NotificationUtils.toast(this.labels.toast_copyimage_failed, {type: "danger"}); else if (buffer) { if (BDFDB.LibraryRequires.process.platform === "win32" || BDFDB.LibraryRequires.process.platform === "darwin") { BDFDB.LibraryRequires.electron.clipboard.write({image: BDFDB.LibraryRequires.electron.nativeImage.createFromBuffer(buffer)}); diff --git a/Plugins/MessageUtilities/MessageUtilities.plugin.js b/Plugins/MessageUtilities/MessageUtilities.plugin.js index 1091173a69..ae88d89456 100644 --- a/Plugins/MessageUtilities/MessageUtilities.plugin.js +++ b/Plugins/MessageUtilities/MessageUtilities.plugin.js @@ -340,7 +340,7 @@ module.exports = (_ => { if (channel && (channel.type == 1 || channel.type == 3 || BDFDB.UserUtils.can("MANAGE_MESSAGES")) && message.type == 0) { if (message.pinned) { BDFDB.LibraryModules.MessagePinUtils.unpinMessage(channel, message.id); - if (toasts[action]) BDFDB.NotificationUtils.toast("Message has been unpinned", {type: "error"}); + if (toasts[action]) BDFDB.NotificationUtils.toast("Message has been unpinned", {type: "danger"}); } else { BDFDB.LibraryModules.MessagePinUtils.pinMessage(channel, message.id); diff --git a/Plugins/OldTitleBar/OldTitleBar.plugin.js b/Plugins/OldTitleBar/OldTitleBar.plugin.js index f0ce7b5ab3..7d4ba5917f 100644 --- a/Plugins/OldTitleBar/OldTitleBar.plugin.js +++ b/Plugins/OldTitleBar/OldTitleBar.plugin.js @@ -171,15 +171,18 @@ module.exports = (_ => { onChange: isNativeTitlebarSetting ? value => { if (this.patchMainScreen(value)) { patched = !patched; - let notifybar = document.querySelector("#OldTitleBarNotifyBar"); - if (notifybar) notifybar.querySelector(BDFDB.dotCN.noticedismiss).click(); - if (patched) { - notifybar = BDFDB.NotificationUtils.notice("Changed nativebar settings, relaunch to see changes:", {type: "danger",btn: "Relaunch",id: "OldTitleBarNotifyBar"}); - notifybar.querySelector(BDFDB.dotCN.noticebutton).addEventListener("click", _ => { - BDFDB.LibraryRequires.electron.remote.app.relaunch(); - BDFDB.LibraryRequires.electron.remote.app.quit(); - }); - } + document.querySelector("#OldTitleBarNotifyBar")?.close(); + if (patched) BDFDB.NotificationUtils.notice("Changed nativebar settings, relaunch to see changes:", { + type: "danger", + id: "OldTitleBarNotifyBar", + buttons: [{ + contents: "Relaunch", + onClick: _ => { + BDFDB.LibraryRequires.electron.remote.app.relaunch(); + BDFDB.LibraryRequires.electron.remote.app.quit(); + } + }] + }); } } : null })); diff --git a/Plugins/PluginRepo/PluginRepo.plugin.js b/Plugins/PluginRepo/PluginRepo.plugin.js index d636632f0e..1c9a87479f 100644 --- a/Plugins/PluginRepo/PluginRepo.plugin.js +++ b/Plugins/PluginRepo/PluginRepo.plugin.js @@ -799,7 +799,7 @@ module.exports = (_ => { buttons: [{ contents: this.labels.list, onClick: _ => { - let toast = BDFDB.NotificationUtils.toast(wrongUrls.join("\n"), {type: "error"}); + let toast = BDFDB.NotificationUtils.toast(wrongUrls.join("\n"), {type: "danger"}); toast.style.setProperty("overflow", "hidden"); for (let url of wrongUrls) console.log(url); } diff --git a/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js b/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js index ff2e566a3f..29f5c3a872 100644 --- a/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js +++ b/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js @@ -301,7 +301,7 @@ module.exports = (_ => { }), onClick: _ => { let clear = _ => { - if (clearing) return BDFDB.NotificationUtils.toast("Already clearing some recent mentions, please wait...", {type: "error"}); + if (clearing) return BDFDB.NotificationUtils.toast("Already clearing some recent mentions, please wait...", {type: "danger"}); let messages = [].concat(e.instance.props.messages).filter(n => n); if (messages.length) { clearing = true; diff --git a/Plugins/SpellCheck/SpellCheck.plugin.js b/Plugins/SpellCheck/SpellCheck.plugin.js index adce99b0ac..bd0f4e63e6 100644 --- a/Plugins/SpellCheck/SpellCheck.plugin.js +++ b/Plugins/SpellCheck/SpellCheck.plugin.js @@ -344,7 +344,7 @@ module.exports = (_ => { let parse = (error, response, body, download) => { this.killLanguageToast(key); if (error || (response && body.toLowerCase().indexOf("") > -1)) { - BDFDB.NotificationUtils.toast(this.labels.toast_dictionary_fail.replace("{{var0}}", this.getLanguageName(languages[lang])), {type: "error"}); + BDFDB.NotificationUtils.toast(this.labels.toast_dictionary_fail.replace("{{var0}}", this.getLanguageName(languages[lang])), {type: "danger"}); } else if (response && languageToasts[key].lang == lang) { if (download) { diff --git a/Plugins/SpotifyControls/SpotifyControls.plugin.js b/Plugins/SpotifyControls/SpotifyControls.plugin.js index 94b5001703..d50d663acf 100644 --- a/Plugins/SpotifyControls/SpotifyControls.plugin.js +++ b/Plugins/SpotifyControls/SpotifyControls.plugin.js @@ -193,7 +193,7 @@ module.exports = (_ => { BDFDB.LibraryRequires.electron.clipboard.write({text: url}); BDFDB.NotificationUtils.toast(_this.labels.toast_copyurl_fail, {type: "success"}); } - else BDFDB.NotificationUtils.toast(_this.labels.toast_copyurl_success, {type: "error"}); + else BDFDB.NotificationUtils.toast(_this.labels.toast_copyurl_success, {type: "danger"}); } }), BDFDB.ReactUtils.createElement(SpotifyControlsButtonComponent, { diff --git a/Plugins/ThemeRepo/ThemeRepo.plugin.js b/Plugins/ThemeRepo/ThemeRepo.plugin.js index e3ca511609..76b377fb89 100644 --- a/Plugins/ThemeRepo/ThemeRepo.plugin.js +++ b/Plugins/ThemeRepo/ThemeRepo.plugin.js @@ -1108,7 +1108,7 @@ module.exports = (_ => { buttons: [{ contents: this.labels.list, onClick: _ => { - let toast = BDFDB.NotificationUtils.toast(wrongUrls.join("\n"), {type: "error"}); + let toast = BDFDB.NotificationUtils.toast(wrongUrls.join("\n"), {type: "danger"}); toast.style.setProperty("overflow", "hidden"); for (let url of wrongUrls) console.log(url); } diff --git a/Plugins/ThemeSettings/ThemeSettings.plugin.js b/Plugins/ThemeSettings/ThemeSettings.plugin.js index 98cb6bfad6..1c0975363e 100644 --- a/Plugins/ThemeSettings/ThemeSettings.plugin.js +++ b/Plugins/ThemeSettings/ThemeSettings.plugin.js @@ -176,7 +176,7 @@ module.exports = (_ => { } else BDFDB.NotificationUtils.toast(`There are no changed variables to be updated in ${addon.filename}`, {type: "warning"}); } - else BDFDB.NotificationUtils.toast(`Could not find themefile: ${addon.filename}`, {type: "error"}); + else BDFDB.NotificationUtils.toast(`Could not find themefile: ${addon.filename}`, {type: "danger"}); } getThemeImports (css) {