Skip to content

Commit c6c47cc

Browse files
committed
chore: Use Theme::for_state in redner_inner
1 parent 63c0ea8 commit c6c47cc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,9 @@ where
266266
decorations.hide_edges();
267267
}
268268

269-
let colors = if self.state.contains(WindowState::ACTIVATED) {
270-
&self.theme.active
271-
} else {
272-
&self.theme.inactive
273-
};
269+
let colors = self
270+
.theme
271+
.for_state(self.state.contains(WindowState::ACTIVATED));
274272

275273
let border_paint = colors.border_paint();
276274

0 commit comments

Comments
 (0)