Style the chat panel further

This commit is contained in:
Max Brunsfeld 2023-09-14 17:19:08 -07:00
parent 59269d422b
commit dd7c687041
4 changed files with 46 additions and 21 deletions

View file

@ -1,5 +1,7 @@
use crate::{
elements::*, platform::MouseButton, AppContext, Entity, View, ViewContext, WeakViewHandle,
elements::*,
platform::{CursorStyle, MouseButton},
AppContext, Entity, View, ViewContext, WeakViewHandle,
};
pub struct Select {
@ -102,6 +104,7 @@ impl View for Select {
.contained()
.with_style(style.header)
})
.with_cursor_style(CursorStyle::PointingHand)
.on_click(MouseButton::Left, move |_, this, cx| {
this.toggle(cx);
}),
@ -128,6 +131,7 @@ impl View for Select {
cx,
)
})
.with_cursor_style(CursorStyle::PointingHand)
.on_click(MouseButton::Left, move |_, this, cx| {
this.set_selected_index(ix, cx);
})