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:
parent
94e22ae515
commit
80143b2571
6 changed files with 19 additions and 10 deletions
|
@ -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"
|
||||
|
|
|
@ -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")))?;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue