Skip to content

Commit

Permalink
Merge pull request bevyengine#11 from rparrett/cosmic-text-ui-scaling
Browse files Browse the repository at this point in the history
Fix `ui_scaling` example failing to compile
  • Loading branch information
TotalKrill authored Jun 19, 2024
2 parents b361099 + 43afc67 commit a70287c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/ui/ui_scaling.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
//! This example illustrates the [`UiScale`] resource from `bevy_ui`.
use bevy::{color::palettes::css::*, prelude::*, text::TextSettings, utils::Duration};
use bevy::{color::palettes::css::*, prelude::*, utils::Duration};

const SCALE_TIME: u64 = 400;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.insert_resource(TextSettings {
allow_dynamic_font_size: true,
..default()
})
.insert_resource(TargetScale {
start_scale: 1.0,
target_scale: 1.0,
Expand Down

0 comments on commit a70287c

Please sign in to comment.