-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: unread #62
Feat: unread #62
Conversation
let content = if show_divider { | ||
let divider = container(horizontal_rule(1).style(theme::Rule::Unread)) | ||
.width(Length::Fill) | ||
.padding([0, 8]), | ||
) | ||
.vertical_scroll( | ||
scrollable::Properties::default() | ||
.alignment(status.alignment()) | ||
.width(5) | ||
.scroller_width(5), | ||
) | ||
.on_scroll(move |viewport| Message::Scrolled { | ||
count, | ||
remaining, | ||
oldest, | ||
status, | ||
viewport, | ||
}) | ||
.id(state.scrollable.clone()) | ||
.into() | ||
.padding(5); | ||
column![column(old), divider, column(new)] | ||
} else { | ||
column![column(old), column(new)] | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean way of doing this, nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turned out awesome. I might wanna play with other "unread" indicators, but for now this is great.
Agreed! This is much nicer :D |
Resolves #40
Adds the following: