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
f7230b9f43
Add more side padding in ParamButton
2022-11-11 03:15:05 +01:00
Robbert van der Helm
d7f1f1e85f
Add param button styling
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
Robbert van der Helm
e1269d07b1
Fix references in docs
2022-10-20 12:21:24 +02:00
Robbert van der Helm
2a0ed0c5ec
Move PersistentField and helpers to dedicated mod
...
As mentioned in the previous commit's breaking changes entry.
2022-10-20 12:11:04 +02:00
Robbert van der Helm
fb71d0fcce
Move the Params trait out of params::internals
...
This makes much more sense, since this trait is a cornerstone of
NIH-plug.
2022-10-20 12:10:35 +02:00
Robbert van der Helm
3ba62c4aab
Treat triple clicks in Vizia ParamSlider as click
2022-10-08 15:52:36 +02:00
Robbert van der Helm
fc55a519fa
Consume vizia ParamSlider events as appropriate
2022-10-08 15:48:18 +02:00
Robbert van der Helm
33d956a96b
Update Vizia
2022-10-08 15:21:01 +02:00
Robbert van der Helm
ca22806f8c
Fix double click handling after Vizia update
2022-09-22 20:07:04 +02:00
Robbert van der Helm
85543e1668
Update Vizia
2022-09-22 19:53:21 +02:00
Robbert van der Helm
21078bcae0
Fix Vizia resize handle for HiDPI windows
2022-09-22 19:48:08 +02:00
George Atkinson
ec79bb36be
Fix some spelling errors
2022-09-21 17:32:24 +01:00
George Atkinson
eb33a55fcc
Move ParamSliderInternal variables to ParamSlider
2022-09-21 17:30:02 +01:00
Robbert van der Helm
7b02217ad4
Map from the Params object in GenericUi
...
Otherwise reactivity doesn't work.
2022-07-24 15:15:47 +02:00
Robbert van der Helm
8ae93cc6ab
Remove Copy bound on ParamSlider
2022-07-24 15:15:47 +02:00
Robbert van der Helm
f812374ad0
Make it easier to reuse generic UI widget drawing
2022-07-24 15:15:47 +02:00
Robbert van der Helm
2fbf4ca00d
Remove Copy requirement from Vizia generic UI
...
This now uses a dummy lens to map to the parameter.
2022-07-24 15:15:47 +02:00
Robbert van der Helm
70f50018ad
Use regular slides for >3 step parameters
2022-07-24 15:15:47 +02:00
Robbert van der Helm
ef1d56646a
Make Arc<ViziaState> persistable
...
This allows the plugin instance's size and scale to be remembered.
2022-07-13 23:16:54 +02:00
Robbert van der Helm
32ad1212f1
Silence clippy::type_complexity
...
Clippy now wants us to move any usage of the Fn* traits to a typedef.
Doing so will almost certainly not help readability.
2022-07-01 15:50:23 +02:00
Robbert van der Helm
b7bfa5f18e
Update Vizia
...
With two months of breaking changes, hooray! But everything should still
work after some bug squashing in Vizia.
2022-06-18 01:59:57 +02:00
Robbert van der Helm
56cd227543
Make the modulation visualization semi-transparent
2022-05-01 20:16:17 +02:00
Robbert van der Helm
ac28f4d7bf
Show modulation separately in VIZIA ParamSlider
2022-05-01 20:08:11 +02:00
Robbert van der Helm
ae31e416c2
Don't use baseview system scaling on Windows/Linux
...
Until the UI frameworks make it possible to get the size or scale for
the window, this would cause the window contents to be scaled
incorrectly if the host does not set a scale factor.
2022-04-27 18:33:08 +02:00
Robbert van der Helm
bb3175f68e
Return -> Returns at the start of a docstring
...
The imperative tense doesn't make any sense when the function is a mere
getter and doesn't actually perform a nontrivial task.
2022-04-26 19:39:51 +02:00
Robbert van der Helm
482c834450
Update Vizia fork
2022-04-26 14:45:06 +02:00
Robbert van der Helm
9acd312768
Parmaeters are not real, they can't hurt you
2022-04-24 19:46:07 +02:00
Robbert van der Helm
9ab07cf4eb
Update Vizia
...
Text sizes are still broken.
2022-04-24 18:12:06 +02:00
Robbert van der Helm
c02c23cb7f
Use root properties instead of the * selector
...
This works around https://github.com/vizia/vizia/issues/131 , which was
the reason why the vizia update was reverted.
2022-04-20 01:02:35 +02:00
Robbert van der Helm
eb49b0962e
Revert "Revert "Update the Vizia fork""
...
This reverts commit 0fa6eab4d3
.
2022-04-20 01:01:28 +02:00
Robbert van der Helm
0fa6eab4d3
Revert "Update the Vizia fork"
...
This reverts commit f646ffcfb5
.
Text sizes are broken with the current master branch version of Vizia.
2022-04-20 00:40:21 +02:00
Robbert van der Helm
f646ffcfb5
Update the Vizia fork
2022-04-20 00:33:14 +02:00