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:
@@ -294,6 +294,11 @@ AppearancePrefView::MessageReceived(BMessage* msg)
|
|||||||
if (msg->FindPointer("color_scheme",
|
if (msg->FindPointer("color_scheme",
|
||||||
(void**)&newScheme) == B_OK) {
|
(void**)&newScheme) == B_OK) {
|
||||||
_ChangeColorScheme(newScheme);
|
_ChangeColorScheme(newScheme);
|
||||||
|
const char* label = NULL;
|
||||||
|
if (fColorField->Menu()->FindMarked()->Message()->FindString(
|
||||||
|
"label", &label) == B_OK)
|
||||||
|
fColorControl->SetValue(
|
||||||
|
PrefHandler::Default()->getRGB(label));
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user