stuff
This commit is contained in:
parent
aea47cecdf
commit
f38ba23ae0
|
@ -779,8 +779,6 @@
|
|||
"size24": "size24-NlR6be"
|
||||
},
|
||||
"BetterFriendList": {
|
||||
"badge": "badge-8F4Saa",
|
||||
"badgeRed": "red-5F22aW",
|
||||
"mutualGuilds": "mutualGuilds-s7F2aa",
|
||||
"nameCell": "nameCell-7F4sRs",
|
||||
"title": "title-3aDrFs"
|
||||
|
@ -1301,8 +1299,6 @@
|
|||
"_badgeseverywheresize21": ["BadgesEverywhere", "size21"],
|
||||
"_badgeseverywheresize22": ["BadgesEverywhere", "size22"],
|
||||
"_badgeseverywheresize24": ["BadgesEverywhere", "size24"],
|
||||
"_betterfriendlistbadge": ["BetterFriendList", "badge"],
|
||||
"_betterfriendlistbadgered": ["BetterFriendList", "badgeRed"],
|
||||
"_betterfriendlistmutualguilds": ["BetterFriendList", "mutualGuilds"],
|
||||
"_betterfriendlistnamecell": ["BetterFriendList", "nameCell"],
|
||||
"_betterfriendlisttitle": ["BetterFriendList", "title"],
|
||||
|
|
|
@ -117,6 +117,10 @@ module.exports = (_ => {
|
|||
margin-left: 13px;
|
||||
width: 200px;
|
||||
}
|
||||
${BDFDB.dotCNS.peoplestabbar + BDFDB.dotCN.peoplesbadge} {
|
||||
background-color: var(--background-accent);
|
||||
margin-left: 6px;
|
||||
}
|
||||
${BDFDB.dotCN._betterfriendlisttitle} {
|
||||
width: 200px;
|
||||
}
|
||||
|
@ -185,7 +189,7 @@ module.exports = (_ => {
|
|||
newChildren.push(this.createBadge(BDFDB.LibraryModules.StatusMetaUtils.getOnlineFriendCount()));
|
||||
break;
|
||||
case "PENDING":
|
||||
newChildren.push(this.createBadge(relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_INCOMING], this.labels.incoming, relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_INCOMING] > 0 && BDFDB.DiscordConstants.Colors.STATUS_RED));
|
||||
newChildren.push(this.createBadge(relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_INCOMING], this.labels.incoming, relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_INCOMING] > 0));
|
||||
newChildren.push(this.createBadge(relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_OUTGOING], this.labels.outgoing));
|
||||
break;
|
||||
case "BLOCKED":
|
||||
|
@ -340,12 +344,11 @@ module.exports = (_ => {
|
|||
}, true));
|
||||
}
|
||||
|
||||
createBadge (amount, text, color) {
|
||||
createBadge (amount, text, red) {
|
||||
let badge = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Badges.NumberBadge, {
|
||||
className: BDFDB.disCN.peoplesbadge,
|
||||
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.peoplesbadge),
|
||||
count: amount,
|
||||
color: color || BDFDB.DiscordConstants.Colors.PRIMARY_DARK,
|
||||
style: {marginLeft: 6}
|
||||
disableColor: !red
|
||||
});
|
||||
return text ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||
text: text,
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 35 KiB |
Loading…
Reference in New Issue