Fix names for Rosé Pine themes (#3771)

This PR fixes the names of the Rosé Pine themes.

We want to keep the Unicode "é" in the theme name, both because this is
the actual name of the theme, and also to maintain parity with Zed1.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-12-21 22:45:29 -05:00 committed by GitHub
parent 94e22ae515
commit 80143b2571
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 10 deletions

View file

@ -7,6 +7,7 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
any_ascii = "0.3.2"
anyhow.workspace = true
clap = { version = "4.4", features = ["derive"] }
convert_case = "0.6.0"

View file

@ -9,6 +9,7 @@ use std::path::PathBuf;
use std::process::Command;
use std::str::FromStr;
use any_ascii::any_ascii;
use anyhow::{anyhow, Context, Result};
use clap::Parser;
use convert_case::{Case, Casing};
@ -187,7 +188,7 @@ fn main() -> Result<()> {
let mut theme_modules = Vec::new();
for theme_family in theme_families {
let theme_family_slug = theme_family.name.to_string().to_case(Case::Snake);
let theme_family_slug = any_ascii(&theme_family.name).to_case(Case::Snake);
let mut output_file =
File::create(themes_output_path.join(format!("{theme_family_slug}.rs")))?;

View file

@ -56,7 +56,7 @@ impl VsCodeThemeConverter {
let syntax_theme = self.convert_syntax_theme()?;
Ok(UserTheme {
name: self.theme_metadata.name.into(),
name: self.theme_metadata.name,
appearance,
styles: UserThemeStylesRefinement {
colors: theme_colors_refinements,