Skip to content

Commit

Permalink
fix example of tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Jun 20, 2024
1 parent 4eb561d commit 153aa09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tabs/src/ferris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Tab for FerrisTab {
}

fn ferris<'a>(width: f32) -> Container<'a, FerrisMessage> {
Container::new(if cfg!(target_carch = "wasm32") {
Container::new(if cfg!(target_arch = "wasm32") {
Image::new("images/ferris.png")
} else {
Image::new(format!("{}/images/ferris.png", env!("CARGO_MANIFEST_DIR")))
Expand Down
3 changes: 1 addition & 2 deletions examples/tabs/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
mod login;
use iced::{
alignment::{Horizontal, Vertical},
font,
widget::{Column, Container, Text},
Element, Font, Length,
};
Expand All @@ -20,7 +19,7 @@ use settings::{style_from_index, SettingsMessage, SettingsTab, TabBarPosition};
const HEADER_SIZE: u16 = 32;
const TAB_PADDING: u16 = 16;
const ICON_BYTES: &[u8] = include_bytes!("../fonts/icons.ttf");
const ICON: Font = Font::with_name("en icons");
const ICON: Font = Font::with_name("icons");

enum Icon {
User,
Expand Down

0 comments on commit 153aa09

Please sign in to comment.