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
|
@ -43,13 +43,13 @@ impl<S: 'static + Send + Sync> ContextMenu<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);
|
||||
|
||||
v_stack()
|
||||
.flex()
|
||||
.bg(color.elevated_surface)
|
||||
.bg(theme.elevated_surface)
|
||||
.border()
|
||||
.border_color(color.border)
|
||||
.border_color(theme.border)
|
||||
.child(
|
||||
List::new(
|
||||
self.items
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue