Coder Social home page Coder Social logo

strangelights / slack_dark_theme Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 4.0 448 KB

A Minimalist Dark Theme for the Slack Desktop App

JavaScript 0.43% CSS 98.63% Shell 0.94%
slack dark-theme darkmode darktheme slack-dark-theme accessibility a11y macos mojave

slack_dark_theme's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

slack_dark_theme's Issues

4.0.1 Console error breaking theme

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 Do: Add ability to update custom user styling via update flag

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.