LAF for Waveform floating tile connected to Sine Wave Generator?
-
I'm styling the various graphs and analyzers in my plugin but I can't find the LAF functions for styling a Waveform Floating Tile connected to a Sine Wave Generator.
I'm able to style the filter graph, LFO plotter and spectral analyzer but none of the LAF
registerFunction
methods work for styling the waveform.Any ideas?
HiseSnippet 1743.3oc2YstbZbCEdWauYBjlzjzLYR+2NLc5fScw.FGbZmNA7EbYBNFabtzo+Hi7tZAUKj1pUXaZF+LzWm9y9HzGg9Hj2.2i1kE10FvDrSyE9gM5xQ5SemiNWD0EbKrmGWnombuttXM8uvnQWlr0ZsPDlV000zuowKQGhc3h10JWQa0ttHOOrslt9raplhdh4z7+71mrJhhXV3Acoo8BNwBWizlHGza8ROkPoUP138HsiL6BkpZwYqwo7N.bl0HqlKx5.TS7yPpoMig1Oi7Zoo+PiBXmGWDWzY+r4xgKlcohYsWof0iKZY6TbkUb1unCJe1kWFD5ZaXSjbQCIRh8zzmaUtc2Fs3GwB1fWP7H6SwpF4zZ.6bP2U3Ta0QT0q1ZsHT65g7jmlltQ8Ar1rAr18L1hXS52+.1619CXNPhnDn9Lwg2rwfWtnvKaD3MDHoGARyE.o6XzvRPbkCFQgmaXTkIwBGDnmhBkf4pMi80LViCyfIyzFc.th.ZzWhzExlcAy7YyN+OlLInq7jlTji4OYFJhk.CmjZbKDsFmePYlcELllVM8EWzrgK1RJPTyxLDsqGVX9sl0prsYcJWB6PRXsxHvMIdPiJcXVRBmkNks.cTn.qBFDME7NL6TKX5DNklKXx2+2l27Mm.azEuHaJHWFwqijsFh3IeSxDlMy3gkAVvoC9mWliHxVkotsP86QfsWvLalbyC6mRFG35fZUSCqSFW3K9qXFDPl8lw6vptb3ppv7HV0ELy4OojmzSyTgPgyq4lBjaqwPAAS6RoDBVBkJnFgg8l5U3yFsPnJHzIqoCkijDVSSIgheBLznohPYl.MxhO7hWlOm3zGtXxjgdkZp1i1tbFzHcpJ8328.5MWp4UH3bNr.tBVlKV97WR4W5RJegwJenhzjydFWh2lk1WWl7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C9yRae0z9Jz5blIz57q7U+80yJCgOxc8Ff3X2o9nOXgxM2mNA29ZiddP8Y4Ocv8sL14iKvZD9pT8qzN3GNpewuwv3pcf31hFj+Hh6t+tTcA9PB9n3dQucoyVCvT6oPaWdG0CHrEBxu7X.yOqS6FPIPVXfXYLLU8nh5yn7JFzNqpsuqULy1uwovmdClS0Vu2f4BG7yl8nMxRvesUvSxpbydc+d.tk4+KqlvXKUaybZ9OSazXJsgBldskU7k5bBleZEbooUvBSqfKOsB9noUvhSqfqbwBppmsbGHpefuCMsspuQP7d89IanOq1+AMhCdV![CleanShot 2024-10-11 at 13.36.50.gif](/assets/uploads/files/1728679027049-cleanshot-2024-10-11-at-13.36.50.gif) ![CleanShot 2024-10-11 at 13.36.50.gif](/assets/uploads/files/1728679033501-cleanshot-2024-10-11-at-13.36.50.gif) ![CleanShot 2024-10-11 at 13.36.50.gif](/assets/uploads/files/1728679046562-cleanshot-2024-10-11-at-13.36.50.gif)
-
hi_core/hi_components/audio_components/SampleComponents.cpp:94
void WaveformComponent::paint(Graphics &g) { if (useFlatDesign) { g.setColour(findColour(bgColour)); g.fillAll(); g.setColour(findColour(fillColour)); g.fillPath(path); g.setColour(findColour(lineColour)); g.strokePath(path, PathStrokeType(2.0f)); } else { auto laf = getSpecialLookAndFeel<LookAndFeelMethods>(); laf->drawOscilloscopeBackground(g, *this, getLocalBounds().toFloat()); laf->drawOscilloscopePath(g, *this, path); } }
If I flip the
useFlatDesign
conditional like this:if (!useFlatDesign)
then the Waveform Floating Tile renders with the analyser LAF functions as expected.
I don't know enough about the SampleComponents.cpp file to know if and how
useFlatDesign
is set to false so the LAF functions work.@Christoph-Hart is this a bug? If not, how do I get the Wave Floating Tile rendering with LAF functions?
-
@dannytaurus a few bits have yet to be updated / got left behind with LAF. I would definitely also like to see this added officially please @Christoph-Hart
-
@DanH said in LAF for Waveform floating tile connected to Sine Wave Generator?:
@dannytaurus a few bits have yet to be updated / got left behind with LAF.
Good to know, thanks.
For now I'm fixing it with a
#define
and#ifdef
in the source code but I don't want to sprinkle too many of those around if I can help it -
@dannytaurus yeah, in this case we can just ditch the useFlatDesign property, I think it was a relict of the past.
Could be the case that something on a very rarely used UI component starts looking weird though :)