Skip to content

Commit

Permalink
Update lemna
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCharlton committed Nov 24, 2023
1 parent f0069fe commit 548bfa9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
23 changes: 12 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl lemna::Component for M8PlugApp {
node!(
widgets::Div::new(),
[size: [Auto, 30],
direction: Direction::Row,
direction: Row,
padding: [5],
],
)
Expand Down
6 changes: 3 additions & 3 deletions plugin/src/drag_sources.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::sync::Arc;

use crate::app::*;
use lemna::{self, widgets, *};
use lemna::{self, style::HorizontalPosition, widgets, *};

#[derive(Debug)]
pub struct DragSources {
Expand Down Expand Up @@ -63,7 +63,7 @@ impl Component for AllTracksDragSource {
} else {
"NO DATA"
}))
.style("h_alignment", HorizontalAlign::Center)
.style("h_alignment", HorizontalPosition::Center)
.style("color", if has_data { DARK_GRAY } else { LIGHT_GRAY }))),
)
}
Expand Down Expand Up @@ -112,7 +112,7 @@ impl Component for TracksDragSource {
)
.push(node!(
widgets::Text::new(txt!(format!("{}", i + 1)))
.style("h_alignment", HorizontalAlign::Left)
.style("h_alignment", HorizontalPosition::Left)
.style("color", if has_data { LIGHT_GRAY } else { MID_GRAY }),
[margin: [3]]
))
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Plugin for M8Plug {

fn editor(&self, _async_executor: AsyncExecutor<Self>) -> Option<Box<dyn Editor>> {
let app_params = self.params.clone();
lemna_nih_plug::create_lemna_editor::<lemna::render::wgpu::WGPURenderer, M8PlugApp, _, _>(
lemna_nih_plug::create_lemna_editor::<M8PlugApp, _, _>(
"Midi M8",
400,
300,
Expand Down

0 comments on commit 548bfa9

Please sign in to comment.