LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dark/Light Windows Color Mode.

Been writing an application.  Showed it to the end customer.  Their first comment was, so the GUI can't handle Windows Dark Mode.

 

Strangely enough, I've already put the under pinning's for color theming that could be responsive to knowing if the user's desktop preference is Dark or Light (VI's that grab all the references to all the controls and manipulate font/color, etc -- mostly to force me to be consistent)... but I seem to be limited to the GUI elements on the front panel. 

 

I think I got the title bar figured out.

 

Change Title Bar Color to Reflect Color Mode.vi

wldgoose_1-1785501279783.png

 

 

But I'm stumped on the menu bar .  Any way to change the background color and font color?  Aside from doing custom renders, anything out there that I'm missing?  Is NI doing something custom with their menus?  I went mucking about in GetMenu and CreateSolidBrush in user32.dll without luck.  Anyone else out there crack this nut?  

 

 

 

Is Windows Theme Dark Mode or Light Mode.vi

 

wldgoose_0-1785496926037.png

 

0 Kudos
Message 1 of 9
(205 Views)

I made my first LabVIEW app with a full screen LabVIEW 2026 web control. The customer was blown away as it was immediately dark mode!!! They loved the UI responsiveness too!

I wish LV handled the dark mode from windows natively! But I also wish it listened to windows desktop scaling! Another reason to use a web UI 🙂


 

0 Kudos
Message 2 of 9
(155 Views)

I'm not sure how to change it on the fly or in the dev environment, but here's an example on how to change it for an executable:

 

https://forums.ni.com/t5/Example-Code/Programmatically-Modify-Stand-Alone-Executable-s-Menu-and/ta-p...

 

I think you'd need a small wrapper VI that runs transparently to read the mode, then modify the ini file and launch your program. I'm not sure if you can accomplish this with executable flags or something.

Message 3 of 9
(133 Views)

@MichaelS78 wrote:

I made my first LabVIEW app with a full screen LabVIEW 2026 web control. The customer was blown away as it was immediately dark mode!!! They loved the UI responsiveness too!

I wish LV handled the dark mode from windows natively! But I also wish it listened to windows desktop scaling! Another reason to use a web UI 🙂


 


Hope I don't derail too much- but I've been interested in this but wasn't sure where to start. What did you program the UI in? I take it the LabVIEW app just displays a webpage, and that UI talks to your background LabVIEW task or something?

0 Kudos
Message 4 of 9
(132 Views)

Let's start a new thread! If you start it I'll reply! It's so much fun!


 

0 Kudos
Message 5 of 9
(122 Views)

@MichaelS78 wrote:

Let's start a new thread! If you start it I'll reply! It's so much fun!


 


 

I'm interested too..  I have half a mind to lean heavy on Grafana  

 

https://grafana.com/grafana/download?edition=oss

0 Kudos
Message 6 of 9
(114 Views)

Thread made- https://forums.ni.com/t5/LabVIEW/Anyone-making-UI-s-using-the-2026-web-control/td-p/4482407

 

Let's get out of OP's thread 🙂

 

(Mods, delete this discussion if you'd like- it's detracting from OP's question.)

0 Kudos
Message 7 of 9
(108 Views)

@BertMcMahan wrote:

Thread made- https://forums.ni.com/t5/LabVIEW/Anyone-making-UI-s-using-the-2026-web-control/td-p/4482407

 

Let's get out of OP's thread 🙂

 

(Mods, delete this discussion if you'd like- it's detracting from OP's question.)


I'm the OP.  I needed a distraction 🙂

0 Kudos
Message 8 of 9
(100 Views)

@wldgoose wrote:

@BertMcMahan wrote:

Thread made- https://forums.ni.com/t5/LabVIEW/Anyone-making-UI-s-using-the-2026-web-control/td-p/4482407

 

Let's get out of OP's thread 🙂

 

(Mods, delete this discussion if you'd like- it's detracting from OP's question.)


I'm the OP.  I needed a distraction 🙂


BertMcMahan_0-1785522512302.png

 

Message 9 of 9
(93 Views)