This commit is contained in:
Mirco Wittrien 2020-10-15 21:56:54 +02:00
parent 8e93c14d7e
commit 5d7c410515
4 changed files with 43 additions and 4 deletions

View File

@ -1028,8 +1028,11 @@ module.exports = (_ => {
if (icon) BDFDB.DOMUtils.addClass(toast, "icon");
}
else if (color) {
let rgbcolor = BDFDB.ColorUtils.convert(color, "RGB");
if (rgbcolor) toast.style.setProperty("background-color", rgbcolor);
let rgbColor = BDFDB.ColorUtils.convert(color, "RGB");
if (rgbColor) {
toast.style.setProperty("background-color", rgbColor);
BDFDB.DOMUtils.addClass(toast, "toast-custom");
}
}
BDFDB.DOMUtils.addClass(toast, selector);
toasts.appendChild(toast);
@ -7349,7 +7352,7 @@ module.exports = (_ => {
delete e.returnvalue.props.userId;
};
const ContextMenuTypes = ["UserSettingsCog", "User", "Developer", "Slate", "GuildFolder", "GroupDM", "SystemMessage", "Message", "Native", "Role", "Guild", "Channel"];
const ContextMenuTypes = ["UserSettingsCog", "UserProfileActions", "User", "Developer", "Slate", "GuildFolder", "GroupDM", "SystemMessage", "Message", "Native", "Role", "Guild", "Channel"];
const QueuedComponents = BDFDB.ArrayUtils.removeCopies([].concat(ContextMenuTypes.map(n => n + "ContextMenu"), ["GuildHeaderContextMenu", "MessageOptionContextMenu", "MessageOptionToolbar"]));
InternalBDFDB.addContextListeners = function (plugin) {
plugin = plugin == BDFDB && InternalBDFDB || plugin;

View File

@ -1018,6 +1018,9 @@ img:not([src]), img[src=""], img[src="null"] {
background-size: 20px 20px;
background-repeat: no-repeat;
}
.toast.toast-custom {
color: #FFF;
}
.toast.toast-brand {
background-color: #7289DA;
color: #FFF;

View File

@ -5216,6 +5216,38 @@ body:before {
background-color: rgba(var(--vtransparencycolor), 0.2);
}
/* ---- 14.13. PUBLICGUILDANNOUNCEMENT ---- */
#app-mount .popout-6p6fkZ { /* popout wrapper */
background-color: transparent;
box-shadow: 0 0 0 1px rgba(var(--vtransparencycolor), 0.3), 0 2px 10px 0 rgba(var(--vtransparencycolor), 0.3);
border: none;
border-radius: 3px;
overflow: hidden;
position: relative;
}
.popout-6p6fkZ:after,
.popout-6p6fkZ:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
width: unset;
height: unset;
pointer-events: none;
z-index: -1;
}
.popout-6p6fkZ:after {
background-color: rgba(var(--vtransparencycolor), calc(var(--vtransparencyalpha) + 0.2));
}
.popout-6p6fkZ:before {
background: var(--vpopout) center/var(--vpopoutsize);
filter: blur(var(--vpopoutblur));
background-attachment: fixed;
}
/* ~~~~ 15. GENERAL ~~~~ */

View File

@ -1672,7 +1672,8 @@
.mediaBarProgress-1xaPtl:before {
background-color: rgb(var(--vaccentcolor));
}
.mediaBarInteraction-37i2O4:hover .mediaBarGrabber-1FqnbN {
.mediaBarInteraction-37i2O4:hover .mediaBarGrabber-1FqnbN,
.mediaBarInteractionDragging-2QurIZ .mediaBarGrabber-1FqnbN {
background-color: rgb(var(--vaccentcolor));
filter: brightness(120%);
}