Skip to content

Commit 3f06478

Browse files
authored
Merge pull request darktable-org#544 from MStraeten/patch-2
Enhanced x-touch.lua for colorequalizer
2 parents e2f5c99 + 1ba488d commit 3f06478

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/x-touch.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ midi:A-1=iop/colorzones;focus
4848
midi:A#-1=iop/toneequal;focus
4949
midi:B-1=iop/colorbalancergb;focus
5050
midi:C0=iop/channelmixerrgb;focus
51+
midi:C#0=iop/colorequal;focus
5152
]]
5253

5354
local dt = require "darktable"
@@ -119,6 +120,18 @@ for k = 1,8 do
119120
"magenta" }
120121
element = e[k]
121122

123+
-- try if colorequalizer module is focused; if so select element of graph
124+
elseif dt.gui.action("iop/colorequal", "focus") ~= 0 then
125+
local e = { "red",
126+
"orange",
127+
"yellow",
128+
"green",
129+
"cyan",
130+
"blue",
131+
"lavender",
132+
"magenta" }
133+
which = "iop/colorequal/graph"
134+
element = e[k]
122135

123136
-- if the sigmoid rgb primaries is focused,
124137
-- check sliders

0 commit comments

Comments
 (0)