Robbert van der Helm
0d5247ee2f
Fix ParamButton hover state and styling
2023-03-18 15:16:52 +01:00
Robbert van der Helm
ce2eab84e1
Add ergonomic resizing w/ GuiContextEvent::Resize
2023-03-18 14:19:49 +01:00
Robbert van der Helm
869e69cd57
Link to ParamEvent in nih_plug_vizia's docs
2023-03-18 13:50:08 +01:00
Robbert van der Helm
f6041789cd
Use computed sizes for ViziaState
2023-03-07 21:22:15 +01:00
Robbert van der Helm
5a8721f63c
Derive Debug for the editor state structs
2023-03-01 19:19:54 +01:00
Robbert van der Helm
e3a923ff3b
Avoid restoring window sizes with ViziaState
...
Unless specified otherwise. This avoids some bugs where old, now
incorrect sizes are being recalled.
2023-02-28 18:50:15 +01:00
Robbert van der Helm
99223ed1c8
Prevent HiDPI scale changes after opening editor
...
Ableton Live does this and it caused mysterious issues where the window
could suddenly be larger than the window's contents when resizing on a
HiDPI setup.
2023-02-27 01:02:52 +01:00
Robbert van der Helm
ed6f5d881c
Update Vizia
2023-02-23 18:43:42 +01:00
Robbert van der Helm
0abfcb6045
Add a ParamButton name override modifier
2023-02-02 20:03:54 +01:00
Robbert van der Helm
875c9da23c
Also fix NOTO_SANS_BOLD_ITALIC
2023-01-17 20:38:40 +01:00
Robbert van der Helm
7e7fea37ee
Fix NOTO_SANS_BOLD font definition
...
This is probably a bug in cosmic-text.
2023-01-17 20:27:02 +01:00
Robbert van der Helm
bb521fcb82
Upgrade Vizia for the cosmic-text changes
...
This brings some breaking changes, and vertical positioning of text may
have changed slightly.
2023-01-12 19:03:02 +01:00
Robbert van der Helm
08c6729ed1
Also add an Editor::param_modulation_changed()
2023-01-11 15:22:26 +01:00
Robbert van der Helm
922d2de603
Add an individual Editor::param_value_changed
2023-01-11 15:22:26 +01:00
Robbert van der Helm
c05bc21581
Also reset Vizia widgets on right click
...
Because why choose. Right click, Ctrl+click, and double click all do the
same thing now.
2022-11-18 17:53:13 +01:00
Robbert van der Helm
9de657e04d
Send vizia parameter change event down the tree
...
Otherwise this doesn't work.
2022-11-15 17:01:24 +01:00
Robbert van der Helm
98bd3add19
Notify nih_plug_vizia GUIs when parameters change
...
This could be useful in some cases when dealing with computed
properties.
2022-11-15 16:43:13 +01:00
Robbert van der Helm
6ebc759706
Move nih_plug_vizia editor to its own module
2022-11-15 16:18:38 +01:00
Robbert van der Helm
2816b9418e
Account for DPI scaling in granular dragging
2022-11-12 02:00:18 +01:00
Robbert van der Helm
910afe7ec4
Wrap ParamSlider granular dragging in a struct
2022-11-11 23:58:18 +01:00
Robbert van der Helm
4f9a0eb117
Mention Y-coordinate direction in remapping utils
...
Since the direction is probably opposite of what you want.
2022-11-11 20:26:39 +01:00
Robbert van der Helm
7d42788be2
Add back a ParamWidgetBase::view with explicit cx
...
The version that returns a callback is nice, but it's a bit awkward when
dealing with multiple parameters.
2022-11-11 20:26:39 +01:00
Robbert van der Helm
3cdae526fd
Rename ParamWidgetBase::view
...
So we can also have a version that takes an explicit `cx` parameter.
2022-11-11 20:26:39 +01:00
Robbert van der Helm
884683a190
Drop ParamLabel again
...
This isn't going to work with vizia right now.
2022-11-11 14:13:05 +01:00
Robbert van der Helm
c9c4116e9d
Add part of a vertical ParamLabel
...
Vizia doesn't seem to support this right now, so I'll drop this again.
2022-11-11 14:11:14 +01:00
Robbert van der Helm
33263b825e
Add a widget for labels with Alt+click text entry
2022-11-11 14:11:14 +01:00
Robbert van der Helm
89af7e366f
Refer to ParamSlider for vizia param mapping docs
...
Instead of duplicating this everywhere.
2022-11-11 14:11:10 +01:00
Robbert van der Helm
c0c6677bcf
Add finer steps to ParamSlider
2022-11-11 03:15:05 +01:00
Robbert van der Helm
e583b8e777
Add finer step sizes to parameters
2022-11-11 03:15:05 +01:00
Robbert van der Helm
e184e6d8a6
Consome scrolling events
...
This sort of fixes using these in ScrollViews
2022-11-11 03:15:05 +01:00
Robbert van der Helm
fd85155fbc
Add scrolling support to ParamButton
2022-11-11 03:15:05 +01:00
Robbert van der Helm
3a064ae705
Add scrolling support to ParamSlider
2022-11-11 03:15:05 +01:00
Robbert van der Helm
bf0f4d56fe
Allow overriding ParamSlider display value
2022-11-11 03:15:05 +01:00
Robbert van der Helm
1c3ac492b0
Rearrange ParamSlider fields
2022-11-11 03:15:05 +01:00
Robbert van der Helm
677f21005d
Break ParamSlider up into functions
2022-11-11 03:15:05 +01:00
Robbert van der Helm
b2da26ecd7
Add prefix to plain_value() and normalized_value()
...
To make it clearer that these functions include monophonic modulation.
When creating GUI widgets, you should be using the unmodulated variants.
2022-11-11 03:15:05 +01:00
Robbert van der Helm
3a22b12d8f
Prevent rustfmt from breaking
...
It didn't like the comment in the middle of a pattern.
2022-11-11 03:15:05 +01:00
Robbert van der Helm
a73f76fbcf
Simplify ParamButton
2022-11-11 03:15:05 +01:00
Robbert van der Helm
14cb1cb679
Move Vizia view param wrangling to helper struct
...
This cleans up the main widget's code a lot. We can move some more
behavior to this helper to reduce duplication.
2022-11-11 03:15:05 +01:00
Robbert van der Helm
52130373a3
Simplify param button checked state
2022-11-11 03:15:05 +01:00
Robbert van der Helm
3f0922b5c0
Add special styling for bypass buttons
2022-11-11 03:15:05 +01:00
Robbert van der Helm
7d4351e4fa
Add a parameter button widget
...
Useful for toggling boolean parameters.
2022-11-11 03:15:05 +01:00
Robbert van der Helm
1df1a646a0
Add more documentation for disabled vizia fonts
2022-11-06 14:09:13 +01:00
Robbert van der Helm
c6a2be41f4
Make registering Vizia's default fonts optional
2022-11-06 14:05:13 +01:00
Robbert van der Helm
6f7780bdeb
Don't register any fonts by default for vizia
...
These now need to be registered individually by the plugin. This saves
on binary size.
2022-11-06 14:05:12 +01:00
Robbert van der Helm
89c2b1f84e
Replace create_vizia_editor_without_theme w/ enum
...
This involves a small breaking change. You can now also completely
disable all of Vizia's theming.
2022-11-06 14:04:55 +01:00
Robbert van der Helm
e8002730a0
Fix clippy lints
2022-11-05 14:19:47 +01:00
Robbert van der Helm
821bb90194
Update vizia, cpal, and other dependencies
...
Vizia wouldn't compile anymore because of mixed create versions in
femtovg, so the fork had to be updated. cpal had a similar thing with
nix and alsa.
2022-10-23 22:32:47 +02:00
Robbert van der Helm
375262aaa3
Also drop Sync requirement for editor handles
2022-10-20 14:41:53 +02:00
Robbert van der Helm
bd295b7380
Move nih_plug::param to nih_plug::params
2022-10-20 12:26:12 +02:00