Adding new units for the RGB and HSV values in the Navigator tool (below
Histogram). Click on one of thes two columns to cycle to a new unit independantly, between [0-1], [0-255], [%] (Hue stays in degree instead of percent). The current unit is saved in Options for new Editor tabs or between sessions.
This commit is contained in:
@@ -353,6 +353,8 @@ void Options::setDefaults ()
|
||||
fbShowExpComp = false;
|
||||
fbShowHidden = false;
|
||||
fbArrangement = 2; // was 0
|
||||
navRGBUnit = NavigatorUnit::NU_PERCENT;
|
||||
navHSVUnit = NavigatorUnit::NU_PERCENT;
|
||||
multiUser = true;
|
||||
profilePath = "profiles";
|
||||
loadSaveProfilePath = ""; // will be corrected in load as otherwise construction fails
|
||||
@@ -1407,6 +1409,14 @@ int Options::readFromFile (Glib::ustring fname)
|
||||
histogramFullMode = keyFile.get_boolean ("GUI", "HistogramFullMode");
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("GUI", "NavigatorRGBUnit")) {
|
||||
navRGBUnit = (NavigatorUnit)keyFile.get_integer ("GUI", "NavigatorRGBUnit");
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("GUI", "NavigatorHSVUnit")) {
|
||||
navHSVUnit = (NavigatorUnit)keyFile.get_integer ("GUI", "NavigatorHSVUnit");
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("GUI", "ShowFilmStripToolBar")) {
|
||||
showFilmStripToolBar = keyFile.get_boolean ("GUI", "ShowFilmStripToolBar");
|
||||
}
|
||||
@@ -2010,6 +2020,8 @@ int Options::saveToFile (Glib::ustring fname)
|
||||
keyFile.set_integer ("GUI", "HistogramPosition", histogramPosition);
|
||||
keyFile.set_boolean ("GUI", "HistogramBar", histogramBar);
|
||||
keyFile.set_boolean ("GUI", "HistogramFullMode", histogramFullMode);
|
||||
keyFile.set_integer ("GUI", "NavigatorRGBUnit", (int)navRGBUnit);
|
||||
keyFile.set_integer ("GUI", "NavigatorHSVUnit", (int)navHSVUnit);
|
||||
keyFile.set_boolean ("GUI", "ShowFilmStripToolBar", showFilmStripToolBar);
|
||||
keyFile.set_boolean ("GUI", "FileBrowserToolbarSingleRow", FileBrowserToolbarSingleRow);
|
||||
keyFile.set_boolean ("GUI", "HideTPVScrollbar", hideTPVScrollbar);
|
||||
|
Reference in New Issue
Block a user