@@ -24,29 +24,99 @@ external unsafeGet7: (string, string, string, string, string, string, string) =>
|
24 | 24 | external unsafeGetMultiple: array<string> => Color.t = "PlatformColor" |
25 | 25 | |
26 | 26 | module Ios = { |
27 | | -type t = [ |
| 27 | +// Standard Colors <https://developer.apple.com/documentation/uikit/uicolor/standard_colors> |
| 28 | +type adaptableColors = [ |
| 29 | + | #systemBlue |
| 30 | + | #systemBrown |
| 31 | + | #systemGreen |
| 32 | + | #systemIndigo |
| 33 | + | #systemOrange |
| 34 | + | #systemPink |
| 35 | + | #systemPurple |
| 36 | + | #systemRed |
| 37 | + | #systemTeal |
| 38 | + | #systemYellow |
| 39 | + ] |
| 40 | +type adaptableGrayColors = [ |
| 41 | + | #systemGray |
| 42 | + | #systemGray2 |
| 43 | + | #systemGray3 |
| 44 | + | #systemGray4 |
| 45 | + | #systemGray5 |
| 46 | + | #systemGray6 |
| 47 | + ] |
| 48 | +type transparentColors = [ |
28 | 49 | | #clear |
29 | | - | #darkText |
| 50 | + ] |
| 51 | +type fixedColors = [ |
| 52 | + | #black |
| 53 | + | #blue |
| 54 | + | #brown |
| 55 | + | #cyan |
| 56 | + | #darkGray |
| 57 | + | #gray |
| 58 | + | #green |
| 59 | + | #lightGray |
| 60 | + | #magenta |
| 61 | + | #orange |
| 62 | + | #purple |
| 63 | + | #red |
| 64 | + | #white |
| 65 | + | #yellow |
| 66 | + ] |
| 67 | + |
| 68 | +// UI Element Colors https://developer.apple.com/documentation/uikit/uicolor/ui_element_colors |
| 69 | +type labelColors = [ |
30 | 70 | | #label |
31 | | - | #lightText |
32 | | - | #link |
33 | | - | #opaqueSeparator |
34 | | - | #placeholderText |
35 | | - | #quaternaryLabel |
36 | | - | #quaternarySystemFill |
37 | 71 | | #secondaryLabel |
38 | | - | #secondarySystemBackground |
| 72 | + | #tertiaryLabel |
| 73 | + | #quaternaryLabel |
| 74 | + ] |
| 75 | +type fillColors = [ |
| 76 | + | #systemFill |
39 | 77 | | #secondarySystemFill |
40 | | - | #secondarySystemGroupedBackground |
41 | | - | #separator |
| 78 | + | #tertiarySystemFill |
| 79 | + | #quaternarySystemFill |
| 80 | + ] |
| 81 | +type textColors = [ |
| 82 | + | #placeholderText |
| 83 | + ] |
| 84 | +type standardContentBackgroundColors = [ |
42 | 85 | | #systemBackground |
43 | | - | #systemFill |
44 | | - | #systemGroupedBackground |
45 | | - | #tertiaryLabel |
| 86 | + | #secondarySystemBackground |
46 | 87 | | #tertiarySystemBackground |
47 | | - | #tertiarySystemFill |
| 88 | + ] |
| 89 | +type groupedContentBackgroundColors = [ |
| 90 | + | #systemGroupedBackground |
| 91 | + | #secondarySystemGroupedBackground |
48 | 92 | | #tertiarySystemGroupedBackground |
49 | 93 | ] |
| 94 | +type separatorColors = [ |
| 95 | + | #separator |
| 96 | + | #opaqueSeparator |
| 97 | + ] |
| 98 | +type linkColors = [ |
| 99 | + | #link |
| 100 | + ] |
| 101 | +type nonadaptableColors = [ |
| 102 | + | #darkText |
| 103 | + | #lightText |
| 104 | + ] |
| 105 | +type t = [ |
| 106 | + | adaptableColors |
| 107 | + | adaptableGrayColors |
| 108 | + | transparentColors |
| 109 | + | fixedColors |
| 110 | + | labelColors |
| 111 | + | fillColors |
| 112 | + | textColors |
| 113 | + | standardContentBackgroundColors |
| 114 | + | groupedContentBackgroundColors |
| 115 | + | separatorColors |
| 116 | + | linkColors |
| 117 | + | nonadaptableColors |
| 118 | + ] |
| 119 | + |
50 | 120 | @module("react-native") external get: t => Color.t = "PlatformColor" |
51 | 121 | @module("react-native") |
52 | 122 | external get2: (t, t) => Color.t = "PlatformColor" |
|