Revert "Bug 1971549 - Use stand-in button border colors for yaru / adwaita, or in case we didn't find a suitable one. r=stransky, for causing linux failures a=backout
This reverts commit 97039c7694.
This commit is contained in:
committed by
dsmith@mozilla.com
parent
1680854f3b
commit
2ce3f80962
@@ -2323,19 +2323,6 @@ void nsLookAndFeel::PerThemeData::Init() {
|
||||
if (!NS_GET_A(mButtonActive.mBg)) {
|
||||
mButtonActive.mBg = mWindow.mBg;
|
||||
}
|
||||
// Borders in Yaru / Adwaita have relatively little contrast, and are rather
|
||||
// neutral themes, so our stand-in ones work fine.
|
||||
#define MAYBE_OVERRIDE_BUTTON_BORDER(field_, color_) \
|
||||
if (mFamily == ThemeFamily::Adwaita || mFamily == ThemeFamily::Yaru || \
|
||||
!NS_GET_A((field_).mBorder)) { \
|
||||
(field_).mBorder = nsXPLookAndFeel::GetStandinForNativeColor( \
|
||||
ColorID::color_, mIsDark ? ColorScheme::Dark : ColorScheme::Light); \
|
||||
}
|
||||
MAYBE_OVERRIDE_BUTTON_BORDER(mButton, Buttonborder)
|
||||
MAYBE_OVERRIDE_BUTTON_BORDER(mButtonHover, MozButtonhoverborder)
|
||||
MAYBE_OVERRIDE_BUTTON_BORDER(mButtonActive, MozButtonactiveborder)
|
||||
MAYBE_OVERRIDE_BUTTON_BORDER(mButtonDisabled, MozButtondisabledborder)
|
||||
#undef MAYBE_OVERRIDE_BUTTON_BORDER
|
||||
|
||||
// Column header colors
|
||||
style = GetStyleContext(MOZ_GTK_TREE_HEADER_CELL);
|
||||
|
||||
Reference in New Issue
Block a user