Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mackuba/darkmodeswitcher
Simple app for overriding light mode per app on macOS (demo for a blog post)
https://github.com/mackuba/darkmodeswitcher
appkit dark-mode macos swiftui swiftui-example
Last synced: 3 months ago
JSON representation
Simple app for overriding light mode per app on macOS (demo for a blog post)
- Host: GitHub
- URL: https://github.com/mackuba/darkmodeswitcher
- Owner: mackuba
- License: wtfpl
- Created: 2019-06-13T17:59:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T22:13:17.000Z (over 4 years ago)
- Last Synced: 2024-10-15T07:24:13.205Z (4 months ago)
- Topics: appkit, dark-mode, macos, swiftui, swiftui-example
- Language: Swift
- Homepage: https://mackuba.eu/2019/06/17/swiftui-appkit-dark-mode-switcher/
- Size: 85.9 KB
- Stars: 43
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dark Mode Switcher
This is a demo app I've built as an experiment in using SwiftUI with AppKit, as described in this blog post: .
The app lets you force any other app to use a light mode when the whole desktop uses a dark mode. Unfortunately there doesn't seem to be any way now to do the opposite (use dark mode only in specific apps).
This isn't really a great app, it's mostly useful as sample code - it works pretty slowly because of the constant AutoLayout constraint errors, which I don't know how to fix. So I'm not providing any binaries - if you really want to try it, just download the code and build it.
**August 2020 update**: I've updated the code to work with stable Xcode 11 and made some minor improvements.
## License
Copyright © 2020 [Kuba Suder](https://mackuba.eu). The entire code of the app is licensed under [WTFPL License](http://www.wtfpl.net) - this is intended to be example code after all, so feel free to take whatever parts you need and use them for anything you need.