Przeglądaj źródła

Merge branch 'master' into module

harry 3 lat temu
rodzic
commit
03ddaccd32
35 zmienionych plików z 25 dodań i 242 usunięć
  1. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_h.imageset/Contents.json
  2. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_h.imageset/jumpPoint_h@2x.png
  3. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_h.imageset/jumpPoint_h@3x.png
  4. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_n.imageset/Contents.json
  5. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_n.imageset/jumpPoint_n@2x.png
  6. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_n.imageset/jumpPoint_n@3x.png
  7. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_h.imageset/Contents.json
  8. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_h.imageset/musicEditerBtn_h@2x.png
  9. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_h.imageset/musicEditerBtn_h@3x.png
  10. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_n.imageset/Contents.json
  11. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_n.imageset/musicEditerBtn_n@2x.png
  12. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_n.imageset/musicEditerBtn_n@3x.png
  13. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_h.imageset/Contents.json
  14. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_h.imageset/onlyMusic_h@2x.png
  15. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_h.imageset/onlyMusic_h@3x.png
  16. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_n.imageset/Contents.json
  17. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_n.imageset/onlyMusic_n@2x.png
  18. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_n.imageset/onlyMusic_n@3x.png
  19. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_h.imageset/Contents.json
  20. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_h.imageset/pointEditerBtn_h@2x.png
  21. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_h.imageset/pointEditerBtn_h@3x.png
  22. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_n.imageset/Contents.json
  23. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_n.imageset/pointEditerBtn_n@2x.png
  24. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_n.imageset/pointEditerBtn_n@3x.png
  25. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/sliderTHBPin.imageset/Contents.json
  26. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/sliderTHBPin.imageset/sliderTHBPin@2x.png
  27. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/sliderTHBPin.imageset/sliderTHBPin@3x.png
  28. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_h.imageset/Contents.json
  29. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_h.imageset/speedstuck_h@2x.png
  30. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_h.imageset/speedstuck_h@3x.png
  31. 0 22
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_n.imageset/Contents.json
  32. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_n.imageset/speedstuck_n@2x.png
  33. BIN
      BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_n.imageset/speedstuck_n@3x.png
  34. 9 0
      BFCommonKit/Classes/BFCategorys/BFColor+Ext.swift
  35. 16 0
      BFCommonKit/Classes/BFConfig/PQBFConfig.swift

+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_h.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "jumpPoint_h@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "jumpPoint_h@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_h.imageset/jumpPoint_h@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_h.imageset/jumpPoint_h@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_n.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "jumpPoint_n@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "jumpPoint_n@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_n.imageset/jumpPoint_n@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/jumpPoint_n.imageset/jumpPoint_n@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_h.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "musicEditerBtn_h@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "musicEditerBtn_h@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_h.imageset/musicEditerBtn_h@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_h.imageset/musicEditerBtn_h@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_n.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "musicEditerBtn_n@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "musicEditerBtn_n@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_n.imageset/musicEditerBtn_n@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/musicEditerBtn_n.imageset/musicEditerBtn_n@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_h.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "onlyMusic_h@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "onlyMusic_h@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_h.imageset/onlyMusic_h@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_h.imageset/onlyMusic_h@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_n.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "onlyMusic_n@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "onlyMusic_n@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_n.imageset/onlyMusic_n@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/onlyMusic_n.imageset/onlyMusic_n@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_h.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "pointEditerBtn_h@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "pointEditerBtn_h@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_h.imageset/pointEditerBtn_h@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_h.imageset/pointEditerBtn_h@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_n.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "pointEditerBtn_n@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "pointEditerBtn_n@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_n.imageset/pointEditerBtn_n@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/pointEditerBtn_n.imageset/pointEditerBtn_n@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/sliderTHBPin.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "sliderTHBPin@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "sliderTHBPin@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/sliderTHBPin.imageset/sliderTHBPin@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/sliderTHBPin.imageset/sliderTHBPin@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_h.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "speedstuck_h@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "speedstuck_h@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_h.imageset/speedstuck_h@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_h.imageset/speedstuck_h@3x.png


+ 0 - 22
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_n.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "speedstuck_n@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "speedstuck_n@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_n.imageset/speedstuck_n@2x.png


BIN
BFCommonKit/Assets/Resources/BFCommonKit.xcassets/speedstuck_n.imageset/speedstuck_n@3x.png


+ 9 - 0
BFCommonKit/Classes/BFCategorys/BFColor+Ext.swift

@@ -101,6 +101,15 @@ public extension UIColor {
         getRed(&red, green: &green, blue: &blue, alpha: &alpha)
         return [Int(red * 255.0), Int(green * 255.0), Int(blue * 255.0), Int(alpha)]
     }
+    
+    var rgbaf: [CGFloat] {
+        var red: CGFloat = 0
+        var green: CGFloat = 0
+        var blue: CGFloat = 0
+        var alpha: CGFloat = 0
+        getRed(&red, green: &green, blue: &blue, alpha: &alpha)
+        return [ red, green, blue,alpha]
+    }
 
     class func randomColor() -> UIColor {
         let red = CGFloat(arc4random() % 255)

+ 16 - 0
BFCommonKit/Classes/BFConfig/PQBFConfig.swift

@@ -52,6 +52,22 @@ public class PQBFConfig: NSObject {
     // 裁剪主题色
     public var hiddenMusicMask: Bool = true
     public var otherTintColor: UIColor = UIColor(red: 242.0 / 255.0, green: 242.0 / 255.0, blue: 242.0 / 255.0, alpha: 1)
+    
+    //划块使用的图片名 add by ak
+    public var silderPinUsedImageName = "sliderTHBPin"
+    //闪音卡点编辑区未选择中状态颜色 add by ak
+    public var pointEditNamalBackgroundColor = UIColor.hexColor(hexadecimal: "#F9F9F9")
+    
+    //三个模式 btn 高亮和默认图的文件名
+    public var onlyMusicBtnImage_N = "onlyMusic_n"
+    public var onlyMusicBtnImage_H = "onlyMusic_h"
+    public var jumpPointBtnImage_N = "jumpPoint_n"
+    public var jumpPointBtnImage_H = "jumpPoint_h"
+    public var speedStuckBtnImage_N = "speedstuck_n"
+    public var speedStuckBtnImage_H = "speedstuck_h"
+    
+    //闪音卡点发布分享朋友圈使用图片名
+    public var shareFriendBtnImage = "reCreate_opration_friend"
 
     // 微信登陆信息
 //    public var appInfo: WXApiInfo?