@@ -154,6 +154,10 @@ namespace {
154154 apply_bool_pref (value, ui_state.auto_mipmap );
155155 } else if (key == " fit_image_to_window" ) {
156156 apply_bool_pref (value, ui_state.fit_image_to_window );
157+ } else if (key == " show_transparency" ) {
158+ apply_bool_pref (value, ui_state.show_transparency );
159+ } else if (key == " image_window_bg_override" ) {
160+ apply_bool_pref (value, ui_state.image_window_bg_override );
157161 } else if (key == " show_mouse_mode_selector" ) {
158162 apply_bool_pref (value, ui_state.show_mouse_mode_selector );
159163 } else if (key == " full_screen_mode" ) {
@@ -176,6 +180,8 @@ namespace {
176180 apply_int_pref (value, ui_state.closeup_pixels );
177181 } else if (key == " closeup_avg_pixels" ) {
178182 apply_int_pref (value, ui_state.closeup_avg_pixels );
183+ } else if (key == " transparency_check_size" ) {
184+ apply_int_pref (value, ui_state.transparency_check_size );
179185 } else if (key == " current_channel" ) {
180186 apply_int_pref (value, viewer.recipe .current_channel );
181187 } else if (key == " color_mode" ) {
@@ -192,6 +198,30 @@ namespace {
192198 apply_float_pref (value, viewer.recipe .gamma );
193199 } else if (key == " offset" ) {
194200 apply_float_pref (value, viewer.recipe .offset );
201+ } else if (key == " transparency_light_r" ) {
202+ apply_float_pref (value, ui_state.transparency_light_color .x );
203+ } else if (key == " transparency_light_g" ) {
204+ apply_float_pref (value, ui_state.transparency_light_color .y );
205+ } else if (key == " transparency_light_b" ) {
206+ apply_float_pref (value, ui_state.transparency_light_color .z );
207+ } else if (key == " transparency_light_a" ) {
208+ apply_float_pref (value, ui_state.transparency_light_color .w );
209+ } else if (key == " transparency_dark_r" ) {
210+ apply_float_pref (value, ui_state.transparency_dark_color .x );
211+ } else if (key == " transparency_dark_g" ) {
212+ apply_float_pref (value, ui_state.transparency_dark_color .y );
213+ } else if (key == " transparency_dark_b" ) {
214+ apply_float_pref (value, ui_state.transparency_dark_color .z );
215+ } else if (key == " transparency_dark_a" ) {
216+ apply_float_pref (value, ui_state.transparency_dark_color .w );
217+ } else if (key == " image_window_bg_r" ) {
218+ apply_float_pref (value, ui_state.image_window_bg_color .x );
219+ } else if (key == " image_window_bg_g" ) {
220+ apply_float_pref (value, ui_state.image_window_bg_color .y );
221+ } else if (key == " image_window_bg_b" ) {
222+ apply_float_pref (value, ui_state.image_window_bg_color .z );
223+ } else if (key == " image_window_bg_a" ) {
224+ apply_float_pref (value, ui_state.image_window_bg_color .w );
195225 } else if (key == " ocio_display" ) {
196226 viewer.recipe .ocio_display = strip_to_string (value);
197227 } else if (key == " ocio_view" ) {
@@ -234,6 +264,10 @@ namespace {
234264 output << " auto_mipmap=" << (ui_state.auto_mipmap ? 1 : 0 ) << " \n " ;
235265 output << " fit_image_to_window="
236266 << (ui_state.fit_image_to_window ? 1 : 0 ) << " \n " ;
267+ output << " show_transparency=" << (ui_state.show_transparency ? 1 : 0 )
268+ << " \n " ;
269+ output << " image_window_bg_override="
270+ << (ui_state.image_window_bg_override ? 1 : 0 ) << " \n " ;
237271 output << " show_mouse_mode_selector="
238272 << (ui_state.show_mouse_mode_selector ? 1 : 0 ) << " \n " ;
239273 output << " full_screen_mode=" << (ui_state.full_screen_mode ? 1 : 0 )
@@ -250,6 +284,8 @@ namespace {
250284 << " \n " ;
251285 output << " closeup_pixels=" << ui_state.closeup_pixels << " \n " ;
252286 output << " closeup_avg_pixels=" << ui_state.closeup_avg_pixels << " \n " ;
287+ output << " transparency_check_size=" << ui_state.transparency_check_size
288+ << " \n " ;
253289 output << " current_channel=" << viewer.recipe .current_channel << " \n " ;
254290 output << " color_mode=" << viewer.recipe .color_mode << " \n " ;
255291 output << " subimage_index=" << ui_state.subimage_index << " \n " ;
@@ -258,6 +294,30 @@ namespace {
258294 output << " exposure=" << viewer.recipe .exposure << " \n " ;
259295 output << " gamma=" << viewer.recipe .gamma << " \n " ;
260296 output << " offset=" << viewer.recipe .offset << " \n " ;
297+ output << " transparency_light_r=" << ui_state.transparency_light_color .x
298+ << " \n " ;
299+ output << " transparency_light_g=" << ui_state.transparency_light_color .y
300+ << " \n " ;
301+ output << " transparency_light_b=" << ui_state.transparency_light_color .z
302+ << " \n " ;
303+ output << " transparency_light_a=" << ui_state.transparency_light_color .w
304+ << " \n " ;
305+ output << " transparency_dark_r=" << ui_state.transparency_dark_color .x
306+ << " \n " ;
307+ output << " transparency_dark_g=" << ui_state.transparency_dark_color .y
308+ << " \n " ;
309+ output << " transparency_dark_b=" << ui_state.transparency_dark_color .z
310+ << " \n " ;
311+ output << " transparency_dark_a=" << ui_state.transparency_dark_color .w
312+ << " \n " ;
313+ output << " image_window_bg_r=" << ui_state.image_window_bg_color .x
314+ << " \n " ;
315+ output << " image_window_bg_g=" << ui_state.image_window_bg_color .y
316+ << " \n " ;
317+ output << " image_window_bg_b=" << ui_state.image_window_bg_color .z
318+ << " \n " ;
319+ output << " image_window_bg_a=" << ui_state.image_window_bg_color .w
320+ << " \n " ;
261321 output << " ocio_display=" << viewer.recipe .ocio_display << " \n " ;
262322 output << " ocio_view=" << viewer.recipe .ocio_view << " \n " ;
263323 output << " ocio_image_color_space="
0 commit comments