void CBEditTextPrefsDialog::SetReverseVideoColors() { JXColormap* cmap = GetColormap(); ChangeColor(CBPrefsManager::kTextColorIndex, cmap->GetWhiteColor()); ChangeColor(CBPrefsManager::kBackColorIndex, cmap->GetBlackColor()); ChangeColor(CBPrefsManager::kCaretColorIndex, cmap->GetWhiteColor()); ChangeColor(CBPrefsManager::kSelColorIndex, cmap->GetBlueColor()); ChangeColor(CBPrefsManager::kSelLineColorIndex, cmap->GetCyanColor()); ChangeColor(CBPrefsManager::kRightMarginColorIndex, cmap->GetGrayColor(80)); }
void CBEditTextPrefsDialog::SetDefaultColors() { JXColormap* cmap = GetColormap(); ChangeColor(CBPrefsManager::kTextColorIndex, cmap->GetBlackColor()); ChangeColor(CBPrefsManager::kBackColorIndex, cmap->GetWhiteColor()); ChangeColor(CBPrefsManager::kCaretColorIndex, cmap->GetRedColor()); ChangeColor(CBPrefsManager::kSelColorIndex, cmap->GetDefaultSelectionColor()); ChangeColor(CBPrefsManager::kSelLineColorIndex, cmap->GetBlueColor()); ChangeColor(CBPrefsManager::kRightMarginColorIndex, cmap->GetGrayColor(70)); }