{"id":17024076,"url":"https://github.com/mackuba/darkmodeswitcher","last_synced_at":"2025-03-22T17:31:04.923Z","repository":{"id":41253041,"uuid":"191810208","full_name":"mackuba/DarkModeSwitcher","owner":"mackuba","description":"Simple app for overriding light mode per app on macOS (demo for a blog post)","archived":false,"fork":false,"pushed_at":"2020-08-15T22:13:17.000Z","size":88,"stargazers_count":43,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T02:15:05.918Z","etag":null,"topics":["appkit","dark-mode","macos","swiftui","swiftui-example"],"latest_commit_sha":null,"homepage":"https://mackuba.eu/2019/06/17/swiftui-appkit-dark-mode-switcher/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mackuba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-13T17:59:22.000Z","updated_at":"2024-08-05T16:06:10.000Z","dependencies_parsed_at":"2022-08-22T00:21:21.512Z","dependency_job_id":null,"html_url":"https://github.com/mackuba/DarkModeSwitcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackuba%2FDarkModeSwitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackuba%2FDarkModeSwitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackuba%2FDarkModeSwitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackuba%2FDarkModeSwitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackuba","download_url":"https://codeload.github.com/mackuba/DarkModeSwitcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244233568,"owners_count":20420317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appkit","dark-mode","macos","swiftui","swiftui-example"],"created_at":"2024-10-14T07:24:22.991Z","updated_at":"2025-03-22T17:31:04.538Z","avatar_url":"https://github.com/mackuba.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dark Mode Switcher\n\nThis is a demo app I've built as an experiment in using SwiftUI with AppKit, as described in this blog post: \u003chttps://mackuba.eu/2019/06/17/swiftui-appkit-dark-mode-switcher/\u003e.\n\nThe 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).\n\nThis 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.\n\n**August 2020 update**: I've updated the code to work with stable Xcode 11 and made some minor improvements.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/28465/59601893-b8a20280-9105-11e9-84c7-859cd68712e5.png\" width=\"657\"\u003e\n\n## License\n\nCopyright © 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackuba%2Fdarkmodeswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackuba%2Fdarkmodeswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackuba%2Fdarkmodeswitcher/lists"}