How to Customize Preset Browser OK-Cancel Button
-
I would like to change the default appearance of my HISE project's Preset browser OK-Cancel Button. Tried LAF but no luck.!(it only changes BG Colour, Text Area etc.
Some may ask why do I want to change the Button ? Answer is "Mismatch". The appearance of these Buttons don't match with my Rest of the Theme and style.
I want to change the button color,
Button Text Font and
Button Shape.
Please excuse the PR way.. I want to change with LAF only. -
@Tania-Ghosh there's an LAF for all the main dialog buttons (thanks @d-healey):
laf.registerFunction("drawDialogButton", function(g, obj)
However this changes all the dialog buttons and can affect the other buttons in the Preset Browser, so be careful.
https://forum.hise.audio/topic/3630/laf-scriptslider/72?_=1618211843524
-
@DanH said in How to Customize Preset Browser OK-Cancel Button:
laf.registerFunction("drawDialogButton", function(g, obj)
No it will not change Preset OK-Cancel button..
It will only affect on Add,Rename,Delete.
-
@Tania-Ghosh oh yeah, maybe it was this one:
laf.registerFunction("drawPresetBrowserDialog", function(g, obj) { });
PS - it's all in the docs:
https://docs.hise.audio/glossary/custom_lookandfeel.html#presetbrowser
-
@DanH said in How to Customize Preset Browser OK-Cancel Button:
laf.registerFunction("drawPresetBrowserDialog", function(g, obj)
{});
No it will not work either...
I want to give the OK-Cancel button to More & Save Presets button looks.
-
@Tania-Ghosh Did you try it with
laf.registerFunction("drawDialogButton", function(g, obj)
as well?
I think you need both but the problem is they affect too many other buttons etc
-
This post is deleted! -
@Tania-Ghosh Better you send a small snippet
-
@DanH No problem it's now working after restarting HISE.
OK-Cancel Buttons changed as well.