diff options
author | Loek Le Blansch <l.leblansch@gmail.com> | 2020-09-15 18:42:55 +0200 |
---|---|---|
committer | Loek Le Blansch <l.leblansch@gmail.com> | 2020-09-15 18:42:55 +0200 |
commit | 7f7bd84a907f2be62760ca7827ec236b3be01d24 (patch) | |
tree | 6b1d2a8f9bcf1a229c31d4535f98919a28867ffd /.config/BetterDiscord | |
parent | 1fdeeb0938e9be85ea95a0aa5599e8bd487ec36c (diff) |
update
Diffstat (limited to '.config/BetterDiscord')
-rw-r--r-- | .config/BetterDiscord/plugins/PinDMs.config.json | 14 | ||||
-rw-r--r-- | .config/BetterDiscord/plugins/PinDMs.plugin.js | 9 | ||||
-rw-r--r-- | .config/BetterDiscord/themes/pywal.theme.css | 120 |
3 files changed, 72 insertions, 71 deletions
diff --git a/.config/BetterDiscord/plugins/PinDMs.config.json b/.config/BetterDiscord/plugins/PinDMs.config.json index 0d43d13..891ee57 100644 --- a/.config/BetterDiscord/plugins/PinDMs.config.json +++ b/.config/BetterDiscord/plugins/PinDMs.config.json @@ -1,17 +1,16 @@ { "changelog": { - "currentversion": "1.7.5" + "currentversion": "1.7.6" }, "dmCategories": { "3516090637537661": { "collapsed": false, "color": null, "dms": [ - "703197442098855997", - "642833698315698232", + "458302680998215690", + "514803935761006592", "456428001463369729", "390601823523962892", - "450987439041806346", "390786176652673034" ], "id": "3516090637537661", @@ -22,10 +21,11 @@ "collapsed": false, "color": null, "dms": [ + "703197442098855997", + "642833698315698232", + "450987439041806346", "606832163404644352", - "590888637877452840", - "458302680998215690", - "514803935761006592" + "590888637877452840" ], "id": "3586821958853646", "name": "Jongens", diff --git a/.config/BetterDiscord/plugins/PinDMs.plugin.js b/.config/BetterDiscord/plugins/PinDMs.plugin.js index 17fe404..961e1ca 100644 --- a/.config/BetterDiscord/plugins/PinDMs.plugin.js +++ b/.config/BetterDiscord/plugins/PinDMs.plugin.js @@ -9,7 +9,7 @@ var PinDMs = (_ => { return class PinDMs { getName () {return "PinDMs";} - getVersion () {return "1.7.5";} + getVersion () {return "1.7.6";} getAuthor () {return "DevilBro";} @@ -17,7 +17,7 @@ var PinDMs = (_ => { constructor () { this.changelog = { - "fixed":[["All pinned","No longer acts weird if all DMs are pinned in a category"]] + "fixed":[["Sort By Recent","Now properly updates order when a new messages was sent/received"]] }; this.patchedModules = { @@ -110,8 +110,9 @@ var PinDMs = (_ => { }; } - getSettingsPanel () { + getSettingsPanel (collapseStates = {}) { if (!window.BDFDB || typeof BDFDB != "object" || !BDFDB.loaded || !this.started) return; + settings = BDFDB.DataUtils.get(this, "settings"); let settingsPanel, settingsItems = [], innerItems = []; for (let key in settings) (!this.defaults.settings[key].inner ? settingsItems : innerItems).push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, { @@ -780,7 +781,7 @@ var PinDMs = (_ => { sortDMsByTime (dms, type) { if (dms.length > 1 && settings[type == "dmCategories" ? "sortInRecentOrder" : "sortInRecentOrderGuild"]) { - let timestamps = BDFDB.LibraryModules.DirectMessageStore.getPrivateChannelIds().map(BDFDB.LibraryModules.ChannelStore.getChannel).reduce((newObj, channel) => (newObj[channel.id] = channel.lastActiveTimestamp, newObj), {}); + let timestamps = BDFDB.LibraryModules.DirectMessageStore.getPrivateChannelIds().reduce((newObj, channelId) => (newObj[channelId] = BDFDB.LibraryModules.UnreadChannelUtils.lastMessageId(channelId), newObj), {}); return [].concat(dms).sort(function (x, y) {return timestamps[x] > timestamps[y] ? -1 : timestamps[x] < timestamps[y] ? 1 : 0;}); } else return dms; diff --git a/.config/BetterDiscord/themes/pywal.theme.css b/.config/BetterDiscord/themes/pywal.theme.css index ca71102..2484574 100644 --- a/.config/BetterDiscord/themes/pywal.theme.css +++ b/.config/BetterDiscord/themes/pywal.theme.css @@ -6,70 +6,70 @@ */ :root { - --pywal-shade0: #4E3E3D; - --pywal-shade1: #5E4B49; - --pywal-shade2: #665150; - --pywal-shade3: #6D5756; - --pywal-shade4: #7B4C49; + --pywal-shade0: #23292C; + --pywal-shade1: #2A3135; + --pywal-shade2: #2E3639; + --pywal-shade3: #313A3D; + --pywal-shade4: #2B3C44; - --accent: 190, 213, 251; + --accent: 156, 186, 196; - --pywal-serverside: #2C1F1F; - --pywal-serverfolder-transparent: hsla(4, 18.1%, 14.6%, 0.75); + --pywal-serverside: #161819; + --pywal-serverfolder-transparent: hsla(200, 5.7%, 9.4%, 0.75); - --pywal-bg0: #312322; - --pywal-bg1: #3B2A29; - --pywal-bg2: #453130; - --pywal-bg3: #4E3836; + --pywal-bg0: #191B1C; + --pywal-bg1: #1E2022; + --pywal-bg2: #232627; + --pywal-bg3: #282B2D; - --pywal-color0: #312322; - --pywal-color1: #c3acaa; - --pywal-color2: #8eb8fb; - --pywal-color3: #f4b3aa; - --pywal-color4: #c0c3ef; - --pywal-color5: #e9bce1; - --pywal-color6: #bed5fb; - --pywal-color7: #cbc8c7; - --pywal-color8: #645a59; - --pywal-color9: #c3acaa; - --pywal-color10: #8eb8fb; - --pywal-color11: #f4b3aa; - --pywal-color12: #c0c3ef; - --pywal-color13: #e9bce1; - --pywal-color14: #bed5fb; - --pywal-color15: #cbc8c7; + --pywal-color0: #191b1c; + --pywal-color1: #4c626b; + --pywal-color2: #536569; + --pywal-color3: #576e76; + --pywal-color4: #74919d; + --pywal-color5: #84a6b4; + --pywal-color6: #9cbac4; + --pywal-color7: #c5c6c6; + --pywal-color8: #525454; + --pywal-color9: #4c626b; + --pywal-color10: #536569; + --pywal-color11: #576e76; + --pywal-color12: #74919d; + --pywal-color13: #84a6b4; + --pywal-color14: #9cbac4; + --pywal-color15: #c5c6c6; - --pywal-readable-color0: #775957; - --pywal-readable-color1: #C3ACAA; - --pywal-readable-color2: #8EB8FB; - --pywal-readable-color3: #F4B3AA; - --pywal-readable-color4: #C0C3EF; - --pywal-readable-color5: #E9BCE1; - --pywal-readable-color6: #BED5FB; - --pywal-readable-color7: #CBC8C7; - --pywal-readable-color8: #645A59; - --pywal-readable-color9: #C3ACAA; - --pywal-readable-color10: #8EB8FB; - --pywal-readable-color11: #F4B3AA; - --pywal-readable-color12: #C0C3EF; - --pywal-readable-color13: #E9BCE1; - --pywal-readable-color14: #BED5FB; - --pywal-readable-color15: #CBC8C7; + --pywal-readable-color0: #666D70; + --pywal-readable-color1: #4C626B; + --pywal-readable-color2: #536569; + --pywal-readable-color3: #576E76; + --pywal-readable-color4: #74919D; + --pywal-readable-color5: #84A6B4; + --pywal-readable-color6: #9CBAC4; + --pywal-readable-color7: #C5C6C6; + --pywal-readable-color8: #525454; + --pywal-readable-color9: #4C626B; + --pywal-readable-color10: #536569; + --pywal-readable-color11: #576E76; + --pywal-readable-color12: #74919D; + --pywal-readable-color13: #84A6B4; + --pywal-readable-color14: #9CBAC4; + --pywal-readable-color15: #C5C6C6; - --pywal-readableOn-color0: #cbc8c7; - --pywal-readableOn-color1: #312322; - --pywal-readableOn-color2: #312322; - --pywal-readableOn-color3: #312322; - --pywal-readableOn-color4: #312322; - --pywal-readableOn-color5: #312322; - --pywal-readableOn-color6: #312322; - --pywal-readableOn-color7: #312322; - --pywal-readableOn-color8: #cbc8c7; - --pywal-readableOn-color9: #312322; - --pywal-readableOn-color10: #312322; - --pywal-readableOn-color11: #312322; - --pywal-readableOn-color12: #312322; - --pywal-readableOn-color13: #312322; - --pywal-readableOn-color14: #312322; - --pywal-readableOn-color15: #312322; + --pywal-readableOn-color0: #c5c6c6; + --pywal-readableOn-color1: #c5c6c6; + --pywal-readableOn-color2: #c5c6c6; + --pywal-readableOn-color3: #c5c6c6; + --pywal-readableOn-color4: #191b1c; + --pywal-readableOn-color5: #191b1c; + --pywal-readableOn-color6: #191b1c; + --pywal-readableOn-color7: #191b1c; + --pywal-readableOn-color8: #c5c6c6; + --pywal-readableOn-color9: #c5c6c6; + --pywal-readableOn-color10: #c5c6c6; + --pywal-readableOn-color11: #c5c6c6; + --pywal-readableOn-color12: #191b1c; + --pywal-readableOn-color13: #191b1c; + --pywal-readableOn-color14: #191b1c; + --pywal-readableOn-color15: #191b1c; }
\ No newline at end of file |