Skip to content

Commit

Permalink
updated color picket to diff color if its different to update it. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Aug 4, 2023
1 parent 8295448 commit 1165bfe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/native/color_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ where
}

fn diff(&self, tree: &mut Tree) {
let color_picker_state = tree.state.downcast_mut::<State>();

if color_picker_state.overlay_state.color != self.color {
color_picker_state.overlay_state.color = self.color;
}

tree.diff_children(&[&self.underlay, &self.overlay_state]);
}

Expand Down

0 comments on commit 1165bfe

Please sign in to comment.