@@ -53,7 +53,7 @@ midi:C0=iop/channelmixerrgb;focus
53
53
local dt = require " darktable"
54
54
local du = require " lib/dtutils"
55
55
56
- du .check_min_api_version (" 9.1 .0" , " x-touch" )
56
+ du .check_min_api_version (" 9.2 .0" , " x-touch" )
57
57
58
58
-- set up 8 mimic sliders with the same function
59
59
for k = 1 ,8 do
@@ -96,7 +96,20 @@ for k = 1,8 do
96
96
" purple" ,
97
97
" magenta" }
98
98
element = e [k ]
99
-
99
+
100
+
101
+ -- if the sigmoid rgb primaries is focused,
102
+ -- check sliders
103
+ elseif dt .gui .action (" iop/sigmoid" , " focus" ) ~= 0 and k < 8 then
104
+ local e = { " red attenuation" , " red rotation" , " green attenuation" , " green rotation" , " blue attenuation" , " blue rotation" , " recover purity" }
105
+ which = " iop/sigmoid/primaries/" .. e [k ]
106
+
107
+ -- if the rgb primaries is focused,
108
+ -- check sliders
109
+ elseif dt .gui .action (" iop/primaries" , " focus" ) ~= 0 and k >= 1 then
110
+ local e = { " red hue" , " red purity" , " green hue" , " green purity" , " blue hue" , " blue purity" , " tint hue" , " tint purity" }
111
+ which = " iop/primaries/" .. e [k ]
112
+
100
113
-- if the tone equalizer is focused,
101
114
-- select one of the sliders in the "simple" tab
102
115
elseif dt .gui .action (" iop/toneequal" , " focus" ) ~= 0 then
0 commit comments