Coder Social home page Coder Social logo

xiaodingpa / thememanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snail-z/thememanager

0.0 1.0 0.0 4.78 MB

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

License: MIT License

Ruby 1.59% Objective-C 98.41%

thememanager's Introduction

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", '~> 1.1'
    
end

Preview

  • Switch support images.

  • Mode during the day and night mode switch of the skin.

  • A variety of styles to switch.

  • Support fonts and transparency switches.

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, [email protected]

License

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

thememanager's People

Contributors

snail-z avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.