Skip to content

Commit

Permalink
Remove specific color for calc area border. Use theme instead
Browse files Browse the repository at this point in the history
  • Loading branch information
shartrec committed Jul 10, 2024
1 parent f1281dd commit ed7e9e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ui/calc_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ impl CalcWindow {
pub(super) fn view<'a>(&'a self, _id: &Id) -> Element<Message> {
let lcd = text_editor(&self.content)
.height(Length::Fill)
.style(|_theme, _status| {
.style(|theme: &Theme, status| {
text_editor::Style {
background: Background::Color(Color::TRANSPARENT),
border: Border::default().with_width(Pixels::from(1)).with_color(Color::from_rgb8(0x35, 0x3f, 0x3f)),
.. text_editor::default(_theme, _status)
border: Border::default().with_width(Pixels::from(1))
.with_color(theme.extended_palette().background.base.text),
.. text_editor::default(theme, status)
}
})
.on_action(|action| {
Expand Down

0 comments on commit ed7e9e5

Please sign in to comment.