Colors.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // _____ _
  2. // |_ _| |_ _ _ ___ ___ _ __ __ _
  3. // | | | ' \| '_/ -_) -_) ' \/ _` |_
  4. // |_| |_||_|_| \___\___|_|_|_\__,_(_)
  5. //
  6. // Threema iOS Client
  7. // Copyright (c) 2016-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. #import <Foundation/Foundation.h>
  21. @class UITextInputTraits;
  22. typedef enum : NSUInteger {
  23. ColorThemeUndefined,
  24. ColorThemeLight,
  25. ColorThemeDark,
  26. ColorThemeDarkWork,
  27. ColorThemeLightWork
  28. } ColorTheme;
  29. @interface Colors : NSObject
  30. + (void)setTheme:(ColorTheme)newTheme;
  31. + (ColorTheme)getTheme;
  32. + (BOOL)areCustomized;
  33. + (void)resetToDefault;
  34. + (void)updateKeyboardAppearanceFor:(id<UITextInputTraits>)textInputTraits;
  35. + (void)updateWindow:(UIWindow *)window;
  36. + (void)updateNavigationBar:(UINavigationBar *)navigationBar;
  37. + (void)updateTabBar:(UITabBar *)tabBar;
  38. + (void)updateSearchBar:(UISearchBar *)searchBar;
  39. + (void)updateTableView:(UITableView *)tableView;
  40. + (void)updateTableViewCellBackground:(UITableViewCell *)cell;
  41. + (void)updateTableViewCell:(UITableViewCell *)cell;
  42. + (void)setTextColor:(UIColor *)color inView:(UIView *)parentView;
  43. + (UIColor *)workBlue;
  44. + (UIColor *)main;
  45. + (UIColor *)background;
  46. + (UIColor *)backgroundBaseColor;
  47. + (UIColor *)backgroundLight;
  48. + (UIColor *)backgroundDark;
  49. + (UIColor *)backgroundSelectedDark;
  50. + (UIColor *)backgroundInverted;
  51. + (UIColor *)backgroundChat;
  52. + (UIColor *)chatBackgroundLines;
  53. + (UIColor *)chatSystemMessageBackground;
  54. + (UIColor *)shareExtensionSelectedBackground;
  55. + (UIColor *)fontNormal;
  56. + (UIColor *)fontLight;
  57. + (UIColor *)fontVeryLight;
  58. + (UIColor *)fontDark;
  59. + (UIColor *)fontLink;
  60. + (UIColor *)fontLinkReceived;
  61. + (UIColor *)fontPlaceholder;
  62. + (UIColor *)fontInverted;
  63. + (UIColor *)fontQuoteId;
  64. + (UIColor *)fontQuoteText;
  65. + (UIColor *)chatBarBackground;
  66. + (UIColor *)chatBarInput;
  67. + (UIColor *)chatBarBorder;
  68. + (UIColor *)switchThumb;
  69. + (UIColor *)bubbleSent;
  70. + (UIColor *)bubbleSentSelected;
  71. + (UIColor *)bubbleReceived;
  72. + (UIColor *)bubbleReceivedSelected;
  73. + (UIColor *)bubbleCallButton;
  74. + (UIColor *)popupMenuBackground;
  75. + (UIColor *)popupMenuHighlight;
  76. + (UIColor *)popupMenuSeparator;
  77. + (UIColor *)ballotHighestVote;
  78. + (UIColor *)ballotRowLight;
  79. + (UIColor *)ballotRowDark;
  80. + (UIColor *)hairline;
  81. + (UIColor *)quoteBar;
  82. + (UIColor *)orange;
  83. + (UIColor *)red;
  84. + (UIColor *)green;
  85. + (UIColor *)verificationGreen;
  86. + (UIColor *)gray;
  87. + (UIColor *)searchBarStatusBar;
  88. + (UIColor *)callStatusBar;
  89. + (UIColor *)mentionBackground:(int)messageInfo;
  90. + (UIColor *)mentionBackgroundMe:(int)messageInfo;
  91. + (UIColor *)mentionTextMe:(int)messageInfo;
  92. + (UIColor *)privacyPolicyLink;
  93. + (UIColor *)mainThemeDark;
  94. + (UIColor *)backgroundThemeDark;
  95. + (UIColor *)markTag;
  96. + (UIColor *)white;
  97. + (UIColor *)black;
  98. + (UIColor *)darkGrey;
  99. + (UIColor *)notificationBackground;
  100. + (UIColor *)notificationShadow;
  101. @end