Robbert van der Helm
27763d2632
Update the param slider for upstream vizia changes
2023-12-30 14:44:40 +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
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
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
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
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
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
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
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
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
8ae93cc6ab
Remove Copy bound on ParamSlider
2022-07-24 15:15:47 +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
ac28f4d7bf
Show modulation separately in VIZIA ParamSlider
2022-05-01 20:08:11 +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
5b03ae8d0e
Update vizia fork
2022-04-07 18:44:37 +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
47a96ee02b
Fix broken rustdoc links
2022-03-27 03:32:45 +02:00
Robbert van der Helm
d35276437d
Patch vizia to not require pub for lenses
2022-03-23 23:29:49 +01:00
Robbert van der Helm
9e3149b931
Move ParamPtr to the prelude
2022-03-23 12:46:46 +01:00
Robbert van der Helm
d97826e6a3
Apply even ParamSlider Step distribution to input
...
This remaps the input range to be the same as the displayed values since
the actual normalized number range has the numbers at the edge of the
range taking up half as much of the range as the other numbers.
2022-03-22 23:28:15 +01:00
Robbert van der Helm
5e94ec7f1d
Add an evenly distributed CurrentStep mode
2022-03-22 19:44:40 +01:00
Robbert van der Helm
ee3f4e0b37
Fix CurrentStep ParamSlider for non-booleans
...
The width was incorrect.
2022-03-22 19:07:39 +01:00
Robbert van der Helm
4e09491dd5
Fix active state after text entry in a ParamSlider
2022-03-22 02:08:10 +01:00
Robbert van der Helm
3273bb3a35
Remove debug prints
2022-03-22 01:25:42 +01:00
Robbert van der Helm
d83f55728a
Mention vizia ParamSlider set_style() method
2022-03-21 18:36:41 +01:00
Robbert van der Helm
6f264bad85
Fix text entry for vizia ParamSlider
...
With a couple new vizia commits that add the required behavior through
events and a new callback.
2022-03-21 15:58:12 +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
1a9db3ab8e
Temporarily add more widgets to vizia Gain GUI
2022-03-20 01:23:44 +01:00
Robbert van der Helm
4f9a83860b
Replace Binding with two display properties
2022-03-20 01:21:51 +01:00
Robbert van der Helm
c5d4671f06
Add a ParamSlider style that overlays all options
2022-03-19 19:42:50 +01:00
Robbert van der Helm
c3134fb5ef
Add a todo for another ParamSlider style
2022-03-19 19:31:07 +01:00
Robbert van der Helm
9e8b498676
Add a ParamSlider display style highlighting step
...
This might work better for some types of discrete parameters.
2022-03-19 19:29:19 +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
80db6121f3
Add some more styling for the vizia ParamSlider
...
This still doesn't really work well since we can't focus the textbox.
2022-03-19 17:47:50 +01:00
Robbert van der Helm
629619256e
Add some text entry handling for vizia ParamSlider
...
This will need to wait for https://github.com/vizia/vizia/issues/85 as
right now it's not yet possible to get this to behave correctly (other
than perhaps sending manual WindowEvents on the next frame).
2022-03-19 15:29:10 +01:00
Robbert van der Helm
41d30561fa
Add a class to the vizia ParamSlider label
...
So it can be targetted for styling
2022-03-19 13:10:20 +01:00
Robbert van der Helm
2e18ae0ebc
Fix Shift+drag start behavior for iced and vizia
...
The previous calculation was incorrect as it would cause the value to
jump a bit.
2022-03-19 02:18:30 +01:00
Robbert van der Helm
fe5bdf3b88
Snap back when releasing shift on vizia slider
2022-03-19 01:48:57 +01:00
Robbert van der Helm
64950055ea
Implement most of the iced ParamSlider for Vizia
2022-03-19 01:17:13 +01:00