1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

ccmake: Rename cmCursesColor::{Options => Choice}

Rename the internal name for the color applied to multiple-choice
options to avoid use of the overloaded term 'option'.
This commit is contained in:
Matthew Woehlke
2020-04-23 15:52:51 -04:00
committed by Brad King
parent df2d39bc51
commit f56a695440
3 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ void cmCursesColor::InitColors()
init_pair(cmCursesColor::BoolOn, COLOR_GREEN, -1);
init_pair(cmCursesColor::String, COLOR_BLUE, -1);
init_pair(cmCursesColor::Path, COLOR_YELLOW, -1);
init_pair(cmCursesColor::Options, COLOR_MAGENTA, -1);
init_pair(cmCursesColor::Choice, COLOR_MAGENTA, -1);
}
#endif
}

View File

@@ -13,7 +13,7 @@ public:
BoolOn,
String,
Path,
Options
Choice
};
static bool HasColors();

View File

@@ -17,8 +17,8 @@ cmCursesOptionsWidget::cmCursesOptionsWidget(int width, int height, int left,
// the widget into a string widget at some point. BOOL is safe for
// now.
if (cmCursesColor::HasColors()) {
set_field_fore(this->Field, COLOR_PAIR(cmCursesColor::Options));
set_field_back(this->Field, COLOR_PAIR(cmCursesColor::Options));
set_field_fore(this->Field, COLOR_PAIR(cmCursesColor::Choice));
set_field_back(this->Field, COLOR_PAIR(cmCursesColor::Choice));
} else {
set_field_fore(this->Field, A_NORMAL);
set_field_back(this->Field, A_STANDOUT);