(path: &Path)
| 49 | .strip_prefix("--fs-") |
| 50 | .and_then(|line| line.split_once(':')) |
| 51 | else { |
| 52 | continue; |
| 53 | }; |
| 54 | let value = value.trim().trim_end_matches(';'); |
| 55 | assert!( |
| 56 | value.len() == 7 && value.starts_with('#'), |
| 57 | "shared theme color `{name}` must be #rrggbb" |
| 58 | ); |
| 59 | let rgb = u32::from_str_radix(&value[1..], 16) |
| 60 | .unwrap_or_else(|_| panic!("shared theme color `{name}` is not hexadecimal")); |
| 61 | let constant = name.replace('-', "_").to_ascii_uppercase(); |
| 62 | writeln!( |
| 63 | code, |