зеркало из https://github.com/mozilla/pjs.git
Bug 165617 Build warnings caused by bug 158754 checkin
r=aaronl sr=bz
This commit is contained in:
Родитель
819c06c436
Коммит
eac6033bf7
|
@ -364,18 +364,19 @@ NS_IMETHODIMP nsXPLookAndFeel::GetColor(const nsColorID aID, nscolor &aColor)
|
|||
if (!sInitialized)
|
||||
Init();
|
||||
|
||||
// There is no system color setting for these, so set them manually
|
||||
switch (aID) {
|
||||
case eColor_TextSelectBackgroundDisabled:
|
||||
// This is used to gray out the selection when it's not focused
|
||||
// Used with nsISelectionController::SELECTION_DISABLED
|
||||
aColor = NS_RGB(0xb0, 0xb0, 0xb0);
|
||||
return NS_OK;
|
||||
case eColor_TextSelectBackgroundAttention:
|
||||
// This makes the selection stand out when typeaheadfind is on
|
||||
// Used with nsISelectionController::SELECTION_ATTENTION
|
||||
aColor = NS_RGB(0x38, 0xd8, 0x78);
|
||||
return NS_OK;
|
||||
// There are no system color settings for these, so set them manually
|
||||
if (aID == eColor_TextSelectBackgroundDisabled) {
|
||||
// This is used to gray out the selection when it's not focused
|
||||
// Used with nsISelectionController::SELECTION_DISABLED
|
||||
aColor = NS_RGB(0xb0, 0xb0, 0xb0);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (aID == eColor_TextSelectBackgroundAttention) {
|
||||
// This makes the selection stand out when typeaheadfind is on
|
||||
// Used with nsISelectionController::SELECTION_ATTENTION
|
||||
aColor = NS_RGB(0x38, 0xd8, 0x78);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// define DEBUG_SYSTEM_COLOR_USE if you want to debug system color
|
||||
|
|
Загрузка…
Ссылка в новой задаче