Preset browser font size
-
Hi there how can I change the font size of the preset names to the same size of the "Add" and "more"?
-
@treynterrio You'll need to use Look and Feel for that. https://docs.hise.audio/glossary/custom_lookandfeel.html#presetbrowser
-
@d-healey I have it like this know. Is there a way to disable the X in the right corner which is there to close the window? and how can I use like + instead off "Add". also is there a way to hide the searchbar? I've a panel in front of it but I can see it when I Click on "Add"
HiseSnippet 1781.3oc4YksaabCEcFYOswJKMAHOWLPnOHUnHnEuFgfnQaABQ1VPxIM.AAAzyPIw5QjBbn7RCbQerO1Og9oz+i9Sz+fzKmcsXEE2Df5jQ.1h2ENGd3kK2q5vYlXGGFWQciitXLVQ8NZ8tfJFVaHhPUZUWQ81Z0XTAzByUpdwXjiC1RQUcsmIMPci0Ube9mmVEYinl3HQJJujQLwsIiHhHocp7bhscSjE9HxnXVuYkVlLZMlMaB.l0zxqLFYdBZ.9.jzrDZJpeSCKhfw6IPBrihpVUl0E8FxNi5Y+KINjiswxFET5Acjm3lLaKIhkRO7TL+TB9r3xTpMjXa0IfHbTTTWuSDsrlGs7Ps8IVjP4Qzy8cUnG4QbNRMwzPdsofbg3PNeLHu.HoFCRq6AoGn0yjSFKhz3Mc0hJv79HXpHNT7rUIweeO24SLUjaD5DbSNzHzizauc9r5k1IelxISBSGNB8SQb8wbrCVzgZq+D8.mGfE0XiFynPizoBsHkzSB0FBWz6OgZJHLpNixFio0rYN3pBprG3L6zlAtmEdI1SvYR9tj5vCoe5vtKGwwmiLb5vFOYb5LYbMxyT4SjslxWPnckcs3RrsC9cI2XZKcfof.CEb3U6abxKAzu3QX7QPpL4bjJcGG0P11GCgpoW3nLhHsQ8A5qAc.PM4L4XHh3Y1riQ1dyLsYrSLnVMwXaI1SBlmiiGPbfoll9DY5TVbzY0IHa1fpSDBFMU1PVN8fr5ri+4.Vz8OxIOD7VA44PvqrbnzgfTzqK8lxAF6S85ok1JvmKzexSzSYXYkZVBef2fWtPMcdelySdeXkcW1DJr1pK1TfnCrwoCd2Y0K5Y7h6nW0r4t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kIisfsvM5Kvb4NwAUDlCKEhsTL9NMxi65Q9kXkT9GpDEuWZl3co0Jpeql6wiSss1sups0tkl62KFeOs2Fe87VUVJ.C2KNkZzdwA9VuRzZ4M9FPv6kRiuPdQRKFWb7czhjpLegiuu19LqI1Hwz0wVVPeeEvR6oJdrr.wPbu3h3E7e1hau9pUb6kW68UEtOPqCQXNbw3MwBvKb77ma75+SEbWsF86C27KBrqq07UK82E3SCTfacJOHZeDbrNDipA6H0ChFLw.RnPjq7BQpIjWcwqcdYaIyzCSsba7d3wWYAYaUekEBTpLBYxYu0z6ZXxeXha4JAvD082oYCs8ks0Kn3d0LvOs74xqLBtXwaMMkTwi.ruXeJdM7oz0vmMuF9r00vmsuF9ry0vmcWpOx6zYLQvF4sLADzog6o8ppMbuzmaDox+VVs98.
-
@treynterrio said in Preset browser font size:
Is there a way to disable the X in the right corner which is there to close the window?
The X is displayed because you are using showAsPopup. Use
.showControl()
instead.@treynterrio said in Preset browser font size:
and how can I use like + instead off "Add"
Look and feel. Use the
drawDialogButton
function.@treynterrio said in Preset browser font size:
also is there a way to hide the searchbar?
I added the ability to set
"ShowSearchBar": false
in the floating tile properties. However it doesn't look like Christoph has merged it yet - https://github.com/christophhart/HISE/pull/444If you have your own fork you can pull it in or use my fork's development branch (it's not yet up to date with the latest changes from Christoph though).
-
@d-healey said in Preset browser font size:
Use .showControl() instead.
this doesn't work for me when I use this the whole preset browser is invisble I've to make it visible again in the properties
-
@treynterrio said in Preset browser font size:
when I use this the whole preset browser is invisble
It's meant to be invisible until the button is pressed, right?
-
@d-healey yeah but when I press the button which should open it is still invisible
-
@treynterrio You need to add the code to make it visible, again using
showControl()
-
@d-healey I've already added this but now the open close button doesn't work no more
-
This post is deleted! -
This is what you need to put in your callback
presetPnl.showControl(value);
And you need to disable this:
-
@d-healey ok I haven't disabled it. Thanks!!!
-
@d-healey everything works perfectly now, the only thing that doesn't work is that I can't change the color of the selected preset. When I change the color in the code the whole preset name is in the same color and cannot be read
-
@treynterrio said in Preset browser font size:
the whole preset name is in the same color and cannot be read.
Not sure what you mean. They are showing up as white text in your snippet.
-
@d-healey sorry I forgot that lines
-
Still showing up for me
-
@d-healey yeah I've exported it like that to see the color that I wanna change here is the code with the problem where you can't see anything:
-
You are drawing the rectangle on top of the text. Swap it around and it will do what you want.
-
@d-healey I tried this already but when I Swap it arround the Name of the first preset isn't visible until I click on it the Text color changes to black
-
@treynterrio Like this: