Robbert van der Helm
ce2eab84e1
Add ergonomic resizing w/ GuiContextEvent::Resize
2023-03-18 14:19:49 +01:00
Robbert van der Helm
f6041789cd
Use computed sizes for ViziaState
2023-03-07 21:22:15 +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
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
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
33263b825e
Add a widget for labels with Alt+click text entry
2022-11-11 14:11:14 +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
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
e1269d07b1
Fix references in docs
2022-10-20 12:21:24 +02:00
Robbert van der Helm
85543e1668
Update Vizia
2022-09-22 19:53:21 +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
9ab07cf4eb
Update Vizia
...
Text sizes are still broken.
2022-04-24 18:12:06 +02:00
Robbert van der Helm
af44796056
Fix clippy lints
2022-04-06 13:33:01 +02:00
Robbert van der Helm
7b9eff456c
Update for new vizia resize patch
...
This version uses a property on the context instead of events. This gets
rid of all of the problems and complexity of the previous
implementation.
2022-03-29 00:02:11 +02:00
Robbert van der Helm
772c1ecfaf
Add a resize handle widget
...
This currently only works on Linux, and it causes a random white bar to
be added to the bottom of the GUI.
2022-03-28 00:33:10 +02:00
Robbert van der Helm
a39eea1fe9
Add a way to rescale and resize the UI from VIZIA
...
With some additional VIZIA patches. This currently causes the layout to
do weird things, so it's not usable yet. On the baseview side this has
also only been implemented for Linux. Once the vizia quirks are gone we
can add a widget that you can add to your GUI to make it scaleable.
2022-03-27 23:09:47 +02:00
Robbert van der Helm
9e3149b931
Move ParamPtr to the prelude
2022-03-23 12:46:46 +01:00
Robbert van der Helm
4086ff724f
Fix casing on GenericUi
2022-03-22 18:50:50 +01:00
Robbert van der Helm
2e91a65f01
Rename theme.css to widgets.css
...
We'll use theme.css for overriding defaults.
2022-03-22 17:33:59 +01:00
Robbert van der Helm
10bd7f46ea
Add a generic UI widget for vizia
...
This only needs a scroll bar.
2022-03-22 17:11:20 +01:00
Robbert van der Helm
b8ff936b21
Add part of a simple peak meter widget for vizia
2022-03-21 22:28:54 +01:00
Robbert van der Helm
f084f14095
Refactor GUIs to use param's own default value
...
This removes the need to pass a lot of these `ParamSetter`s and
`GuiContext`s around. We also don't need explicit events to reset a
parameter anymore since you can get this information from the parameter
itself.
2022-03-21 13:11:36 +01:00
Robbert van der Helm
64eaf37370
Add option to ParamSlider to always fill from left
2022-03-19 18:49:49 +01:00
Robbert van der Helm
64950055ea
Implement most of the iced ParamSlider for Vizia
2022-03-19 01:17:13 +01:00
Robbert van der Helm
d8e8d80402
Add helpers for keyboard modifiers in vizia
2022-03-19 00:38:26 +01:00
Robbert van der Helm
e2c691ba55
Add default styling for nih_plug_vizia GUIs
2022-03-18 19:12:38 +01:00
Robbert van der Helm
47901d9b10
Rename NormalizedParamEvent to RawParamEvent
2022-03-18 17:45:27 +01:00
Robbert van der Helm
efaa4ccdbd
Add more convenient non-type erased param events
2022-03-18 15:52:22 +01:00
Robbert van der Helm
4ce5f359d6
Add parameter setting events for vizia
2022-03-18 15:26:19 +01:00