Made the theme picker sort from dark to light
Added a layer into 'ConstrainedBox' to clip it 's children Made the welcome experience responsive to small and large sizes
This commit is contained in:
parent
8db7e17ac5
commit
3b31f10c6f
4 changed files with 9 additions and 4 deletions
|
@ -102,7 +102,10 @@ impl<D: PickerDelegate> View for Picker<D> {
|
|||
.read(cx)
|
||||
.render_match(ix, state, ix == selected_ix, cx)
|
||||
})
|
||||
.on_down(MouseButton::Left, move |_, cx| {
|
||||
// Capture mouse events
|
||||
.on_down(MouseButton::Left, |_, _| {})
|
||||
.on_up(MouseButton::Left, |_, _| {})
|
||||
.on_click(MouseButton::Left, move |_, cx| {
|
||||
cx.dispatch_action(SelectIndex(ix))
|
||||
})
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue