lostconnection / makeitdark Goto Github PK
View Code? Open in Web Editor NEWPython tool to inject a dark theme into the Slack desktop application
License: MIT License
Python tool to inject a dark theme into the Slack desktop application
License: MIT License
Do you think it'd be possible to add some screenshots to the README so that new users who find this repository can see what it looks like before deciding if they want to install it or not?
When you click a link to a message, the message is highlighted to draw your attention to the right content, however in this darkmode it becomes very difficult to read the content for a few moments before the fade dies away.
Without darkmode the field just goes from white to yellow (still very readable).
Tags surrounding the injected styles for position marking should be extracted to constants.
Its working! But im getting white while on a thread and the reply box.
Originally posted by @hioz12 in #27 (comment)
Current version of the script doesn't work unless I modify the script as follows (Windows 10) to encapsulate the path for unpacking the asar archive:
unpack_command = apply_sudo(sudo, "npx asar extract {0}/app.asar {0}/app.asar.unpacked".format('"' + packed_path + '"'))
and for packing the asar archive after modifications:
pack_command = apply_sudo(sudo, "npx asar pack {0}/app.asar.unpacked {0}/app.asar".format('"' + packed_path + '"'))
Also, in the current version of the script I have to create a symbolic link for
C:\Program Files\Slack
to the following
C:\Program Files\Slack\App-Slack
Basically, the detection requires a subdirectory underneath of the Slack directory with the prefix of "App-", but that's not the location it installs to in program files.
It should just be checking "C:\Program Files\Slack" directly for resources.
I have used the python script and everything worked fine and smoothly. However, as a dependancy a user of this script will need to install python
(I already had this so it's not an issue for me).
It would be good to provide both python
and bash
versions for those who don't have python
and have no need for it after the makeitdark install.
11:55 $ sudo python3 makeitdark.py
Detected OS X
Traceback (most recent call last):
File "makeitdark.py", line 94, in <module>
with open(slack_theme_path, "r+") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js'
looking in that static folder I am only seeing:
node_modules
dist
in that dist there is another static... and well no js files there.
I may dig deeper...
Thanks for all your help on this. Crazy that Slack still hasn't done this themselves.
Got this to (mostly) work with @defmonk0's fix. But I'm getting these white bars in the top and bottom now:
Originally posted by @yourfriendaaron in #27 (comment)
Traceback (most recent call last): File "makeitdark.py", line 69, in <module> most_recent = sorted([slack_version for slack_version in os.listdir(slack_root_path) if slack_version.startswith("app-") and os.path.isdir(os.path.join(slack_root_path, slack_version))], reverse=True)[0] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\USER\\AppData\\Local\\slack'
Provide various theme values as mapping descriptors that can be used as arguments on execution.
This requires some sass styling that uses themes based on a theme declaration and will be mapped to a sidebar theme for consistency.
Seems that something was changed today by Slack that broke the "All Threads" view and everything is blinding white.
Hey, thanks for making this script, its awesome!
I'm having an issue on Slack Native app on MacOS Mojave.
After installing the makeitdark theme, during screen sharing the entire screen goes completely dark. You can't see anything in screen sharing. If you click around with the mouse or Command-Tab to other windows you can see the window again. But then if someone draws on your screen it all goes dark again.
If I uninstall makeitdark screen sharing is fine.
I'm playing around trying to figure out if theres something in the CSS thats causing it. If I figure it out I'll post here. If anyone knows a solution please let me know!
When creating a post, the text color is set to black so it's nearly impossible to create one. Also, when starting or replying to a thread, the text is white on a white background so you have the same issue.
Currently we are relying on the GC to close any files that we have opened. Need to change this so that the file handles are explicitly closed.
This is my error message:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js'
and this is the whole programm output:
sudo python3 makeitdark.py
[sudo] Passwort für lolo:
Detected linux OS
Traceback (most recent call last):
File "makeitdark.py", line 94, in <module>
with open(slack_theme_path, "r+") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js'
I think I have to change the folder for the file. Dos anybody knows, where it could be?
Thank you!
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.