Rename ThemeVariant
to Theme
(#3252)
This PR renames the `ThemeVariant` type to `Theme`. This better reflects its purpose, as well as matches the same name as we had before, which should make porting crates slightly easier. Release Notes: - N/A
This commit is contained in:
parent
9cb8512603
commit
74853ea55f
22 changed files with 82 additions and 82 deletions
|
@ -21,7 +21,7 @@ use lsp::DiagnosticSeverity;
|
|||
use std::{any::TypeId, borrow::Cow, fmt::Debug, num::NonZeroU32, ops::Range, sync::Arc};
|
||||
use sum_tree::{Bias, TreeMap};
|
||||
use tab_map::TabMap;
|
||||
use theme::ThemeVariant;
|
||||
use theme::Theme;
|
||||
use wrap_map::WrapMap;
|
||||
|
||||
pub use block_map::{
|
||||
|
@ -505,7 +505,7 @@ impl DisplaySnapshot {
|
|||
&'a self,
|
||||
display_rows: Range<u32>,
|
||||
language_aware: bool,
|
||||
theme: &'a ThemeVariant,
|
||||
theme: &'a Theme,
|
||||
) -> impl Iterator<Item = HighlightedChunk<'a>> {
|
||||
self.chunks(
|
||||
display_rows,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue