Skip to content

Commit

Permalink
terminal background
Browse files Browse the repository at this point in the history
  • Loading branch information
evnct committed Nov 14, 2023
1 parent bbe431a commit 529a28d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lapce-app/src/panel/terminal_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ fn terminal_tab_header(window_tab_data: Rc<WindowTabData>) -> impl View {
let config = config.get();
s.width_pct(100.0)
.items_center()
.background(*config.get_color(LapceColor::TERMINAL_BACKGROUND))

Check warning on line 242 in lapce-app/src/panel/terminal_view.rs

View check run for this annotation

Codecov / codecov/patch

lapce-app/src/panel/terminal_view.rs#L242

Added line #L242 was not covered by tests
.border_bottom(1.0)
.border_color(*config.get_color(LapceColor::LAPCE_BORDER))
})
Expand Down Expand Up @@ -292,14 +293,16 @@ fn terminal_tab_split(
.style(|s| s.size_pct(100.0, 100.0))
})
.style(move |s| {
s.size_pct(100.0, 100.0).padding_horiz(10.0).apply_if(
index.get() > 0,
|s| {
s.size_pct(100.0, 100.0)
.padding_horiz(10.0)
.apply_if(index.get() > 0, |s| {

Check warning on line 298 in lapce-app/src/panel/terminal_view.rs

View check run for this annotation

Codecov / codecov/patch

lapce-app/src/panel/terminal_view.rs#L296-L298

Added lines #L296 - L298 were not covered by tests
s.border_left(1.0).border_color(
*config.get().get_color(LapceColor::LAPCE_BORDER),
)
},
)
})
.background(
*config.get().get_color(LapceColor::TERMINAL_BACKGROUND),
)

Check warning on line 305 in lapce-app/src/panel/terminal_view.rs

View check run for this annotation

Codecov / codecov/patch

lapce-app/src/panel/terminal_view.rs#L302-L305

Added lines #L302 - L305 were not covered by tests
})
},
)
Expand Down

0 comments on commit 529a28d

Please sign in to comment.