First patch of the LockableColorPicker tool.
Still Work In Progress, but can be used without too much hassle.
This commit is contained in:
@@ -292,6 +292,7 @@ void Options::setDefaults ()
|
||||
{
|
||||
|
||||
font = "sans, 8";
|
||||
colorPickerFont = "sans, 8";
|
||||
windowWidth = 1200;
|
||||
windowHeight = 680;
|
||||
windowX = 0;
|
||||
@@ -1246,6 +1247,10 @@ int Options::readFromFile (Glib::ustring fname)
|
||||
font = keyFile.get_string ("GUI", "Font");
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("GUI", "ColorPickerFont")) {
|
||||
colorPickerFont = keyFile.get_string ("GUI", "ColorPickerFont");
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("GUI", "WindowWidth")) {
|
||||
windowWidth = keyFile.get_integer ("GUI", "WindowWidth");
|
||||
}
|
||||
@@ -1973,6 +1978,7 @@ int Options::saveToFile (Glib::ustring fname)
|
||||
keyFile.set_integer ("Profiles", "CustomProfileBuilderKeys", CPBKeys);
|
||||
|
||||
keyFile.set_string ("GUI", "Font", font);
|
||||
keyFile.set_string ("GUI", "ColorPickerFont", colorPickerFont);
|
||||
keyFile.set_integer ("GUI", "WindowWidth", windowWidth);
|
||||
keyFile.set_integer ("GUI", "WindowHeight", windowHeight);
|
||||
keyFile.set_integer ("GUI", "WindowX", windowX);
|
||||
|
Reference in New Issue
Block a user