This commit is contained in:
Mirco Wittrien 2020-07-29 23:20:36 +02:00
parent 7927389a7c
commit 36d174393f
4 changed files with 23 additions and 10 deletions

View File

@ -1193,6 +1193,7 @@
"ChannelCallHeader",
"ConnectedPrivateChannelsList",
"DiscordTag",
"IncomingCallModal",
"InviteModalUserRow",
"Mention",
"Menu",
@ -4367,7 +4368,7 @@
DiscordClassModules.Button = BDFDB.ModuleUtils.findByProperties("colorBlack", "button");
DiscordClassModules.CallCurrent = BDFDB.ModuleUtils.findByProperties("wrapper", "fullScreen");
DiscordClassModules.CallDetails = BDFDB.ModuleUtils.findByProperties("container", "hotspot");
DiscordClassModules.CallIncoming = BDFDB.ModuleUtils.findByProperties("incomingCall", "container");
DiscordClassModules.CallIncoming = BDFDB.ModuleUtils.findByProperties("incomingCall", "container") || BDFDB.ModuleUtils.findByProperties("wrapper", "mainChannelInfo");
DiscordClassModules.CallIncomingInner = BDFDB.ModuleUtils.findByProperties("incomingCallInner", "members");
DiscordClassModules.Card = BDFDB.ModuleUtils.findByProperties("card", "cardBrand");
DiscordClassModules.CardStatus = BDFDB.ModuleUtils.findByProperties("reset", "error", "card");
@ -4839,6 +4840,9 @@
callincomingcontainer: ["CallIncoming", "container"],
callincominginner: ["CallIncomingInner", "incomingCallInner"],
callmembers: ["CallIncomingInner", "members"],
callincomingroot: ["CallIncoming", "root"],
callincomingtitle: ["CallIncoming", "title"],
callincomingwrapper: ["CallIncoming", "wrapper"],
card: ["Card", "card"],
cardbrand: ["Card", "cardBrand"],
cardbrandoutline: ["Card", "cardBrandOutline"],
@ -10248,6 +10252,7 @@
];
InternalBDFDB._processAvatarRender = function (user, avatar) {
if (BDFDB.ReactUtils.isValidElement(avatar) && BDFDB.ObjectUtils.is(user)) {
avatar.props["user_by_BDFDB"] = user.id;
let role = "", className = BDFDB.DOMUtils.formatClassName((avatar.props.className || "").replace(BDFDB.disCN.avatar, ""));
if (BDFDB_Patrons_T2.includes(user.id)) {
role = "BDFDB Patron";
@ -10262,6 +10267,7 @@
className = BDFDB.DOMUtils.formatClassName(className, BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbdev);
}
if (role) {
delete avatar.props["user_by_BDFDB"];
if (avatar.type == "img") avatar = BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.AvatarComponents.default, Object.assign({}, avatar.props, {
size: BDFDB.LibraryComponents.AvatarComponents.Sizes.SIZE_40
}));
@ -10269,7 +10275,8 @@
avatar = BDFDB.ReactUtils.createElement("div", {
className: className,
style: {borderRadius: 0, overflow: "visible"},
"custom-badge-id": BDFDB_Patrons_T3_hasBadge.includes(user.id) ? user.id : null,
"custombadge_id": BDFDB_Patrons_T3_hasBadge.includes(user.id) ? user.id : null,
"user_by_BDFDB": user.id,
children: [avatar]
});
if (settings.showSupportBadges) avatar.props.children.push(BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TooltipContainer, {
@ -10284,6 +10291,7 @@
};
InternalBDFDB._processAvatarMount = function (user, avatar, position = "top") {
if (Node.prototype.isPrototypeOf(avatar) && BDFDB.ObjectUtils.is(user)) {
avatar.setAttribute("user_by_BDFDB", user.id);
let role = "";
if (BDFDB_Patrons_T2.includes(user.id) && settings.showSupportBadges) {
role = "BDFDB Patron";

File diff suppressed because one or more lines are too long

View File

@ -1549,12 +1549,15 @@ body:before {
/* ---- 6.7. CALL ---- */
#app-mount .incomingCallInner-2VmFiR { /* popout inner */
#app-mount .incomingCallInner-2VmFiR,
#app-mount .root-3JVdIJ { /* popout inner */
background: transparent;
border: none;
}
.incomingCallInner-2VmFiR:after,
.incomingCallInner-2VmFiR:before {
.incomingCallInner-2VmFiR:before,
.root-3JVdIJ:after,
.root-3JVdIJ:before {
content: "";
position: absolute;
top: 0;
@ -1566,10 +1569,12 @@ body:before {
pointer-events: none;
z-index: -1;
}
.incomingCallInner-2VmFiR:after {
.incomingCallInner-2VmFiR:after,
.root-3JVdIJ:after {
background-color: rgba(var(--vtransparencycolor), calc(var(--vtransparencyalpha) + 0.25));
}
.incomingCallInner-2VmFiR:before {
.incomingCallInner-2VmFiR:before,
.root-3JVdIJ:before {
background: var(--vpopout) center/var(--vpopoutsize);
filter: blur(var(--vpopoutblur));
background-attachment: fixed;

View File

@ -19,13 +19,13 @@
}
/* BEAUDEN */
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custom-badge-id="562008872467038230"] .mask-1l8v16 {
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custombadge_id="562008872467038230"] .mask-1l8v16 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.6 v -0.33 h -0.4 z"/></g></svg>') center/cover no-repeat;
}
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custom-badge-id="562008872467038230"] .avatarHint-1qgaV3 {
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custombadge_id="562008872467038230"] .avatarHint-1qgaV3 {
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.54 v -0.3 h -0.46 z"/></g></svg>');
}
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custom-badge-id="562008872467038230"] .badge-7R_W3s {
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custombadge_id="562008872467038230"] .badge-7R_W3s {
background: url(https://mwittrien.github.io/BetterDiscordAddons/Themes/res/T3Badges/562008872467038230.png) center/cover no-repeat !important;
position: absolute !important;
width: 50% !important;