CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Sep 2015 |
Maintained by Mrdaios.
UIKit appearance 的封装。
To run the example project, clone the repo, and run pod install from the Example directory first.
Objective-C
#import <HaidoraThemeKit/HaidoraThemeKit-Swift.h>
//or #import <XXX-Swift.h>
[HDThemeKit setupThemeWithPrimaryColor:[UIColor redColor] secondaryColor:[UIColor whiteColor]];
//自定义某一类
[UIXXX applyHDTheme:XXX]
Swift
HDThemeKit.setupTheme()
//or HDThemeKit.setupTheme(primaryColor: UIColor(red:0.314, green:0.420, blue:0.471, alpha: 1), secondaryColor: UIColor.whiteColor())
//自定义某一类
UIXXX.applyHDTheme(XXX)
可以通过CocoaSeeds来安装。Seedfile如下:
github "Haidora/HaidoraThemeKit", "0.1.0", :files => "Pod/Classes/*.{swift,h}"
Download the latest tag and drag the sources into your Xcode project.
UIActivityIndicatorView
UIActivityIndicatorView.appearance().activityIndicatorViewStyle - activityIndicatorViewStyleUIActivityIndicatorView.appearance().color - activityColorUINavigationBar
UINavigationBar.appearance().tintColor - navigationItemColorUINavigationBar.appearance().barTintColor - navigationBackgroundUINavigationBar.appearance().barStyle - navigationBarStyleUINavigationBar.appearance().titleTextAttributes.NSForegroundColorAttributeName - navigationTitleColorUINavigationBar.appearance().titleTextAttributes.NSFontAttributeName - navigationTitleFontUIPageControl
UIPageControl.appearance().currentPageIndicatorTintColor - currentPageIndicatorColorUIPageControl.appearance().pageIndicatorTintColor - pageIndicatorColorUIProgressView
UIProgressView.appearance().progressTintColor - progressTintColorUIProgressView.appearance().trackTintColor - trackColorUIProgressView.appearance().progressImage - progressImageUIProgressView.appearance().trackImage - trackImageUIProgressView.appearance().progressViewStyle - progressViewStyleUISegmentedControl
UISegmentedControl.appearance().tintColor - tintColorUISlider
UISlider.appearance().minimumTrackTintColor - minimumTrackTintColorUISlider.appearance().thumbTintColor - thumbTintColorUISlider.appearance().maximumTrackTintColor - maximumTrackTintColor UISlider.appearance().minimumValueImage - minimumValueImageUISlider.appearance().maximumValueImage - maximumValueImageUIStepper
UIStepper.appearance().tintColor - tintColorUISwitch
UISwitch.appearance().onTintColor - turnedOnColorUISwitch.appearance().thumbTintColor - thumbTintColorUISwitch.appearance().onTintColor - tintColorUISwitch.appearance().onImage - onImageUISwitch.appearance().offImage - offImageUITabBar
UITabBar.appearance().barTintColor - tabbarBackgroundUITabBar.appearance().tintColor - barItemTintColorUITabBar.appearance().barStyle - barStyleUITabBar.appearance().translucent - translucentUIToolbar
UIToolbar.appearance().barTintColor - toolbarBackgroundUIToolbar.appearance().tintColor - barItemTintColorUIToolbar.appearance().barStyle - barStyleUIToolbar.appearance().translucent - translucentHaidoraThemeKit is available under the MIT license. See the LICENSE file for more info.