Skip to content

Commit

Permalink
drag style for text
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Aug 15, 2023
1 parent 799d2e4 commit 7a88c0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ pub trait View {
style
};
paint_bg(cx, &style, size);

if style.color.is_some() {
cx.color = style.color;
}
self.paint(cx);
paint_border(cx, &style, size);
paint_outline(cx, &style, size);
Expand Down
2 changes: 1 addition & 1 deletion src/views/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ pub(super) fn apply_diff<T, V, VF>(
}

for DiffOpMove { from, to } in diff.moved {
let item = std::mem::take(&mut children[from]).unwrap();
let item = children[from].take().unwrap();
items_to_move.push((to, item));
}

Expand Down

0 comments on commit 7a88c0b

Please sign in to comment.