Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeSchmid committed Nov 10, 2023
1 parent e6aa85d commit d04d8b4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions crates/egui/src/containers/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,12 @@ impl<'open> Window<'open> {
round.se = 0.0;
round.sw = 0.0;
}
let header_color = area_content_ui
.visuals()
.widgets.hovered.bg_fill;

area_content_ui
.painter()
.set(*where_to_put_header_background,
RectShape::filled(rect, round, header_color));
let header_color = area_content_ui.visuals().widgets.hovered.bg_fill;

area_content_ui.painter().set(
*where_to_put_header_background,
RectShape::filled(rect, round, header_color),
);
};

title_bar.ui(
Expand Down

0 comments on commit d04d8b4

Please sign in to comment.