Set default text_color for workspace.
This commit is contained in:
parent
10564f5140
commit
f50d4b351c
1 changed files with 2 additions and 3 deletions
|
|
@ -108,15 +108,14 @@ pub fn open_new(
|
||||||
|
|
||||||
impl Render for Workspace {
|
impl Render for Workspace {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||||
let theme = cx.theme();
|
|
||||||
|
|
||||||
div()
|
div()
|
||||||
.relative()
|
.relative()
|
||||||
.flex()
|
.flex()
|
||||||
.flex_1()
|
.flex_1()
|
||||||
.flex_col()
|
.flex_col()
|
||||||
.size_full()
|
.size_full()
|
||||||
.bg(theme.background)
|
.bg(cx.theme().background)
|
||||||
|
.text_color(cx.theme().foreground)
|
||||||
.gap_4()
|
.gap_4()
|
||||||
.child(
|
.child(
|
||||||
TitleBar::new("main-title", Box::new(crate::CloseWindow))
|
TitleBar::new("main-title", Box::new(crate::CloseWindow))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue