Skip to content

Commit

Permalink
WB: added 'evening' preset, with CCT 4600K.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddroom committed Sep 29, 2015
1 parent 09fcb20 commit b6e0e57
Show file tree
Hide file tree
Showing 3 changed files with 366 additions and 1 deletion.
1 change: 1 addition & 0 deletions ddroom.qrc
Expand Up @@ -35,6 +35,7 @@
<file>resources/wb_cloudy.svg</file>
<file>resources/wb_custom.svg</file>
<file>resources/wb_daylight.svg</file>
<file>resources/wb_evening.svg</file>
<file>resources/wb_picker.svg</file>
<file>resources/wb_shade.svg</file>
<file>resources/wb_tungsten.svg</file>
Expand Down
362 changes: 362 additions & 0 deletions resources/wb_evening.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/f_wb.cpp
Expand Up @@ -197,6 +197,7 @@ F_WB::F_WB(int id) : Filter() {

wb_presets.push_back(f_wb_preset(WB_ID_CUSTOM, false, 0));
wb_presets.push_back(f_wb_preset(WB_ID_CAMERA, false, 0));
wb_presets.push_back(f_wb_preset("evening", true, 4600.0));
wb_presets.push_back(f_wb_preset("daylight", true, 5200.0));
wb_presets.push_back(f_wb_preset("cloudy", true, 6000.0));
wb_presets.push_back(f_wb_preset("shade", true, 7000.0));
Expand Down Expand Up @@ -661,8 +662,9 @@ QWidget *F_WB::controls(QWidget *parent) {
std::map<std::string, _wb_tb_t> wb_tb;
wb_tb["custom"] = _wb_tb_t(":/resources/wb_custom.svg", tr("set with temperature and tint"), false);
wb_tb["camera"] = _wb_tb_t(":/resources/wb_camera.svg", tr("use WB as shoot"), true);
wb_tb["evening"] = _wb_tb_t(":/resources/wb_evening.svg", tr("Evening (~4600K)"), false);
wb_tb["daylight"] = _wb_tb_t(":/resources/wb_daylight.svg", tr("Daylight (~5200K)"), false);
wb_tb["cloudy"] = _wb_tb_t(":/resources/wb_cloudy.svg", tr("Cloudy, twilight or sunset (~6000K)"), false);
wb_tb["cloudy"] = _wb_tb_t(":/resources/wb_cloudy.svg", tr("Cloudy (~6000K)"), false);
wb_tb["shade"] = _wb_tb_t(":/resources/wb_shade.svg", tr("Shade (~7000K)"), true);
wb_tb["tungsten"] = _wb_tb_t(":/resources/wb_tungsten.svg", tr("Tungsten (~3200K)"), false);
wb_tb["fluorescent"] = _wb_tb_t(":/resources/wb_fluorescent.svg", tr("White fluorescent (~4000K)"), true);
Expand Down

0 comments on commit b6e0e57

Please sign in to comment.