|
@@ -35,11 +35,12 @@ class CreateMenuAdd: NSObject {
|
|
|
let fontDisable = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 16)!, NSForegroundColorAttributeName: UIColor(colorLiteralRed: 65.0/255.0, green: 64.0/255.0, blue: 66.0/255.0, alpha: 1.0)]
|
|
|
|
|
|
let colorLightGray = UIColor(colorLiteralRed: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
|
|
|
+ let colorGray = UIColor(colorLiteralRed: 150.0/255.0, green: 150.0/255.0, blue: 150.0/255.0, alpha: 1)
|
|
|
var colorIcon = NCBrandColor.sharedInstance.brand
|
|
|
|
|
|
init (themingColor : UIColor) {
|
|
|
- super.init()
|
|
|
|
|
|
+ super.init()
|
|
|
colorIcon = themingColor
|
|
|
}
|
|
|
|
|
@@ -67,15 +68,15 @@ class CreateMenuAdd: NSObject {
|
|
|
|
|
|
actionSheet.cancelButtonTitle = NSLocalizedString("_cancel_", comment: "")
|
|
|
|
|
|
- actionSheet.addButton(withTitle: NSLocalizedString("_upload_photos_videos_", comment: ""), image: UIImage(named: "menuUploadPhoto"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
|
|
|
+ actionSheet.addButton(withTitle: NSLocalizedString("_upload_photos_videos_", comment: ""), image: CCGraphics.changeThemingColorImage(UIImage(named: "menuUploadPhoto"), color: colorGray), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
|
|
|
appDelegate.activeMain.returnCreate(Int(k_returnCreateFotoVideoPlain))
|
|
|
})
|
|
|
|
|
|
- actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_", comment: ""), image: UIImage(named: "menuUploadFile"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
|
|
|
+ actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_", comment: ""), image: CCGraphics.changeThemingColorImage(UIImage(named: "menuUploadFile"), color: colorGray), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
|
|
|
appDelegate.activeMain.returnCreate(Int(k_returnCreateFilePlain))
|
|
|
})
|
|
|
|
|
|
- actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_text_", comment: ""), image: UIImage(named: "file_txt"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
|
|
|
+ actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_text_", comment: ""), image: CCGraphics.changeThemingColorImage(UIImage(named: "file_txt"), color: colorGray), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
|
|
|
appDelegate.activeMain.returnCreate(Int(k_returnCreateFileText))
|
|
|
})
|
|
|
|