Is there any chance someone can point me in the right direction towards getting GTK Inspector to run on my Windows 11 box? I really want to make my own Darktable theme.
Any advice or guidance would be extremely appreciated!
I’d also like to have the GTK inspector on Windows 10 to fine-tune my theme, but I don’t know how to install the program and get it working.
Following your post, I got to step C.
Then I got lost in technical jargon and links that only confused me more, and I ended up giving up. I’m unfamiliar with Linux.
So, I’m just wondering if there’s a step-by-step guide for beginners, or if anyone can provide one, where the last step is simply pressing Ctrl+Shift+D and enjoying!
This works, and much of the trick is where you press the keys.
In the Registry Editor, go to HKEY_CURRENT_USER\Software\GSettings\org\gtk\settings\debug — create that path if it isn’t there.
Inside it, add a new DWORD (32-bit) value named enable-inspector-keybinding, set to 1.
Start darktable and open preferences (the gear icon, top right).
With the preferences window in front, press Ctrl+Shift+D, and answer OK to “Do you want to use GTK+ Inspector?”
The Inspector opens. It may come up behind darktable — check your taskbar.
Two things that don’t work, so you don’t waste an evening on them:
GTK_DEBUG=interactive does nothing at all.
Ctrl+Shift+I, and Ctrl+Shift+D pressed on the main window, don’t work either — darktable’s own shortcuts claim those keys first. (Ctrl+Shift+I just opens “copy & import”.) That is exactly why it has to be done with the preferences window focused.
Once open, the crosshair button at the top left lets you click any part of darktable and see that element’s name and style classes — and the CSS tab applies CSS live to the running program.
If the darktable configuration menu is open, it captures focus, preventing inspection.
[Ctrl]+[Shift]+I and [Ctrl]+[Shift]+D do not affect the inspector; instead, they trigger the functions assigned within darktable.
Tips:
The next times you launch MSYS2 MINGW64, simply press the Up Arrow key in the terminal to recall the previous command, so you don’t have to type it again.
If you are in full-screen mode, use [Alt]+[Tab] to switch between the Inspector and darktable.