themes
This commit is contained in:
parent
048d0eb6cb
commit
7e3df688b1
|
@ -370,7 +370,9 @@ module.exports = (_ => {
|
||||||
BDFDB.LibraryRequires.electron.clipboard.write({text: text});
|
BDFDB.LibraryRequires.electron.clipboard.write({text: text});
|
||||||
BDFDB.NotificationUtils.toast(this.labels.toast_quotecopied, {type: "success"});
|
BDFDB.NotificationUtils.toast(this.labels.toast_quotecopied, {type: "success"});
|
||||||
}
|
}
|
||||||
else BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {plainText: [this.settings.general.autoAddNewLine && ChannelTextAreaForm && ChannelTextAreaForm.state.textValue && !this.isNewLine(ChannelTextAreaForm.state.textValue, true) && !this.isNewLine(text, false) && "\n", text, this.settings.general.autoAddNewLine && !this.isNewLine(text, true) && "\n"].filter(n => n).join("")});
|
else BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {
|
||||||
|
plainText: [this.settings.general.autoAddNewLine && ChannelTextAreaForm && ChannelTextAreaForm.state.textValue && !this.isNewLine(ChannelTextAreaForm.state.textValue, true) && !this.isNewLine(text, false) && "\n", text, this.settings.general.autoAddNewLine && !this.isNewLine(text, true) && "\n"].filter(n => n).join("")
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1050,6 +1050,7 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
BDFDB.ReactUtils.forceUpdate(e.instance);
|
BDFDB.ReactUtils.forceUpdate(e.instance);
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
|
if (!viewedImage) return;
|
||||||
let messages = [], index = -1;
|
let messages = [], index = -1;
|
||||||
if (result) {
|
if (result) {
|
||||||
messages = result.body.messages.flat(10).reverse();
|
messages = result.body.messages.flat(10).reverse();
|
||||||
|
@ -1414,7 +1415,7 @@ module.exports = (_ => {
|
||||||
min_id: (BigInt(cachedImages.newestId) - BigInt(1)).toString()
|
min_id: (BigInt(cachedImages.newestId) - BigInt(1)).toString()
|
||||||
})
|
})
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
if (result) {
|
if (result && viewedImage) {
|
||||||
const messages = result.body.messages.flat(10).reverse();
|
const messages = result.body.messages.flat(10).reverse();
|
||||||
const newCachedImages = this.filterMessagesForImages(messages, viewedImage);
|
const newCachedImages = this.filterMessagesForImages(messages, viewedImage);
|
||||||
const lastOldIndex = this.getImageIndex(newCachedImages, cachedImages.all[cachedImages.all.length-1]);
|
const lastOldIndex = this.getImageIndex(newCachedImages, cachedImages.all[cachedImages.all.length-1]);
|
||||||
|
@ -1444,7 +1445,7 @@ module.exports = (_ => {
|
||||||
max_id: (BigInt(cachedImages.oldestId) + BigInt(1)).toString()
|
max_id: (BigInt(cachedImages.oldestId) + BigInt(1)).toString()
|
||||||
})
|
})
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
if (result) {
|
if (result && viewedImage) {
|
||||||
const messages = result.body.messages.flat(10).reverse();
|
const messages = result.body.messages.flat(10).reverse();
|
||||||
const newCachedImages = this.filterMessagesForImages(messages, viewedImage);
|
const newCachedImages = this.filterMessagesForImages(messages, viewedImage);
|
||||||
const firstOldIndex = this.getImageIndex(newCachedImages, cachedImages.all[0]);
|
const firstOldIndex = this.getImageIndex(newCachedImages, cachedImages.all[0]);
|
||||||
|
|
|
@ -369,6 +369,9 @@
|
||||||
background-color: rgb(var(--accentcolor));
|
background-color: rgb(var(--accentcolor));
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.selectedVoid-3Kr388 {
|
||||||
|
background-color: rgb(var(--accentcolor));
|
||||||
|
}
|
||||||
|
|
||||||
.reactionMe-3I9gFK .reactionCount-1zkLcN, /* reaction count me */
|
.reactionMe-3I9gFK .reactionCount-1zkLcN, /* reaction count me */
|
||||||
.reactionMe-3I9gFK:hover .reactionCount-1zkLcN {
|
.reactionMe-3I9gFK:hover .reactionCount-1zkLcN {
|
||||||
|
|
Loading…
Reference in New Issue