Reload current theme on cmd-k shift-T

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-08-04 15:52:23 -06:00
co-authored by Max Brunsfeld
parent 8238c87481
commit 4d947580b1
5 changed files with 28 additions and 15 deletions
+5
View File
@@ -126,6 +126,11 @@ impl ThemeRegistry {
})
}
pub fn clear(&self) {
self.theme_data.lock().clear();
self.themes.lock().clear();
}
pub fn get(&self, name: &str) -> Result<Arc<Theme>> {
if let Some(theme) = self.themes.lock().get(name) {
return Ok(theme.clone());