Граф коммитов

17 Коммитов

Автор SHA1 Сообщение Дата
Levin Li 3091c0ad93 Add theme change handler 2020-07-24 20:14:08 +08:00
Levin Li 5883735aa9
Allow not to use UIImageAsset on iOS 13 (#88)
* Allow not to use UIImageAsset on iOS13

* Use imageWithConfiguration: on iOS 13+

* Add configuration class
2020-07-24 17:32:57 +08:00
Levin Li f94228e692
Add dmTraitCollection to DMTraitEnvironment requirement (#84)
* Add requirement to DMTraitEnvironment and remove UITabBarItem's conformance

* Setup tests with class objects instead of class names

* mark UIViewController's comformance as open
2020-07-07 13:50:56 +08:00
Levin Li 1f11a409e0
Migrate UIImage APIs to using UIImageAsset on iOS13 (#82)
* Mark DMTraitCollection.current as deprecated

* System built-in support for dark/light mode UIImage
2020-07-01 18:05:08 +08:00
Levin Li 7a20bcf603
Bridge iOS 13 traitCollection and color (#78)
* Use system dynamic color on iOS 13+
* Swizzling for DMTraitCollection
* Remove override of dm_updateDynamicColors and dm_updateDynamicImages
* Update naming and return UITraitCollection.current directly
* Allow using view controller to observe change
2020-06-20 11:11:26 +08:00
Levin Li 13e0d9db28
Dynamic color implementation (#76) 2020-06-11 11:11:04 +08:00
Levin Li b89745dc06
Integrate SwiftLint and fix CI (#68)
* Add SwiftLint to project and workflow

* Updating .swift files with lint

* Treat warning as errors and return build status to CI
2020-05-21 16:54:23 +08:00
icodesign 4f5f1cf50b
Rename repo to FluentDarkModeKit (#58) 2020-03-17 14:52:51 +08:00
Bei Li 12d876adba
Fix image Swift initializer crash (#50) 2020-02-19 15:52:40 +08:00
Bei Li 0fcc8b25db
Add tests for color property setters (#48) 2020-02-14 09:24:04 +08:00
Bei Li e1793072d9
Add some UI tests (#26)
* Add UI tests target

* Fix header

* Update example

* Add test for UIView

* Add test for UIActivityIndicatorView

* Add test for UIButton

* Add test for page control
2020-02-06 22:35:49 +08:00
Bei Li 8355826eff
Unify Style (#40)
* Update project settings

* Update style for Obj-C files

* Update style for Swift files
2019-12-10 11:40:10 +08:00
Bei Li 76c01aa0fe
Update APIs to align with readme (#35)
* Update APIs

* Public UIImage+DarkModeKit

* Refine names

* Refine names

* Remove extra space

* Add a simple test for color

* Correct pbxproj
2019-12-10 11:07:20 +08:00
Bei Li 226cfc7e3d
Fix tests (#38) 2019-12-09 17:58:27 +08:00
Bei Li 84d459e9b5
Fix a potential crash (#30) 2019-11-26 11:53:57 +08:00
Daohan Chong 53b09d2a50
Update headers (#14) 2019-10-31 12:11:39 +08:00
Bei Li 77fb1d7cc7
SPM support (#7)
* Structure files

* Structure Obj-C files

* Add SPM support

* Remove useless import

* Update products setting
2019-10-31 11:35:12 +08:00