feat: change background color
This commit is contained in:
@@ -205,6 +205,7 @@ impl gpui::Render for PullRequestDiffView {
|
|||||||
.flex()
|
.flex()
|
||||||
.w_80()
|
.w_80()
|
||||||
.h_full()
|
.h_full()
|
||||||
|
.bg(theme.colors.surface_chrome)
|
||||||
.border_r_1()
|
.border_r_1()
|
||||||
.border_color(theme.colors.border_muted)
|
.border_color(theme.colors.border_muted)
|
||||||
.p_1()
|
.p_1()
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ impl PullRequestView {
|
|||||||
.items_center()
|
.items_center()
|
||||||
.justify_start()
|
.justify_start()
|
||||||
.p_1()
|
.p_1()
|
||||||
.bg(theme.colors.surface)
|
.bg(theme.colors.surface_chrome)
|
||||||
.border_b_1()
|
.border_b_1()
|
||||||
.border_color(theme.colors.border_muted)
|
.border_color(theme.colors.border_muted)
|
||||||
.child(
|
.child(
|
||||||
@@ -354,8 +354,7 @@ impl gpui::Render for PullRequestView {
|
|||||||
.flex_col()
|
.flex_col()
|
||||||
.child(self.toolbar(cx))
|
.child(self.toolbar(cx))
|
||||||
.child(match &self.pull_request_query {
|
.child(match &self.pull_request_query {
|
||||||
| Some(q) => {
|
| Some(q) => match read_query(q, cx) {
|
||||||
match read_query(q, cx) {
|
|
||||||
| QueryStatus::Loaded(pr) => match (&self.diff_view, self.current_tab) {
|
| QueryStatus::Loaded(pr) => match (&self.diff_view, self.current_tab) {
|
||||||
| (Some(diff_view), Tab::DiffView) => diff_view.clone().into_any_element(),
|
| (Some(diff_view), Tab::DiffView) => diff_view.clone().into_any_element(),
|
||||||
| _ => self.pr_content(pr, cx),
|
| _ => self.pr_content(pr, cx),
|
||||||
@@ -369,8 +368,7 @@ impl gpui::Render for PullRequestView {
|
|||||||
.size_full()
|
.size_full()
|
||||||
.child("loading pr content")
|
.child("loading pr content")
|
||||||
.into_any_element(),
|
.into_any_element(),
|
||||||
}
|
},
|
||||||
}
|
|
||||||
|
|
||||||
| None => div().size_full().child("no pr selected").into_any_element(),
|
| None => div().size_full().child("no pr selected").into_any_element(),
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ impl gpui::Render for Screen {
|
|||||||
.flex()
|
.flex()
|
||||||
.flex_col()
|
.flex_col()
|
||||||
.size_full()
|
.size_full()
|
||||||
.bg(theme.colors.surface_chrome)
|
.bg(theme.colors.background)
|
||||||
.child(self.titlebar.clone())
|
.child(self.titlebar.clone())
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ impl gpui::Render for TitleBar {
|
|||||||
.flex()
|
.flex()
|
||||||
.px(g.safe_area.size.width)
|
.px(g.safe_area.size.width)
|
||||||
.py_2()
|
.py_2()
|
||||||
.bg(g.current_theme.colors.surface_chrome)
|
.bg(g.current_theme.colors.background)
|
||||||
.text_color(g.current_theme.colors.text)
|
.text_color(g.current_theme.colors.text)
|
||||||
.relative()
|
.relative()
|
||||||
.child(repo_selector(cx))
|
.child(repo_selector(cx))
|
||||||
|
|||||||
Reference in New Issue
Block a user