Hi all,
this was already posted on the user's mailing list, but I guess it suits
better here as it was not responded to there for a while and the thread
was hijacked, at least on gmane. Therefore I repost here.
I have been playing with the Lua GUI possibilities in Darktable
recently. I started with the recently added example “moduleExample.lua”.
Unfortunately I was not able to find answers to a couple of questions.
The attached screenshot shows my actual state. I have a vertical box
containing several horizontal boxes. I tried to place in the first
horizontal box a button and a slider and in the remaining horizontal
boxes a label (1., 2.), the “key” input and the “tag” input.
Unfortunately the horizontal placing messes up the layout, as you can
see from the screenshot, the slider does not display properly and the
module becomes too wide (it also happens if I only have one of the
horizontal boxes).
1. How can I change the size of the entry fields? Is this possibility
already implemented? If yes, where can I find the documentation? Best
for my case would be to have a size that is max(minimal size in absolute
values¹, min(given percentage of available space, given size in absolute
values¹)).
¹pixels, ex, cm, whatever units can be used. Font-depending units would
be optimal.
2. How can I set the size of the labels and right-align them? That would
allow consistent layout for more than 9 lines.
3. How can I get the slider to render properly and to take up the
available space beside the button.
4. Is it possible to style elements? I would like the button to become
red if it is “activated”, it should be a strong warning. I want to use a
button for this since this suits best to the planned functionality of
the module.
If you want I can post the code, but there is nothing special, just a
slightly adapted version of the aforementioned example, and I guess the
first and important question is: is this already possible/what is
already possible?
Thanks and best regards
Chris
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org