Add a theme picker

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-08-02 14:55:27 -07:00
co-authored by Nathan Sobo
parent e080739d57
commit b30d0daabf
20 changed files with 982 additions and 437 deletions
+3 -2
View File
@@ -5,7 +5,8 @@ use gpui::{
elements::*,
geometry::{rect::RectF, vector::vec2f},
keymap::Binding,
AppContext, Border, Entity, MutableAppContext, Quad, View, ViewContext, ViewHandle,
AppContext, Border, Entity, MutableAppContext, Quad, RenderContext, View, ViewContext,
ViewHandle,
};
use postage::watch;
use std::{cmp, path::Path, sync::Arc};
@@ -371,7 +372,7 @@ impl View for Pane {
"Pane"
}
fn render<'a>(&self, cx: &AppContext) -> ElementBox {
fn render<'a>(&self, cx: &RenderContext<Self>) -> ElementBox {
if let Some(active_item) = self.active_item() {
Flex::column()
.with_child(self.render_tabs(cx))