Restore theme sorting in Zed2 (#3563)

This PR restores the sorting of themes in the theme selector in Zed2.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-12-08 15:08:35 -05:00 committed by GitHub
parent 40b219f861
commit 4353bdb9d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 15 deletions

View file

@ -31,6 +31,15 @@ pub enum Appearance {
Dark,
}
impl Appearance {
pub fn is_light(&self) -> bool {
match self {
Self::Light => true,
Self::Dark => false,
}
}
}
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum LoadThemes {
/// Only load the base theme.