[feature request] Preset browser search bar text in LAF
-
@d-healey LAF requests, are the best!
-
@d-healey was this ever resolved? I can't seem to change the text or highlight colour in the search bar of the preset browser.
-
@HISEnberg Not sure, did you try
drawPresetBrowserSearchBar
? -
@d-healey yes that's what I have been using but the drawText doesn't work and even trying to reset the size of the search bar via scripting instead of using the property editor data is a bit buggy. I will post a minimal snippet later on, perhaps it's a bug or needed feature request.
-
The documentation doesn't state that you can edit the text property of the search bar, but I doubt I am the only one who has tried to do this.
Here is the snippet
HiseSnippet 1435.3ocsW0uahaDDeMI9Tg1qsWUe.VgTaIUHN6P.tqmN0.DnEUxETH2cU5zonE60v1X1EsdIjzpH0mf9pz+suD8co+W+yqyZavX939.oZIvdmu1edlYmYbOovgFDHjHibWb6DJx3SL6eKWMp4HBii5bBx3SMOkDnnRbDoF2NgDDPcQFF68CZBFY2GEd8OeeChOg6PSHgPuPvbncYiYpDp8N9mX99sItzKXiWR5iNtiif2T3KlB3YOSKzDhyUjgzmQzhkwD8ijfQHiu07wUpXSb8p4YW19wCb8bnkqYU8nZGRp7HOuZV1GU1sl2Q.HuWKWlRH6qHJZ.XzFB2a6ORLiGsAufEvF3S0KrQ8gcNhLp4Hluau4Nm.DxX+dItp8hbUeo4oLW1B5ItrOOjANQikcZFYdaPx9C.RFKAo8ifzCL66HYSTIbz34iM6vgHnGAhMKCkHYQY968MaJ.I3pRiIWQaKgEKznPsCsJhO5QVG7jb4f3SfB27rtm87yureqtsZdQqSvOEacS61UqZY0p5Shk4ZhD2VcYOIMfpZHEyBfTnmhmuOCoplhwSDbXQg7qJX9CV1Lcq2dq1wQRA2XWgCwuqPbUctaaJ0ufFqqoVIIcHSmJ2dJ2QwD7B4ckjYojoOkHcF0fHyWD6MWrgEwhA+xA49sb3rZ.Q...DJQfMG1HLbMrTf9MRm5VH5VPoYL0n59SFQRnLhonEwVkpbvAOAGqnGbX3bwTtK08bpihvG5SKPJhssJYokZq1efOb7Hsc5QTiJngFCbeEwupRQbsRve1g+d8By8vGd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u5SUhwQGaPnS60Jr2mgQKNAx.CyVQ+GKbCZRA
-
@Christoph-Hart is it possible to change the text displayed in the search bar or the preset browser? Also the highlighting colour?
-
@Christoph-Hart Maybe a job for CSS?
-
@d-healey is it possible to mix and match? text entry is one thing that could benefit from it.
I have been playing around with comboboxes lately and I caught up with your and Chris' talk on item height, which resulted in a unique function for LAF that just wants a return of the height instead of processing any graphics methods.
So maybe this can be done for text entry: the function just wants a return of a JSON object with various properties much like the ModalTextInput method which can be customized.
-
@aaronventure said in [feature request] Preset browser search bar text in LAF:
is it possible to mix and match?
CSS and LAF? Yeah.
-
Yes the preset browser is definitely a strong contender to be customized with CSS (everything from positioning the columns to styling the scroll bars is covered by the current feature set of the CSS renderer so I just have to hook it up and assign custom class selectors to the elements of the preset browser), but I'm not sure how much you can do with the current state.
-
-
@Christoph-Hart Oh nice!
-
@Christoph-Hart You know the parameter dump thing you added for modules, what about a css selector dump for components?
-
@d-healey There's already a CSS debugger. If you've assigned a CSS LAF to a component you can right click and use Show CSS debugger, then you'll see this:
Current variable values: { "bgColour": "#55FFFFFF", "itemColour": "#66333333", "itemColour2": "#FB111111", "textColour": "#FFFFFFFF" } ============================== /* CSS for component hierarchy: */ div div div div div div div div div div div div div div div div div div div div div button #b1 .scriptbutton /** Component stylesheet: */ button #b1 .scriptbutton { background-color[]: 0xFFFF0000 color[]: 0xFFFFFFFF } /** Inherited style sheets: */ button { background-color[]: 0xFFFF0000 color[]: 0xFFFFFFFF }
-
@Christoph-Hart said in [feature request] Preset browser search bar text in LAF:
you can right click
Where do I right click, on the component?
-
@d-healey interface designer in edit mode.
-
@Christoph-Hart Perfect, thank you
-
@Christoph-Hart nice thank you for adding this! Personally I'm a tad rusty on CSS but it's fantastic that this is now integrated.
I always tell myself that if I improve my skills I could be more useful to the community.
Best,
Hisenberg
-
Apologies, that is low hanging fruit and my jokes are better, but I am quite excited to explore the CSS integration into HISE
-
@HISEnberg said in [feature request] Preset browser search bar text in LAF:
my jokes are better
…says 'HISEnberg".