Look and Feel - Toggle Buttons and the MIDI Sources panel...
-
@Christoph-Hart said in Look and Feel - Toggle Buttons and the MIDI Sources panel...:
You can reset the look and feel
How?
-
@d-healey I might have wrong but I think Christoph's saying you can comment out the custom LAF and re-activate it when you're ready to export your plugin.
-
@ustk Nope, that doesn't reset it.
Docs aren't helpful either - https://docs.hise.audio/working-with-hise/menu-reference/view/index.html#reset-custom-look-and-feel
And I've got the same problem as @Lindon. I'm not even using LAF for comboboxes in my script.
@Christoph-Hart - In fact as soon as you add this line
const var laf = Engine.createGlobalScriptLookAndFeel();
to your script and compile it will turn all of the settings floating tile comboboxes black, try it yourself.Update:
Look what I found :) Doesn't fix the settings panel though. -
Try this.... ..
IF it doesn't work save the XML close HISE and reload the project/open XML. -
HiseSnippet 1496.3ocwW80aaaCDWJMJnwcYsEn.CCXOHjGJrWcbkcRV1ZvP8eRbavRZMhyJFPPPGsDsMWnHEnnZhaQw9psG1KC6Ky9FjcTTxRJUMKMCCSAQl73wi+t638GMPvcwggbgg4xGMK.aX9YVCmwjS6MEQXF6sig4mac.JThE1ZRcmEfBCwdFll25YJBlKunQ7ye8ztHJh4hyHYX7JNwEuOwmHynNn8OPnz9HO7QD+bbuQ68b4rdbJOBvysrbLBPtmhlfeARw1BVFlKsqGQxECkHIND3oK2a1vo7yXZ9eEIjLhhUSZZLDDjlrQuoDp2fTcMzvvbwAYZ9szZ9CrNf3QlSOyBbu3Ery1Qdaf4BEgzhEfTyOFj5yodJA7QfmYN3snFd22ZnqfDHyVQgs6XsGCbNiQfYOOrz7ZrvyWxpGG3fIa3iNE2W.Sluipa53T2dCGmZauRkUp.F+Po8aPBaJZr82auKaBgga3Jvfp8LJeDhpE69b9ocXd8wXZU0VA1aHvSHpqI8iXtRBmUcUOA5rA7fnfCvrntfmbhfGw7Vst83TdlT2lO5WpsRk2sREa3YRiwvMiNTZUmy62uU7iFauW+y03j1Sh8upyPoeHP6.hMPfpscF4o.YzwqeRBI8ax3pJVIgCwAHABb00zKjHOMt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8U0dKKjHmk+SS9DZS2oz1zKM2z0Dt22Z.Q5Nsb7tPI3ExO8eMdS9nmUr1EtG6Jy.6hV8+oa5W37I.Enw.UDMTCTPTYTdQj+PHV0ECHgA4QCU2IVPkjQO2IMqyPLyKdxEvSxhMUyMSVrY5hF9HWA+0t5pFpOq51wT.Lwh+hxkgOsElaOuPgkkSCGCeH540ttJSwZ.1KeOstA6Y8avd13FrmMuA64atA6Yqavd91qbOpDWchfD95vDfvfciyXaZtqt2O0MRi+FP+myEH
-
LAF with Custom settings (Transparent BG) -
This post is deleted! -
@Rudra-Ghosh but I want to use laf, if I comment it out and reset that doesn't fix the problem. Or will it be okay in the exported plugin?
-
@d-healey Yes... LAF is okay in Exported plugins too.
-
@d-healey said in Look and Feel - Toggle Buttons and the MIDI Sources panel...:
if I comment it out and reset that doesn't fix the problem.
In such case you will need to reopen HISE.
-
@Rudra-Ghosh said in Look and Feel - Toggle Buttons and the MIDI Sources panel...:
@d-healey said in Look and Feel - Toggle Buttons and the MIDI Sources panel...:
if I comment it out and reset that doesn't fix the problem.
In such case you will need to reopen HISE.
What I mean is that hiding the problem is not a solution.
Are you saying that with laf enabled and the settings panel combo boxes black, I can export the plugin and the settings panel will look normal again?
-
@d-healey If you enable Laf register....you will get black box until or unless you write
laf.registerFunction("drawComboBox", function(g, obj) { .........rest of the code g.setColour(0xFFF7B7C7);
-
@d-healey I didn't hide anything...didn't hide black combobox either. If you write
laf.registerFunction("drawComboBox", function(g, obj) { .........rest of the code g.setColour(0x00F7B7C7); // make transparent });
-
Works perfectly in DAW -
So in order to use the settings tile I have to make all combo boxes transparent and then redraw the settings tile using a panel and a paint routine?
-
@d-healey Not only transparent, you can select any Combobox/Custom settings panel color from the code.
laf.registerFunction("drawComboBox", function(g, obj) { .........rest of the code g.setColour(0xFFC7D1D6); });
const var laf = Engine.createGlobalScriptLookAndFeel();
Always override the default LAF. So you don't need to write Paint routine to draw combobox. The default combo box will be overridden by the
drawComboBox
-
Content.makeFrontInterface(500, 400); const var laf = Engine.createGlobalScriptLookAndFeel(); laf.registerFunction("drawPopupMenuBackground", function(g, obj) { g.fillAll(0xFF222222); }); laf.registerFunction("drawPopupMenuItem", function(g, obj) { var a = obj.area; var h = a[3]; if(obj.isSeparator) { g.setColour(Colours.white); g.drawLine(a[0]+10, a[0] + a[2]-10, a[1] + a[3]/2, a[1] + a[3]/2, 1.0); return; } if(obj.isTicked) { g.setColour(0x9F5AC4EC); g.fillEllipse([a[0] + h/3, a[1] + h/3, h/3, h/3]); } g.setFont("Calibri", 15.0); if(obj.isHighlighted) { g.setColour(0x9F5AC4EC); g.fillRect(obj.area); g.setColour(Colours.white); g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left"); }else{ g.setColour(Colours.white); g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left"); } }); laf.registerFunction("drawComboBox", function(g, obj) { var a = obj.area; g.setColour(0xFF1B2129); g.fillRoundedRectangle(a, 1.0); g.setColour(Colours.withAlpha(0xFFACACAC, (obj.enabled && obj.active) ? 1.0 : 0.2)); g.drawAlignedText(obj.text, [a[0] + 10, a[1], a[2] - 30, a[3]], "centred"); var h = a[3]; g.drawTriangle([a[0] + a[2] - h/3 - 10, a[1] + h/3, h/4, h/4], Math.PI*2,1.0); });
-
@Rudra-Ghosh Thanks for the example, that makes it more clear. I think I'm still going to avoid LAF for now, it feels too janky.
-
@d-healey The only thing I'm not confident is the
Content.createPath()
issue that makes the components disappearing as we mentioned in the related thread. I'm pretty confident about the rest. It is just that switching from custom to standard LAF makes some weirdness inside Hise (hence the reset function), but once compiled, everything works as it should. -
@d-healey said in Look and Feel - Toggle Buttons and the MIDI Sources panel...:
@Rudra-Ghosh Thanks for the example, that makes it more clear. I think I'm still going to avoid LAF for now, it feels too janky.
exactly what I decided......