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
|
@ -81,7 +81,7 @@ use std::{
|
|||
pub use sum_tree::Bias;
|
||||
use sum_tree::TreeMap;
|
||||
use text::Rope;
|
||||
use theme::{ActiveTheme, PlayerColor, ThemeColors, ThemeSettings, ThemeVariant};
|
||||
use theme::{ActiveTheme, PlayerColor, Theme, ThemeColors, ThemeSettings};
|
||||
use util::{post_inc, RangeExt, ResultExt, TryFutureExt};
|
||||
use workspace::{ItemNavHistory, SplitDirection, ViewId, Workspace};
|
||||
|
||||
|
@ -9962,7 +9962,7 @@ pub fn highlight_diagnostic_message(
|
|||
(message_without_backticks, highlights)
|
||||
}
|
||||
|
||||
pub fn diagnostic_style(severity: DiagnosticSeverity, valid: bool, theme: &ThemeVariant) -> Hsla {
|
||||
pub fn diagnostic_style(severity: DiagnosticSeverity, valid: bool, theme: &Theme) -> Hsla {
|
||||
match (severity, valid) {
|
||||
(DiagnosticSeverity::ERROR, true) => theme.status().error,
|
||||
(DiagnosticSeverity::ERROR, false) => theme.status().error,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue