Commit b40532e
committed
refactor(theme): tighten the colour helper API
Address review feedback on the new colour system.
Drop getAvailabilityColor's separate brightness parameter and read it from
the ColorScheme instead, so a caller can no longer pass a dark scheme
alongside Brightness.light. Nothing outside this PR calls it yet, so the
signature is free to change now.
Correct getAccentColor's doc comment: the unknown-category fallback is
adapted for dark surfaces like any other hue, so the dark fallback is a
lifted navy rather than the navy literal the comment claimed.
No behaviour change; goldens unaffected.1 parent 3206ddc commit b40532e
4 files changed
Lines changed: 12 additions & 23 deletions
File tree
- lib
- screens
- utils
- widgets
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | 507 | | |
509 | 508 | | |
510 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
115 | | - | |
116 | 121 | | |
117 | | - | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
157 | 153 | | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 157 | + | |
166 | 158 | | |
167 | 159 | | |
168 | 160 | | |
| |||
174 | 166 | | |
175 | 167 | | |
176 | 168 | | |
177 | | - | |
178 | 169 | | |
179 | 170 | | |
180 | 171 | | |
181 | 172 | | |
182 | 173 | | |
183 | 174 | | |
184 | 175 | | |
185 | | - | |
186 | 176 | | |
187 | 177 | | |
188 | 178 | | |
| |||
191 | 181 | | |
192 | 182 | | |
193 | 183 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 184 | + | |
199 | 185 | | |
200 | 186 | | |
201 | 187 | | |
| |||
0 commit comments