Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more widgets to QAP by default #16656

Merged
merged 9 commits into from
Apr 27, 2024
37 changes: 28 additions & 9 deletions src/libs/modulegroups.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of darktable,
Copyright (C) 2011-2022 darktable developers.
Copyright (C) 2011-2024 darktable developers.

darktable is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1473,33 +1473,51 @@ static void _preset_from_string(dt_lib_module_t *self, gchar *txt, gboolean edit
}

// start quick access
#define SQA(is_scene_referred) \
#define SQA(is_scene_referred) \
{ \
g_free(tx); \
tx = g_strdup_printf("1|0ꬹ1||"); \
tx = g_strdup_printf("1|0ꬹ1||"); \
if(is_scene_referred) \
{ \
AM("filmicrgb/white relative exposure"); \
AM("filmicrgb/black relative exposure"); \
AM("filmicrgb/contrast"); \
if(wf_filmic) \
{ \
AM("filmicrgb/white relative exposure"); \
AM("filmicrgb/black relative exposure"); \
AM("filmicrgb/contrast"); \
} \
else if (wf_sigmoid) \
{ \
AM("sigmoid/contrast"); \
AM("sigmoid/skew"); \
} \
AM("channelmixerrgb/temperature"); \
AM("channelmixerrgb/chroma"); \
AM("channelmixerrgb/hue"); \
AM("channelmixerrgb/illuminant"); \
AM("channelmixerrgb/F source"); \
AM("channelmixerrgb/LED source"); \
} \
else \
{ \
AM("temperature/temperature"); \
AM("temperature/tint"); \
} \
AM("colorequal/page"); \
AM("colorequal/graph"); \
AM("colorequal/node placement"); \
AM("exposure/exposure"); \
if(!is_scene_referred) AM("colorbalancergb/contrast"); /* contrast is already in filmic */ \
if(!is_scene_referred) AM("colorbalancergb/contrast"); /* contrast is already in filmic/sigmoid */ \
AM("colorbalancergb/global chroma"); \
AM("colorbalancergb/global vibrance"); \
AM("colorbalancergb/global saturation"); \
AM("colorbalancergb/global brilliance"); \
AM("ashift/rotation"); \
AM("denoiseprofile"); \
AM("denoiseprofile/strength"); \
AM("toneequal/graph"); \
AM("toneequal/mask exposure compensation"); \
AM("toneequal/mask contrast compensation"); \
AM("lens"); \
AM("bilat"); \
AM("bilat/detail"); \
}

// start module group
Expand Down Expand Up @@ -1797,6 +1815,7 @@ static gchar *_presets_get_minimal(dt_lib_module_t *self)
{
const gboolean is_scene_referred = dt_is_scene_referred();
const gboolean wf_filmic = dt_conf_is_equal("plugins/darkroom/workflow", "scene-referred (filmic)");
const gboolean wf_sigmoid = dt_conf_is_equal("plugins/darkroom/workflow", "scene-referred (sigmoid)");

// all modules
gchar *tx = NULL;
Expand Down