Skip to content

Commit

Permalink
Upgrade iced to 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jsatka committed Jul 31, 2023
1 parent d3e2452 commit f2ca2b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ bevy_render = "0.11"
bevy_utils = "0.11"
bevy_window = "0.11"

iced = { git = "https://github.com/iced-rs/iced.git", rev = "5dd9234" }
iced_core = { git = "https://github.com/iced-rs/iced.git", rev = "5dd9234" }
iced_graphics = { git = "https://github.com/iced-rs/iced.git", rev = "5dd9234" }
iced_runtime = { git = "https://github.com/iced-rs/iced.git", rev = "5dd9234" }
iced_wgpu = { git = "https://github.com/iced-rs/iced.git", rev = "5dd9234" }
iced_winit = { git = "https://github.com/iced-rs/iced.git", rev = "5dd9234" }
iced = "0.10.0"
iced_core = "0.10.0"
iced_graphics = "0.9.0"
iced_runtime = "0.1.0"
iced_wgpu = "0.11.0"
iced_winit = "0.10.0"

[dev-dependencies]
bevy = "0.11"
Expand Down
10 changes: 7 additions & 3 deletions examples/fonts.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
use bevy::prelude::*;
use bevy_iced::iced::{Font, widget::{text, column}};
use bevy_iced::iced::{
widget::{column, text},
Font,
};
use bevy_iced::{IcedContext, IcedPlugin};

static ALPHAPROTA_FONT_BYTES: &'static [u8] = include_bytes!("../assets/fonts/AlphaProta.ttf");
static RAINBOW2000_FONT_BYTES: &'static [u8] = include_bytes!("../assets/fonts/Rainbow2000-Regular.ttf");
static RAINBOW2000_FONT_BYTES: &'static [u8] =
include_bytes!("../assets/fonts/Rainbow2000-Regular.ttf");

const ALPHAPROTA_FONT: Font = Font::with_name("Alpha Prota");
const RAINBOW2000_FONT: Font = Font::with_name("Rainbow 2000");
Expand All @@ -30,4 +34,4 @@ fn ui_system(mut ctx: IcedContext<UiMessage>) {
text(format!("I am the default font")),
text(format!("I am another font")).font(RAINBOW2000_FONT)
));
}
}

0 comments on commit f2ca2b4

Please sign in to comment.