зеркало из https://github.com/mozilla/gecko-dev.git
Bug 654411 - Use text color at 50% opacity instead of graytext to de-emphasize text in the location bar. r=roc ui-r=faaborg
This commit is contained in:
Родитель
d9f6f43647
Коммит
bb6e193672
|
@ -3322,10 +3322,14 @@ nsTextPaintStyle::GetURLSecondaryColor(nscolor* aForeColor)
|
|||
{
|
||||
NS_ASSERTION(aForeColor, "aForeColor is null");
|
||||
|
||||
nsILookAndFeel* look = mPresContext->LookAndFeel();
|
||||
nscolor foreColor;
|
||||
look->GetColor(nsILookAndFeel::eColor_graytext, foreColor);
|
||||
*aForeColor = foreColor;
|
||||
nscolor textColor = GetTextColor();
|
||||
textColor = NS_RGBA(NS_GET_R(textColor),
|
||||
NS_GET_G(textColor),
|
||||
NS_GET_B(textColor),
|
||||
(PRUint8)(255 * 0.5f));
|
||||
// Don't use true alpha color for readability.
|
||||
InitCommonColors();
|
||||
*aForeColor = NS_ComposeColors(mFrameBackgroundColor, textColor);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче