First patch of the LockableColorPicker tool.
Still Work In Progress, but can be used without too much hassle.
This commit is contained in:
@@ -931,14 +931,21 @@ Gtk::Widget* Preferences::getGeneralPanel ()
|
||||
hbtheme->pack_start (*fontbutton);
|
||||
vbftheme->pack_start(*hbtheme, Gtk::PACK_SHRINK, 0);
|
||||
|
||||
Gtk::Label* cpfontlab = Gtk::manage( new Gtk::Label (M("PREFERENCES_SELECTFONT_COLPICKER") + ":") );
|
||||
colorPickerFontButton = Gtk::manage( new Gtk::FontButton ());
|
||||
colorPickerFontButton->set_use_size(true);
|
||||
colorPickerFontButton->set_font_name(options.colorPickerFont);
|
||||
|
||||
|
||||
Gtk::HBox* hbcolorchooser = Gtk::manage( new Gtk::HBox () );
|
||||
hbcolorchooser->set_spacing(4);
|
||||
|
||||
hbcolorchooser->pack_start (*cutOverlayLabel, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*butCropCol, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_end (*butNavGuideCol, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_end (*navGuideLabel, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*butNavGuideCol, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*navGuideLabel, Gtk::PACK_SHRINK, 0);
|
||||
hbcolorchooser->pack_start (*cpfontlab, Gtk::PACK_EXPAND_WIDGET, 0);
|
||||
hbcolorchooser->pack_start (*colorPickerFontButton, Gtk::PACK_SHRINK, 0);
|
||||
vbftheme->pack_start(*hbcolorchooser, Gtk::PACK_SHRINK, 0);
|
||||
|
||||
|
||||
@@ -1414,6 +1421,7 @@ void Preferences::storePreferences ()
|
||||
moptions.navGuideBrush[3] = butNavGuideCol->get_alpha() / 65535.0;
|
||||
|
||||
moptions.font = fontbutton->get_font_name();
|
||||
moptions.colorPickerFont = colorPickerFontButton->get_font_name();
|
||||
#ifdef WIN32
|
||||
moptions.gimpDir = gimpDir->get_filename ();
|
||||
moptions.psDir = psDir->get_filename ();
|
||||
@@ -1629,6 +1637,7 @@ void Preferences::fillPreferences ()
|
||||
butNavGuideCol->set_alpha ( (unsigned short)(moptions.navGuideBrush[3] * 65535.0));
|
||||
|
||||
fontbutton->set_font_name(moptions.font);
|
||||
colorPickerFontButton->set_font_name(moptions.colorPickerFont);
|
||||
showDateTime->set_active (moptions.fbShowDateTime);
|
||||
showBasicExif->set_active (moptions.fbShowBasicExif);
|
||||
showExpComp->set_active (moptions.fbShowExpComp);
|
||||
|
Reference in New Issue
Block a user