Skip to content

Commit d87958f

Browse files
docs: deprecate Visual Studio Dark+ theme
1 parent a0d920d commit d87958f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/theme/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// TODO(cosmic): some macro generated code causing issues, remove after `VisualStudioDarkPlus` is
2+
// gone
3+
#![allow(deprecated)]
4+
15
//! Contains extra theme definitions and the [`LazyThemeSet`] type
26
//!
37
//! The extra themes are provided in an [`EmbeddedLazyThemeSet`] which is just a newtype around a
@@ -104,6 +108,7 @@ impl EmbeddedLazyThemeSet {
104108
EmbeddedThemeName::SolarizedLight,
105109
EmbeddedThemeName::SublimeSnazzy,
106110
EmbeddedThemeName::TwoDark,
111+
#[expect(deprecated)]
107112
EmbeddedThemeName::VisualStudioDarkPlus,
108113
EmbeddedThemeName::Zenburn,
109114
]
@@ -392,6 +397,10 @@ pub enum EmbeddedThemeName {
392397
/// </span><span style="color:#608b4e;"># So the following is suggested
393398
/// </span><span style="color:#d69d85;">&quot;no&quot; </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;">&quot;yes&quot;</span><span style="color:#dcdcdc;">, </span><span style="color:#b4cea8;">else: </span><span style="color:#d69d85;">&quot;no&quot;
394399
/// </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+
)]
395404
VisualStudioDarkPlus,
396405
/// zenburn
397406
///
@@ -453,6 +462,7 @@ impl EmbeddedThemeName {
453462
Self::SolarizedLight => "Solarized (light)",
454463
Self::SublimeSnazzy => "Sublime Snazzy",
455464
Self::TwoDark => "TwoDark",
465+
#[expect(deprecated)]
456466
Self::VisualStudioDarkPlus => "Visual Studio Dark+",
457467
Self::Zenburn => "zenburn",
458468
}

tests/docs_watchdog/theme.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ fn two_dark() {
446446
}
447447

448448
#[test]
449+
#[expect(deprecated)]
449450
fn visual_studio_dark_plus() {
450451
insta::assert_snapshot!(
451452
sample_html(EmbeddedThemeName::VisualStudioDarkPlus),

0 commit comments

Comments
 (0)