This commit is contained in:
Mirco Wittrien 2020-03-28 15:08:45 +01:00
parent a281a72d9f
commit 0f75f0f00d
5 changed files with 18 additions and 6 deletions

View File

@ -1146,6 +1146,7 @@
AppView: "appcontainer",
AuthWrapper: "loginscreen",
BannedCard: "guildsettingsbannedcard",
ChannelCall: "callcurrentcontainer",
ChannelMember: "member",
ChannelTextAreaForm: "chatform",
ChannelWindow: "chatcontent",
@ -9168,7 +9169,7 @@
}
};
InternalBDFDB.processV2CPluginCard = function (e) {InternalBDFDB._processCard(e, e.instance.props.addon && e.instance.props.addon.plugin);};
InternalBDFDB.processV2CThemeCard = function (e) {InternalBDFDB._processCard(e, e.instance.props.addon);};
InternalBDFDB.processV2CThemeCard = function (e) {InternalBDFDB._processCard(e, e.instance.props.addon && !e.instance.props.addon.plugin && e.instance.props.addon.css);};
InternalBDFDB.createLibrarySettings = function () {
if (!window.BDFDB || typeof BDFDB != "object" || !BDFDB.loaded) return;

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@ var EditUsers = (_ => {
return class EditUsers {
getName () {return "EditUsers";}
getVersion () {return "3.8.1";}
getVersion () {return "3.8.2";}
getAuthor () {return "DevilBro";}
@ -12,7 +12,7 @@ var EditUsers = (_ => {
constructor () {
this.changelog = {
"fixed":[["Messages Popout","Now works in popouts like the recent mentions popout"]]
"fixed":[["DM Call","Works again in private calls"]]
};
this.patchedModules = {
@ -42,6 +42,7 @@ var EditUsers = (_ => {
SearchPopoutComponent: "render",
IncomingCall: "render",
PrivateChannelCallParticipants: "render",
ChannelCall: "render",
VideoTile: "render",
UserSummaryItem: "render"
},
@ -762,6 +763,13 @@ var EditUsers = (_ => {
for (let participant of e.instance.props.participants) if (participant && participant.user) participant.user = this.getUserData(participant.user.id);
}
}
processChannelCall (e) {
if (BDFDB.ArrayUtils.is(e.instance.props.participants) && BDFDB.DataUtils.get(this, "settings", "changeInDmCalls")) {
for (let participant of e.instance.props.participants) if (participant && participant.user) participant.user = this.getUserData(participant.user.id);
}
}
processVideoTile (e) {
if (e.instance.props.user && BDFDB.DataUtils.get(this, "settings", "changeInDmCalls")) e.instance.props.user = this.getUserData(e.instance.props.user.id);
}

View File

@ -68,7 +68,7 @@ var ThemeSettings = (_ => {
// begin of own functions
processV2CThemeCard (e) {
if (e.instance.props.addon && !e.instance.state.settings) {
if (e.instance.props.addon && e.instance.props.addon.css && !e.instance.state.settings) {
let vars = this.getThemeVars(e.instance.props.addon.css);
if (vars.length) {
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props: [["className", BDFDB.disCN._repofooter]]});

View File

@ -1517,9 +1517,12 @@ body:before {
color: rgb(var(--fontwhite3));
}
#app-mount .wrapper-29NfPK { /* call wrapper */
#app-mount .wrapper-KXM2i0 { /* call wrapper */
background-color: rgba(var(--vtransparencycolor), calc(var(--vguildchanneltransparency) * 0.8));
}
#app-mount .root-3B6O5N { /* call root */
color: rgb(var(--fontwhite1));
}
#app-mount .video-1FfuMD { /* call video */
background-color: transparent;
}