Skip to content

Commit

Permalink
Merge pull request #97 from squidowl/update-iced
Browse files Browse the repository at this point in the history
update iced
  • Loading branch information
tarkah authored Jul 4, 2023
2 parents f5759ac + 1bed272 commit ec6409f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Changed:
- Sorting channel nicknames
- Title headers has been changed to also display user count for channels

Fixed:

- The last word of a message sometimes dissapeared

# 2023.1-alpha1 (2023-06-30)

Added:
Expand Down
29 changes: 15 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ features = ["v4"]
members = ["data"]

[patch.crates-io]
iced = { git = "https://github.com/tarkah/iced", rev = "d73dba1f1c2dda7f58c9983e7ee8fbac6f563a65" }
iced_core = { git = "https://github.com/tarkah/iced", rev = "d73dba1f1c2dda7f58c9983e7ee8fbac6f563a65" }
iced = { git = "https://github.com/tarkah/iced", rev = "d79cedd8da99345947f5b9fcb1ebc3a145cc4112" }
iced_core = { git = "https://github.com/tarkah/iced", rev = "d79cedd8da99345947f5b9fcb1ebc3a145cc4112" }
8 changes: 3 additions & 5 deletions src/buffer/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ mod nick_list {

container(
scrollable(column)
.vertical_scroll(
iced::widget::scrollable::Properties::new()
.width(1)
.scroller_width(1),
)
.direction(scrollable::Direction::Vertical(
scrollable::Properties::new().width(1).scroller_width(1),
))
.style(theme::Scrollable::Hidden),
)
.width(Length::Shrink)
Expand Down
4 changes: 2 additions & 2 deletions src/buffer/scroll_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ pub fn view<'a>(
};

scrollable(container(content).width(Length::Fill).padding([0, 8]))
.vertical_scroll(
.direction(scrollable::Direction::Vertical(
scrollable::Properties::default()
.alignment(status.alignment())
.width(5)
.scroller_width(5),
)
))
.on_scroll(move |viewport| Message::Scrolled {
count,
remaining,
Expand Down
4 changes: 2 additions & 2 deletions src/screen/dashboard/side_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ impl SideMenu {
}

container(
scrollable(column).vertical_scroll(
scrollable(column).direction(scrollable::Direction::Vertical(
iced::widget::scrollable::Properties::default()
.width(0)
.scroller_width(0),
),
)),
)
.padding([8, 0, 6, 6])
.center_x()
Expand Down
2 changes: 1 addition & 1 deletion src/widget/selectable_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ where

let bounds = limits.max();

let (width, height) = renderer.measure(
let Size { width, height } = renderer.measure(
&self.content,
size,
self.line_height,
Expand Down

0 comments on commit ec6409f

Please sign in to comment.