Skip to content

Commit

Permalink
Bug 1698265 - Fix non-native theme with very light gtk themes.
Browse files Browse the repository at this point in the history
Messed this up when introducing MozAccentColor.

Differential Revision: https://phabricator.services.mozilla.com/D108312
  • Loading branch information
emilio committed Mar 13, 2021
1 parent cd35bae commit 3345f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/gtk/nsLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ void nsLookAndFeel::EnsureInit() {
mAccentColorForeground = mTextSelectedText;
if (RelativeLuminanceUtils::Compute(mAccentColor) >
RelativeLuminanceUtils::Compute(mAccentColorForeground)) {
std::exchange(mAccentColor, mAccentColorForeground);
std::swap(mAccentColor, mAccentColorForeground);
}
}

Expand Down

0 comments on commit 3345f44

Please sign in to comment.