Skip to content

Commit

Permalink
lots of renaming, refactoring, and optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyDM committed Jun 20, 2020
1 parent ed98153 commit dcd70d0
Show file tree
Hide file tree
Showing 40 changed files with 3,865 additions and 2,871 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_audio"
version = "0.2.6"
version = "0.3.0"
authors = ["Billy Messenger <https://github.com/BillyDM>"]
license = "MIT"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cargo run --package phase_meter --release
Add `iced` and `iced_audio` as dependencies in your `Cargo.toml`:
```
iced = { version = "0.1", features = ["image"] }
iced_audio = "0.2"
iced_audio = "0.3"
```
__Both Iced Audio and [Iced] move fast and the `master` branch can contain breaking changes!__ If
you want to learn about a specific release, check out [the release list].
Expand Down
12 changes: 6 additions & 6 deletions examples/db_meter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use iced::{
};

use iced_audio::{
db_meter, knob, DBMeter, DBRange, Knob, TickMark, TickMarkGroup,
TickMarkTier,
bar_tick_marks, db_meter, knob, DBMeter, DBRange, Knob, TickMark,
TickMarkGroup, TickMarkTier,
};

use std::time::Instant;
Expand Down Expand Up @@ -101,7 +101,7 @@ impl Application for DBMeterApp {
},
),

tick_marks: TickMarkGroup::from_vec(vec![
tick_marks: TickMarkGroup::new(vec![
TickMark {
position: db_range.to_normal(0.0),
tier: TickMarkTier::One,
Expand Down Expand Up @@ -333,8 +333,8 @@ impl db_meter::StyleSheet for CustomDBMeterStyle {
}
}

fn tick_mark_style(&self) -> Option<db_meter::TickMarkStyle> {
Some(db_meter::TickMarkStyle {
fn tick_mark_style(&self) -> Option<bar_tick_marks::Style> {
Some(bar_tick_marks::Style {
length_tier_1: 4,
length_tier_2: 3,
length_tier_3: 2,
Expand All @@ -349,7 +349,7 @@ impl db_meter::StyleSheet for CustomDBMeterStyle {

offset: 2,

placement: db_meter::TickMarkPlacement::Right,
placement: bar_tick_marks::Placement::RightOrBottom,
})
}
}
Loading

0 comments on commit dcd70d0

Please sign in to comment.