Update EditChannels.plugin.js
This commit is contained in:
parent
3edb9c934c
commit
8f803b7192
|
@ -116,7 +116,6 @@ module.exports = (_ => {
|
||||||
"DirectMessage",
|
"DirectMessage",
|
||||||
"FocusRingScope",
|
"FocusRingScope",
|
||||||
"HeaderBarContainer",
|
"HeaderBarContainer",
|
||||||
"Mention",
|
|
||||||
"PrivateChannel",
|
"PrivateChannel",
|
||||||
"QuickSwitchChannelResult",
|
"QuickSwitchChannelResult",
|
||||||
"RecentsChannelHeader",
|
"RecentsChannelHeader",
|
||||||
|
@ -455,13 +454,8 @@ module.exports = (_ => {
|
||||||
processFocusRingScope (e) {
|
processFocusRingScope (e) {
|
||||||
if (!e.returnvalue || !e.returnvalue.props.className) return;
|
if (!e.returnvalue || !e.returnvalue.props.className) return;
|
||||||
let change, hoveredEvents, channelId, nameClass, categoyClass, iconClass, modify = {};
|
let change, hoveredEvents, channelId, nameClass, categoyClass, iconClass, modify = {};
|
||||||
if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.categoryiconvisibility) > -1) {
|
if (this.settings.places.mentions && e.returnvalue.props.className.indexOf(BDFDB.disCN.mention) > -1 && e.instance.props["edited-mention-color"]) {
|
||||||
change = true;
|
e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]});
|
||||||
hoveredEvents = true;
|
|
||||||
channelId = (BDFDB.ReactUtils.findValue(e.returnvalue, "data-list-item-id") || "").split("___").pop();
|
|
||||||
nameClass = BDFDB.disCN.categoryname;
|
|
||||||
iconClass = BDFDB.disCN.categoryicon;
|
|
||||||
modify = {muted: BDFDB.LibraryStores.UserGuildSettingsStore.isGuildOrCategoryOrChannelMuted(BDFDB.LibraryStores.SelectedGuildStore.getGuildId(), channelId)};
|
|
||||||
}
|
}
|
||||||
if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.channeliconvisibility) > -1) {
|
if (this.settings.places.channelList && e.returnvalue.props.className.indexOf(BDFDB.disCN.channeliconvisibility) > -1) {
|
||||||
change = true;
|
change = true;
|
||||||
|
@ -739,10 +733,6 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
processMention (e) {
|
|
||||||
if (e.instance.props["edited-mention-color"]) e.returnvalue.props.style = Object.assign({}, e.returnvalue.props.style, {"--edited-mention-color": e.instance.props["edited-mention-color"]});
|
|
||||||
}
|
|
||||||
|
|
||||||
changeChannelColor (child, channelId, modify) {
|
changeChannelColor (child, channelId, modify) {
|
||||||
if (!BDFDB.ReactUtils.isValidElement(child)) return;
|
if (!BDFDB.ReactUtils.isValidElement(child)) return;
|
||||||
let color = this.getChannelDataColor(channelId);
|
let color = this.getChannelDataColor(channelId);
|
||||||
|
|
Loading…
Reference in New Issue