mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05: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:
committed by
Brad King
parent
df2d39bc51
commit
f56a695440
@@ -23,7 +23,7 @@ void cmCursesColor::InitColors()
|
|||||||
init_pair(cmCursesColor::BoolOn, COLOR_GREEN, -1);
|
init_pair(cmCursesColor::BoolOn, COLOR_GREEN, -1);
|
||||||
init_pair(cmCursesColor::String, COLOR_BLUE, -1);
|
init_pair(cmCursesColor::String, COLOR_BLUE, -1);
|
||||||
init_pair(cmCursesColor::Path, COLOR_YELLOW, -1);
|
init_pair(cmCursesColor::Path, COLOR_YELLOW, -1);
|
||||||
init_pair(cmCursesColor::Options, COLOR_MAGENTA, -1);
|
init_pair(cmCursesColor::Choice, COLOR_MAGENTA, -1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public:
|
|||||||
BoolOn,
|
BoolOn,
|
||||||
String,
|
String,
|
||||||
Path,
|
Path,
|
||||||
Options
|
Choice
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool HasColors();
|
static bool HasColors();
|
||||||
|
|||||||
@@ -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
|
// the widget into a string widget at some point. BOOL is safe for
|
||||||
// now.
|
// now.
|
||||||
if (cmCursesColor::HasColors()) {
|
if (cmCursesColor::HasColors()) {
|
||||||
set_field_fore(this->Field, COLOR_PAIR(cmCursesColor::Options));
|
set_field_fore(this->Field, COLOR_PAIR(cmCursesColor::Choice));
|
||||||
set_field_back(this->Field, COLOR_PAIR(cmCursesColor::Options));
|
set_field_back(this->Field, COLOR_PAIR(cmCursesColor::Choice));
|
||||||
} else {
|
} else {
|
||||||
set_field_fore(this->Field, A_NORMAL);
|
set_field_fore(this->Field, A_NORMAL);
|
||||||
set_field_back(this->Field, A_STANDOUT);
|
set_field_back(this->Field, A_STANDOUT);
|
||||||
|
|||||||
Reference in New Issue
Block a user