修正一处书写错误。

This commit is contained in:
徐涛 2025-02-08 16:43:32 +08:00
parent 0369f238f2
commit 6aa3875919
2 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ pub struct M3ColorSet {
pub root: String, pub root: String,
pub on_root: String, pub on_root: String,
pub container: String, pub container: String,
pub on_conatiner: String, pub on_container: String,
pub fixed: String, pub fixed: String,
pub fixed_dim: String, pub fixed_dim: String,
pub on_fixed: String, pub on_fixed: String,
@ -33,7 +33,7 @@ impl M3ColorSet {
root: map_lch_to_srgb_hex(&root), root: map_lch_to_srgb_hex(&root),
on_root: map_lch_to_srgb_hex(&on_root), on_root: map_lch_to_srgb_hex(&on_root),
container: map_lch_to_srgb_hex(&container), container: map_lch_to_srgb_hex(&container),
on_conatiner: map_lch_to_srgb_hex(&on_container), on_container: map_lch_to_srgb_hex(&on_container),
fixed: map_lch_to_srgb_hex(&fixed), fixed: map_lch_to_srgb_hex(&fixed),
fixed_dim: map_lch_to_srgb_hex(&fixed_dim), fixed_dim: map_lch_to_srgb_hex(&fixed_dim),
on_fixed: map_lch_to_srgb_hex(&on_fixed), on_fixed: map_lch_to_srgb_hex(&on_fixed),
@ -57,7 +57,7 @@ impl M3ColorSet {
root: map_lch_to_srgb_hex(&root), root: map_lch_to_srgb_hex(&root),
on_root: map_lch_to_srgb_hex(&on_root), on_root: map_lch_to_srgb_hex(&on_root),
container: map_lch_to_srgb_hex(&container), container: map_lch_to_srgb_hex(&container),
on_conatiner: map_lch_to_srgb_hex(&on_container), on_container: map_lch_to_srgb_hex(&on_container),
fixed: map_lch_to_srgb_hex(&fixed), fixed: map_lch_to_srgb_hex(&fixed),
fixed_dim: map_lch_to_srgb_hex(&fixed_dim), fixed_dim: map_lch_to_srgb_hex(&fixed_dim),
on_fixed: map_lch_to_srgb_hex(&on_fixed), on_fixed: map_lch_to_srgb_hex(&on_fixed),
@ -80,7 +80,7 @@ impl M3ColorSet {
)); ));
variable_lines.push(format!( variable_lines.push(format!(
"--color-{}-on-{}-container: #{};", "--color-{}-on-{}-container: #{};",
prefix, name, self.on_conatiner prefix, name, self.on_container
)); ));
variable_lines.push(format!( variable_lines.push(format!(
"--color-{}-{}-fixed: #{};", "--color-{}-{}-fixed: #{};",
@ -117,7 +117,7 @@ impl M3ColorSet {
)); ));
variable_lines.push(format!( variable_lines.push(format!(
"$color-{}-on-{}-container: #{};", "$color-{}-on-{}-container: #{};",
prefix, name, self.on_conatiner prefix, name, self.on_container
)); ));
variable_lines.push(format!( variable_lines.push(format!(
"$color-{}-{}-fixed: #{};", "$color-{}-{}-fixed: #{};",
@ -162,7 +162,7 @@ impl M3ColorSet {
)); ));
variable_lines.push(format!( variable_lines.push(format!(
"{}On{}Container: '#{}',", "{}On{}Container: '#{}',",
prefix, name, self.on_conatiner prefix, name, self.on_container
)); ));
variable_lines.push(format!("{}{}Fixed: '#{}',", prefix, name, self.fixed)); variable_lines.push(format!("{}{}Fixed: '#{}',", prefix, name, self.fixed));
variable_lines.push(format!( variable_lines.push(format!(