Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/theme/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// TODO(cosmic): some macro generated code causing issues, remove after `VisualStudioDarkPlus` is
// gone
#![allow(deprecated)]

//! Contains extra theme definitions and the [`LazyThemeSet`] type
//!
//! The extra themes are provided in an [`EmbeddedLazyThemeSet`] which is just a newtype around a
Expand Down Expand Up @@ -100,6 +104,7 @@ impl EmbeddedLazyThemeSet {
EmbeddedThemeName::SolarizedLight,
EmbeddedThemeName::SublimeSnazzy,
EmbeddedThemeName::TwoDark,
#[expect(deprecated)]
EmbeddedThemeName::VisualStudioDarkPlus,
EmbeddedThemeName::Zenburn,
]
Expand Down Expand Up @@ -356,6 +361,10 @@ pub enum EmbeddedThemeName {
/// </span><span style="color:#608b4e;"># So the following is suggested
/// </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;
/// </span></pre>
#[deprecated(
since = "0.4.5",
note = "This theme will be removed from this enum in 0.5.0, then removed entirely sometime later"
)]
VisualStudioDarkPlus,
/// zenburn
///
Expand Down Expand Up @@ -413,6 +422,7 @@ impl EmbeddedThemeName {
Self::SolarizedLight => "Solarized (light)",
Self::SublimeSnazzy => "Sublime Snazzy",
Self::TwoDark => "TwoDark",
#[expect(deprecated)]
Self::VisualStudioDarkPlus => "Visual Studio Dark+",
Self::Zenburn => "zenburn",
}
Expand Down
1 change: 1 addition & 0 deletions tests/docs_watchdog/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ fn two_dark() {
}

#[test]
#[expect(deprecated)]
fn visual_studio_dark_plus() {
insta::assert_snapshot!(
sample_html(EmbeddedThemeName::VisualStudioDarkPlus),
Expand Down