SkillAgentSearch skills...

ThemeManager

ThemeManager is a lightweight library for application to switching themes. support more attributes and theme extensions. more easy and convenient to use.

Install / Use

/learn @snail-z/ThemeManager
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<img src="http://oqebi7u13.bkt.clouddn.com/ThemeManager.png" alt="ThemeManager" title="ThemeManager">

Language Version License Platform

ThemeManager is a lightweight library for application to switching themes, support more attributes and theme extensions. more easy and convenient to use.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Requires iOS 7.0 or later
  • Requires Automatic Reference Counting (ARC)

Installation

ThemeManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

platform :ios, '7.0'
use_frameworks!

target 'You Project' do
    
	pod "ThemeManager", '~> 2.0'
    
end

Preview

  • Switch support images.

    <img src="http://oqebi7u13.bkt.clouddn.com/preview1.gif" width="204px" height="365px">
  • Mode during the day and night mode switch of the skin.

    <img src="http://oqebi7u13.bkt.clouddn.com/preview2.gif" width="204px" height="365px">
  • A variety of styles to switch.

    <img src="http://oqebi7u13.bkt.clouddn.com/preview3.gif" width="204px" height="365px">
  • Support fonts and transparency switches.

    <img src="http://oqebi7u13.bkt.clouddn.com/preview4.gif" width="204px" height="365px">

Usage

See demo. please wait...

Update

  • Support iPhone X

  • Support iOS 11

  • Support custom method theme switch

// When the external custom methods, you can use it.
- (void)zh_addThemePickerForSelector:(SEL)sel withArguments:(id)arguments, ...;

Note:
The all parameters must be id type. 
if the basic data types needs to be encapsulated into NSNumber; the struct type needs to be encapsulated into NSValue. 
Example:
NSNumber *number = [NSNumber numberWithInteger:2];
NSValue *value = [NSValue valueWithCGSize:CGSizeMake(100, 100)];
zhThemeColorPicker *picker = ThemeColorPickerWithKey(@"key");
[object zh_addThemePickerForSelector:@selector(setColor:Integer:setCGSize:)
		       withArguments:picker, number, value];

Author

snail-z, haozhang0770@163.com

License

ThemeManager is available under the MIT license. See the LICENSE file for more info.

View on GitHub
GitHub Stars167
CategoryCustomer
Updated9mo ago
Forks28

Languages

Objective-C

Security Score

92/100

Audited on Jul 4, 2025

No findings