-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin-darktheme.js
24 lines (23 loc) · 1.01 KB
/
plugin-darktheme.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
window.slackPluginList = window.slackPluginList || [];
window.slackPluginList.push({
pluginId: "Dfcl1aKM5G8LCWIG",
pluginName: "darktheme",
pluginNameFriendly: "Dark Theme",
pluginDescriptionShort: "A Dark Theme for Slack based on laCour's slack-night-theme",
pluginDescriptionLong: "A Dark Theme for Slack based on laCour's slack-night-theme",
prereqsReady: function() {
return (typeof window._ === "function" && typeof window._.VERSION === "string");
},
loadFunction: function() {
window.slackPlugins.loadCSSFile("black.css");
if (_.filter(window.slackPluginList, function(value) {
return value.pluginName === "reactionsHoverPosition";
}).length > 0 &&
window.slackPlugins.isPluginEnabled("reactionsHoverPosition")) {
window.slackPlugins.loadCSSFile("black-message-separator-lines.css");
}
},
loadLeftNavFunction: function() {
window.slackPlugins.loadCSSFile("black-leftnav.css");
}
});