Temrinal Prefs: update color control on scheme change

Update the color control state on the scheme change event
Fixes #9864.
This commit is contained in:
Siarzhuk Zharski
2013-09-02 20:15:04 +02:00
parent 709172a02d
commit b0044e4437
+5
View File
@@ -294,6 +294,11 @@ AppearancePrefView::MessageReceived(BMessage* msg)
if (msg->FindPointer("color_scheme",
(void**)&newScheme) == B_OK) {
_ChangeColorScheme(newScheme);
const char* label = NULL;
if (fColorField->Menu()->FindMarked()->Message()->FindString(
"label", &label) == B_OK)
fColorControl->SetValue(
PrefHandler::Default()->getRGB(label));
modified = true;
}
break;