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:
parent
40b219f861
commit
4353bdb9d5
3 changed files with 37 additions and 15 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue