Skip to content

Commit

Permalink
updated iced repo commit to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Nov 14, 2023
1 parent b7f8dab commit 4c09731
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ itertools = { version = "0.11.0", optional = true }

[dependencies.iced_widget]
git = "https://github.com/iced-rs/iced.git"
rev = "751ea77c29f6eb3d00f45f0a04c833a1d03a425c"
rev = "817f72868746461891ca4e74473c555f3b5c5703"
#version = "0.1.1"

#[dependencies.iced_renderer]
Expand Down Expand Up @@ -114,7 +114,7 @@ members = [

[workspace.dependencies.iced]
git = "https://github.com/iced-rs/iced.git"
rev = "751ea77c29f6eb3d00f45f0a04c833a1d03a425c"
rev = "817f72868746461891ca4e74473c555f3b5c5703"
#version = "0.10.0"
features = ["advanced", "lazy", "tokio"]

Expand Down
9 changes: 6 additions & 3 deletions examples/tab_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ use iced::{
use iced_aw::{TabBar, TabLabel};

fn main() -> iced::Result {
TabBarExample::run(Settings::default())
TabBarExample::run(Settings {
default_text_size: 12.into(),
..Default::default()
})
}

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -131,13 +134,13 @@ impl Application for TabBarExample {
.push(
TextInput::new("Tab label", &state.new_tab_label)
.on_input(Message::TabLabelInputChanged)
.size(22)
.size(16)
.padding(5.0),
)
.push(
TextInput::new("Tab content", &state.new_tab_content)
.on_input(Message::TabContentInputChanged)
.size(22)
.size(12)
.padding(5.0),
)
.push(Button::new(Text::new("New")).on_press(Message::NewTab))
Expand Down
4 changes: 2 additions & 2 deletions src/native/tab_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ fn draw_tab<Renderer>(
line_height: LineHeight::Relative(1.3),
shaping: iced_widget::text::Shaping::Advanced,
},
Point::new(icon_bounds.x, icon_bounds.center_y()),
Point::new(icon_bounds.center_x(), icon_bounds.center_y()),
style.icon_color,
);
}
Expand All @@ -726,7 +726,7 @@ fn draw_tab<Renderer>(
line_height: LineHeight::Relative(1.3),
shaping: iced_widget::text::Shaping::Advanced,
},
Point::new(text_bounds.x, text_bounds.center_y()),
Point::new(text_bounds.center_x(), text_bounds.center_y()),
style.text_color,
);
}
Expand Down

0 comments on commit 4c09731

Please sign in to comment.