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:
Marshall Bowers 2023-11-07 16:41:36 +01:00 committed by GitHub
parent 9cb8512603
commit 74853ea55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 82 additions and 82 deletions

View file

@ -1,10 +1,10 @@
use crate::{
colors::{GitStatusColors, PlayerColors, StatusColors, SystemColors, ThemeColors, ThemeStyles},
default_color_scales, Appearance, SyntaxTheme, ThemeFamily, ThemeVariant,
default_color_scales, Appearance, SyntaxTheme, Theme, ThemeFamily,
};
fn zed_pro_daylight() -> ThemeVariant {
ThemeVariant {
fn zed_pro_daylight() -> Theme {
Theme {
id: "zed_pro_daylight".to_string(),
name: "Zed Pro Daylight".into(),
appearance: Appearance::Light,
@ -19,8 +19,8 @@ fn zed_pro_daylight() -> ThemeVariant {
}
}
pub(crate) fn zed_pro_moonlight() -> ThemeVariant {
ThemeVariant {
pub(crate) fn zed_pro_moonlight() -> Theme {
Theme {
id: "zed_pro_moonlight".to_string(),
name: "Zed Pro Moonlight".into(),
appearance: Appearance::Dark,
@ -51,7 +51,7 @@ impl Default for ThemeFamily {
}
}
impl Default for ThemeVariant {
impl Default for Theme {
fn default() -> Self {
zed_pro_daylight()
}