Remove ThemeColor
in favor of theme2::Theme
This commit is contained in:
parent
bb3f59252e
commit
e1032c5341
42 changed files with 225 additions and 391 deletions
|
@ -20,7 +20,7 @@ impl<S: 'static + Send + Sync> ProjectPanel<S> {
|
|||
}
|
||||
|
||||
fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {
|
||||
let color = ThemeColor::new(cx);
|
||||
let theme = theme(cx);
|
||||
|
||||
div()
|
||||
.id(self.id.clone())
|
||||
|
@ -28,7 +28,7 @@ impl<S: 'static + Send + Sync> ProjectPanel<S> {
|
|||
.flex_col()
|
||||
.w_full()
|
||||
.h_full()
|
||||
.bg(color.surface)
|
||||
.bg(theme.surface)
|
||||
.child(
|
||||
div()
|
||||
.id("project-panel-contents")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue