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