Settings Menu blank with LAF
-
@DanH simple search of the forum reveals...
Look and Feel - Toggle Buttons and the MIDI Sources panel...
It would seem that the MIDI Sources panel uses a default toggle button to represent the selected device - in a way that the MIDI Channel List doesnt.... So w...
Forum (forum.hise.audio)
-
@Lindon Ta, thought it was a newer issue than this and didn't dig deep enough!
many thanks
-
@DanH yeah it was a long time ago for me -- but Dave had the probelm recently - look down the end of the thread - I tthink he comes to teh same conclusion as me....LAF= too janky to use right now...
-
@Lindon said in Settings Menu blank with LAF:
@DanH yeah it was a long time ago for me -- but Dave had the probelm recently - look down the end of the thread - I tthink he comes to teh same conclusion as me....LAF= too janky to use right now...
After playing with it more I've decided to use it, it still feels janky but I'm adapting to its quirks.
-
@d-healey brave...
-
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); });
-
Well this is not a „bug“ in the sense that the scripted LAF expects you to override all functions, but I think there should be a default in place for the things you don‘t override.
-
@DanH said in Settings Menu blank with LAF:
EDIT: I'm not crazy about the Change sample folder colour either
One way is from
HI_LookAndFeels.h
-
I think we should do away with the settings panel and have individual script functions for each of the options. Then we can customise it any way we like.
-
@d-healey Can we script a ui control for the zoom level now?
-
@DanH Yeah, that was added a few days ago. I think the function is
Engine.setZoomLevel();