All Projects → lvpengwei → Lvthemekit

lvpengwei / Lvthemekit

Licence: mit
App 多区域皮肤 UIKit Category

Projects that are alternatives of or similar to Lvthemekit

LSAdditions
The Category of Commonly used controls and you can create a control quickly(Object, Control ...)
Stars: ✭ 15 (-80%)
Mutual labels:  uikit, category
RFKit
Toolkit for daily Cocoa development. Since 2012.
Stars: ✭ 20 (-73.33%)
Mutual labels:  uikit, category
Hexo Auto Category
Generate categories automatically for each post in Hexo
Stars: ✭ 49 (-34.67%)
Mutual labels:  category
Fruity
Rusty bindings for Apple libraries
Stars: ✭ 72 (-4%)
Mutual labels:  uikit
React Bootstrap With Material Design
React Bootstrap with Material Design - Powerful and free UI KIT
Stars: ✭ 1,119 (+1392%)
Mutual labels:  uikit
Creature unity
2D Skeletal Animation Unity Runtimes for Creature
Stars: ✭ 50 (-33.33%)
Mutual labels:  skin
Fountain Of Colors
Music visualizer for Rainmeter
Stars: ✭ 65 (-13.33%)
Mutual labels:  skin
Air For Steam
An elegant and customizable skin for Steam
Stars: ✭ 1,044 (+1292%)
Mutual labels:  skin
Bootstrap Xd
Bootstrap Design Template — Assets Library — for Adobe XD
Stars: ✭ 74 (-1.33%)
Mutual labels:  uikit
Gogrocery
Its an eCommerce app inspired from Amazon , big Basket , grofers ,grocery app , Etc
Stars: ✭ 62 (-17.33%)
Mutual labels:  uikit
Screenadaptationkit
🎨iOS rapidScreen Compatible AdapterKit(Deprecate)
Stars: ✭ 70 (-6.67%)
Mutual labels:  uikit
Nicknamer
Spigot Name & Skin changer plugin
Stars: ✭ 59 (-21.33%)
Mutual labels:  skin
Tap water
【声明:未发布前,勿使用,勿star,预计2020年11月底发布】Flutter tab_bar组件,支持中间带加号按钮的TabBar,支持Lottie动画。iTeaTime(技术清谈)团队出品。Highly customizable tabBar and tabBarController for Flutter
Stars: ✭ 52 (-30.67%)
Mutual labels:  uikit
Tailwindcss Sketch Kit
💎 Sketch UI kit for Tailwind CSS
Stars: ✭ 68 (-9.33%)
Mutual labels:  uikit
Lol Skins Viewer
League of Legends Companion App
Stars: ✭ 49 (-34.67%)
Mutual labels:  skin
Uikit Computer Store Template
Computer store e-commerce template
Stars: ✭ 72 (-4%)
Mutual labels:  uikit
Splitflap
A simple split-flap display for your Swift applications
Stars: ✭ 1,047 (+1296%)
Mutual labels:  uikit
Vital Ui Kit
簡單、輕量級、模組化的 UI library (React component can be found in README)
Stars: ✭ 54 (-28%)
Mutual labels:  uikit
Awesome Uikit
Collect JS Frameworks, Web components library and Admin Template.
Stars: ✭ 1,136 (+1414.67%)
Mutual labels:  uikit
Ibanimatable
Design and prototype customized UI, interaction, navigation, transition and animation for App Store ready Apps in Interface Builder with IBAnimatable.
Stars: ✭ 8,585 (+11346.67%)
Mutual labels:  uikit

LVThemeKit

说明

App 多区域皮肤 UIKit Category

LVThemeKit/ObjC 适用于 OC 项目

LVThemeKit/Swift 适用于 Swift 项目

功能

  • UIKit Category
    • UIView
    • UIImageView
    • UILabel
    • UIButton
    • UISlider
  • QuartzCore Category
    • CALayer
    • CAShapeLayer
  • Resource
    • LVThemeColor
    • LVThemeImage
    • LVThemeString
    • LVThemeAttributedString
  • 其他,可以很容易的扩展

用法

  • UIView
// OC
self.label.viewTK.theme.backgroundColor = [LVThemeColor background];
self.label.viewTK.other.backgroundColor = [LVThemeColor otherBackground];
// Swift
label.viewTK.theme.backgroundColor = LVThemeColor.background
label.viewTK.other.backgroundColor = LVThemeColor.otherBackground
  • UIButton
// OC
[self.button.buttonTK.theme setImage:[LVThemeImage image] forState:UIControlStateNormal];
// Swift
button.buttonTK.theme.setImage(LVThemeImage.image, for: .normal)
  • CALayer
// OC
self.layer.layerTK.theme.borderColor = [LVThemeColor background];
// Swift
layer.layerTK.theme.borderColor = LVthemeColor.background

配置

  • LVThemeKitConfig
    • generators: 监听主题变化的通知数组,根据配置的数量生成主题数量
    • applyProperty: 当配置多套主题时,自定义应用顺序,默认是数组顺序
// OC
LVThemeKitConfig *conf = [[LVThemeKitConfig  alloc] init];
config.generators = @[[DayNightObserver class]];
LVThemeKit.config = conf;
// Swift
let conf = LVThemeKitConfig()
conf.generators = [DayNightObserver.self]
LVThemeKitConfig.config = conf

扩展

  • 扩展类,参考UIView/CALayer
  • 扩展属性
    • 支持 KVC,参考UIView.backgroundColor
    • 不支持 KVC,参考UIButton.setTitle:forState:
  • 替换已有的类,比如UIView.viewTK,可以新加一个属性UIView.x_viewTK

例子

安装

Cocoapods

pod 'LVThemeKit/ObjC'

或者

pod 'LVThemeKit/Swift'

类图

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].