Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Iced to 0.13 #170

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
cleanup
alec-mccormick committed Oct 28, 2024
commit a50ce38ffa47fe6127af0dacf14eb025d247aec3
75 changes: 13 additions & 62 deletions Cargo.lock

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

13 changes: 1 addition & 12 deletions nih_plug_iced/src/widgets/param_slider.rs
Original file line number Diff line number Diff line change
@@ -65,17 +65,6 @@ impl Default for State {
}
}

/// The possible UI status of a [`ParamSlider`]. Enables drawing of different styles for each status.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Status {
/// The [`ParamSlider`] can be interacted with.
Active,
/// The [`ParamSlider`] is being hovered.
Hovered,
/// The [`ParamSlider`] is being dragged.
Dragged,
}

/// An internal message for intercep- I mean handling output from the embedded [`TextInput`] widget.
#[derive(Debug, Clone)]
enum TextInputMessage {
@@ -85,7 +74,7 @@ enum TextInputMessage {
Submit,
}

impl<'a, P> ParamSlider<'a, P: Param> {
impl<'a, P: Param> ParamSlider<'a, P> {
pub const DEFAULT_WIDTH: Length = Length::Fixed(180.0);
pub const DEFAULT_HEIGHT: Length = Length::Fixed(30.0);