UIDefines.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // _____ _
  2. // |_ _| |_ _ _ ___ ___ _ __ __ _
  3. // | | | ' \| '_/ -_) -_) ' \/ _` |_
  4. // |_| |_||_|_| \___\___|_|_|_\__,_(_)
  5. //
  6. // Threema iOS Client
  7. // Copyright (c) 2012-2020 Threema GmbH
  8. //
  9. // This program is free software: you can redistribute it and/or modify
  10. // it under the terms of the GNU Affero General Public License, version 3,
  11. // as published by the Free Software Foundation.
  12. //
  13. // This program is distributed in the hope that it will be useful,
  14. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. // GNU Affero General Public License for more details.
  17. //
  18. // You should have received a copy of the GNU Affero General Public License
  19. // along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. #ifndef Threema_UIDefines_h
  21. #define Threema_UIDefines_h
  22. #define kContactsTabBarIndex 0
  23. #define kChatTabBarIndex 1
  24. #define kMyIdentityTabBarIndex 2
  25. #define kSettingsTabBarIndex 3
  26. #define kDefaultInitialTabIndex kChatTabBarIndex
  27. #define kMinimumPasswordLength 8
  28. #define kExportConversationMediaSizeLimit 300 /* MB */
  29. #define kMaxMediaSendAtOnce 5
  30. #define kContactImageSize 512
  31. #define THREEMA_COLOR_PLACEHOLDER [UIColor lightGrayColor]
  32. #define THREEMA_COLOR_LIGHT_GREY [UIColor colorWithRed:153.0/256.0 green:153.0/256.0 blue:153.0/256.0 alpha:1.0]
  33. #define THREEMA_COLOR_GREEN [UIColor colorWithRed:63.0/256.0 green:230.0/256.0 blue:105.0/256.0 alpha:1.0]
  34. #if __LP64__
  35. #define is64Bit (int) 1
  36. #else
  37. #define is64Bit (int) 0
  38. #endif
  39. #endif