| 206 |
206 |
|
surface_raised: Color32::from_rgb(0xDD, 0xDD, 0xDD),
|
| 207 |
207 |
|
surface_well: Color32::from_rgb(0xF4, 0xF4, 0xF4),
|
| 208 |
208 |
|
content: Color32::from_rgb(0x00, 0x00, 0x00),
|
| 209 |
|
- |
content_secondary: Color32::from_rgb(0x33, 0x33, 0x33),
|
| 210 |
|
- |
content_muted: Color32::from_rgb(0x80, 0x80, 0x80),
|
|
209 |
+ |
// Derived from the ink and the page rather than picked, so these
|
|
210 |
+ |
// two are makeover's answer copied here, not a choice this file
|
|
211 |
+ |
// gets to make. `theme_colors_default_is_audiofiles` is what keeps
|
|
212 |
+ |
// them equal to what loading the skin produces.
|
|
213 |
+ |
content_secondary: Color32::from_rgb(0x1B, 0x1B, 0x1B),
|
|
214 |
+ |
content_muted: Color32::from_rgb(0x3A, 0x3A, 0x3A),
|
| 211 |
215 |
|
danger: Color32::from_rgb(0xC2, 0x2F, 0x2F),
|
| 212 |
216 |
|
success: Color32::from_rgb(0x2E, 0x7D, 0x32),
|
| 213 |
217 |
|
action: Color32::from_rgb(0x3B, 0x5A, 0x9F),
|
| 1182 |
1186 |
|
assert_eq!(theme.surface_sunken, Color32::from_rgb(0x28, 0x34, 0x57));
|
| 1183 |
1187 |
|
assert_eq!(theme.surface_raised, Color32::from_rgb(0x1a, 0x1b, 0x26));
|
| 1184 |
1188 |
|
assert_eq!(theme.content, Color32::from_rgb(0xc0, 0xca, 0xf5));
|
| 1185 |
|
- |
assert_eq!(theme.content_secondary, Color32::from_rgb(0xa9, 0xb1, 0xd6));
|
| 1186 |
|
- |
assert_eq!(theme.content_muted, Color32::from_rgb(0x56, 0x5f, 0x89));
|
|
1189 |
+ |
// The two emphasis steps are derived from the ink and the page, not
|
|
1190 |
+ |
// read. The fixture authors #a9b1d6 and #565f89 and gets neither back,
|
|
1191 |
+ |
// which is the point: what a theme writes under these keys does not
|
|
1192 |
+ |
// survive loading, so a renderer cannot be handed a ramp that runs
|
|
1193 |
+ |
// backwards.
|
|
1194 |
+ |
assert_eq!(theme.content_secondary, Color32::from_rgb(0xaa, 0xb2, 0xd9));
|
|
1195 |
+ |
assert_eq!(theme.content_muted, Color32::from_rgb(0x74, 0x7a, 0x97));
|
| 1187 |
1196 |
|
assert_eq!(theme.danger, Color32::from_rgb(0xf7, 0x76, 0x8e));
|
| 1188 |
1197 |
|
assert_eq!(theme.success, Color32::from_rgb(0x9e, 0xce, 0x6a));
|
| 1189 |
1198 |
|
assert_eq!(theme.action, Color32::from_rgb(0x7a, 0xa2, 0xf7));
|