CTAssetsPickerDefines.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. MIT License (MIT)
  3. Copyright (c) 2015 Clement CN Tsang
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE.
  19. */
  20. /* Default size */
  21. #define CTAssetCollectionThumbnailLengh 70.0f
  22. #define CTAssetCollectionThumbnailSize CGSizeMake(CTAssetCollectionThumbnailLengh, CTAssetCollectionThumbnailLengh)
  23. #define CTAssetsPickerPopoverContentSize CGSizeMake(695.0f, 580.0f)
  24. /* Default appearance */
  25. #define CTAssetsPikcerAccessDeniedViewTextColor [UIColor colorWithRed:129.0f/255.0f green:136.0f/255.0f blue:148.0f/255.0f alpha:1]
  26. #define CTAssetsPickerNoAssetsViewTextColor [UIColor colorWithRed:153.0f/255.0f green:153.0f/255.0f blue:153.0f/255.0f alpha:1]
  27. #define CTAssetsPikcerThumbnailTintColor [UIColor colorWithRed:164.0f/255.0f green:164.0f/255.0f blue:164.0f/255.0f alpha:1]
  28. #define CTAssetsPikcerThumbnailBackgroundColor [UIColor colorWithRed:235.0f/255.0f green:235.0f/255.0f blue:235.0f/255.0f alpha:1]
  29. #define CTAssetCollectionViewCellTitleFont [UIFont preferredFontForTextStyle:UIFontTextStyleBody]
  30. #define CTAssetCollectionViewCellTitleTextColor [UIColor darkTextColor]
  31. #define CTAssetCollectionViewCellCountFont [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1]
  32. #define CTAssetCollectionViewCellCountTextColor [UIColor darkTextColor]
  33. #define CTAssetCollectionViewCellAccessoryColor [UIColor colorWithRed:187.0f/255.0f green:187.0f/255.0f blue:193.0f/255.0f alpha:1]
  34. #define CTAssetsGridViewBackgroundColor [UIColor whiteColor]
  35. #define CTAssetsGridViewCellDisabledColor [UIColor colorWithWhite:1 alpha:0.8]
  36. #define CTAssetsGridViewCellHighlightedColor [UIColor colorWithWhite:0 alpha:0.5]
  37. #define CTAssetsGridSelectedViewBackgroundColor [UIColor colorWithWhite:1 alpha:0.3]
  38. #define CTAssetsGridSelectedViewTintColor [UIView new].tintColor
  39. #define CTAssetLabelSize CGSizeMake(25.0f, 25.0f)
  40. #define CTAssetLabelFont [UIFont preferredFontForTextStyle:UIFontTextStyleBody]
  41. #define CTAssetLabelTextColor [UIColor whiteColor]
  42. #define CTAssetLabelBackgroundColor [UIView new].tintColor
  43. #define CTAssetLabelBorderColor [UIColor whiteColor]
  44. #define CTAssetsGridViewFooterFont [UIFont preferredFontForTextStyle:UIFontTextStyleBody]
  45. #define CTAssetsGridViewFooterTextColor [UIColor darkTextColor]
  46. #define CTAssetsPageViewPageBackgroundColor [UIColor whiteColor]
  47. #define CTAssetsPageViewFullscreenBackgroundColor [UIColor blackColor]