strangelights / slack_dark_theme Goto Github PK
View Code? Open in Web Editor NEWA Minimalist Dark Theme for the Slack Desktop App
A Minimalist Dark Theme for the Slack Desktop App
Bottom section of Files tab background displayed as white after entering search result.
Blinded by the white...
When trying the run the script on the latest v4.0.1 release, the dark theme is failing to apply and a console error is thrown:
/Applications/Slack.app/Contents/Resources/app.asar/dist/ssb-interop.bundle.js:8 Uncaught ReferenceError: $ is not defined
at HTMLDocument.<anonymous> (/Applications/Slack.app/Contents/Resources/app.asar/dist/ssb-interop.bundle.js:8)
That error is caused by the $.ajax() Jquery function that this theme relies on in slack_dark_theme.js.
Looks like Slack may be moving away from Jquery use. To get around this, it's time to replace that file's Jquery ajax method with the vanilla JS equivalent.
To update any part of the theme, it's currently necessary to run the full app.asar unpack/repackage process. This has the potential to inject the event listener JS into the ssb-interop.bundle.js multiple times.
Although it doesn't seem to have any current side effects, this seems inefficient and could be a source of future bugs as updates progress.
To get around this, and to make it easier for users to add their own custom styling without having to fork and maintain their own repo, it would be beneficial to add an optional update flag for the bash script, which would only apply updated CSS and bypass the rest of the process.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.