|
| 1 | +// TODO(cosmic): some macro generated code causing issues, remove after `VisualStudioDarkPlus` is |
| 2 | +// gone |
| 3 | +#![allow(deprecated)] |
| 4 | + |
1 | 5 | //! Contains extra theme definitions and the [`LazyThemeSet`] type |
2 | 6 | //! |
3 | 7 | //! The extra themes are provided in an [`EmbeddedLazyThemeSet`] which is just a newtype around a |
@@ -104,6 +108,7 @@ impl EmbeddedLazyThemeSet { |
104 | 108 | EmbeddedThemeName::SolarizedLight, |
105 | 109 | EmbeddedThemeName::SublimeSnazzy, |
106 | 110 | EmbeddedThemeName::TwoDark, |
| 111 | + #[expect(deprecated)] |
107 | 112 | EmbeddedThemeName::VisualStudioDarkPlus, |
108 | 113 | EmbeddedThemeName::Zenburn, |
109 | 114 | ] |
@@ -392,6 +397,10 @@ pub enum EmbeddedThemeName { |
392 | 397 | /// </span><span style="color:#608b4e;"># So the following is suggested |
393 | 398 | /// </span><span style="color:#d69d85;">"no" </span><span style="color:#dcdcdc;">= </span><span style="color:#c586c0;">if </span><span style="color:#b5cea8;">1 </span><span style="color:#dcdcdc;">== </span><span style="color:#b5cea8;">0</span><span style="color:#dcdcdc;">, </span><span style="color:#b4cea8;">do: </span><span style="color:#d69d85;">"yes"</span><span style="color:#dcdcdc;">, </span><span style="color:#b4cea8;">else: </span><span style="color:#d69d85;">"no" |
394 | 399 | /// </span></pre> |
| 400 | + #[deprecated( |
| 401 | + since = "0.4.5", |
| 402 | + note = "This theme will be removed from this enum in 0.5.0, then removed entirely sometime later" |
| 403 | + )] |
395 | 404 | VisualStudioDarkPlus, |
396 | 405 | /// zenburn |
397 | 406 | /// |
@@ -453,6 +462,7 @@ impl EmbeddedThemeName { |
453 | 462 | Self::SolarizedLight => "Solarized (light)", |
454 | 463 | Self::SublimeSnazzy => "Sublime Snazzy", |
455 | 464 | Self::TwoDark => "TwoDark", |
| 465 | + #[expect(deprecated)] |
456 | 466 | Self::VisualStudioDarkPlus => "Visual Studio Dark+", |
457 | 467 | Self::Zenburn => "zenburn", |
458 | 468 | } |
|
0 commit comments