When renaming, match the color of the renamed token in the rename editor

This commit is contained in:
Nathan Sobo 2022-03-10 16:38:45 -07:00
parent 69ce021f32
commit a498cd32c8
2 changed files with 46 additions and 10 deletions

View file

@ -136,7 +136,7 @@ impl TextStyle {
if self.font_properties != style.font_properties {
self.font_id = font_cache.select_font(self.font_family_id, &style.font_properties)?;
}
self.color = Color::blend(self.color, style.color);
self.color = Color::blend(style.color, self.color);
if let Some(factor) = style.fade_out {
self.color.fade_out(factor);
}