dcoons Posted January 29 Report Share Posted January 29 Hello All, I am trying to apply some principles to dynamically theme a UI in LabVIEW a la Google Material (https://m3.material.io/). I have created a theme class to define the different color schemes for the different situations (light mode, dark mode, whatever else) after loaded from a file. I am getting things to work pretty well overall EXCEPT I cannot find a good way to change the following colors: Listbox: border (the blue box surrounding the two listboxes shown in the screenshot) MulticolumnListbox: border (gray in the screenshots so not too big of a deal) MulticolumnListbox: horizontal lines (cannot see anything that implies dynamic coloring for this) I will go ahead and attach the VI but I doubt it will be very useful for figuring this out - all the coloring will happen via another VI. I just need to figure out the properties to make this happen. Or to be gently let down by telling me it isn't possible for those items and I have to figure out a work around........ side note, this is not where things will actually be put on the screen, so don't get bogged down in that weird detail test vi to theme.vi 1 Quote Link to comment
Ronin7 Posted January 30 Report Share Posted January 30 I don't see a way to change the border color programatically (even with scripting). The only way to change the border color is with the paintbrush tool in the dev environment- so maybe create a dedicated control for each of the above types with the coloring applied in the dev environment and then programatically show/hide each themed control. Not elegant and would require some extra logic to show and hide the themed control but is doable. If you get really desperate you might be able to do what you need with the .net versions of the controls you want to use but that is a whole new can of worms. Quote Link to comment
dcoons Posted January 30 Author Report Share Posted January 30 I’m trying to make it all dynamic enough that I don’t need tricks like hiding controls. Hoping to make this a project-to-project utility in the long term. also a coworker pointed out those scroll bars are likely in the same boat 😭😭 Quote Link to comment
ShaunR Posted January 31 Report Share Posted January 31 17 hours ago, dcoons said: also a coworker pointed out those scroll bars are likely in the same boat 😭😭 ..and splitters. It's these sorts of issues that are the reason some of us abandoned the LabVIEW UI altogether. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.